|
Lines 305-311
$(document).ready(function () {
Link Here
|
| 305 |
$("#set-library-desk_id") |
305 |
$("#set-library-desk_id") |
| 306 |
.children() |
306 |
.children() |
| 307 |
.each(function () { |
307 |
.each(function () { |
| 308 |
console.log( $(this) ); |
|
|
| 309 |
if ($(this).attr("id") === "nodesk") { |
308 |
if ($(this).attr("id") === "nodesk") { |
| 310 |
// set no desk by default, should be first element |
309 |
// set no desk by default, should be first element |
| 311 |
$(this).prop("selected", true); |
310 |
$(this).prop("selected", true); |
|
Lines 316-322
$(document).ready(function () {
Link Here
|
| 316 |
$("#nodesk").hide(); |
315 |
$("#nodesk").hide(); |
| 317 |
$(this).prop("disabled", false); |
316 |
$(this).prop("disabled", false); |
| 318 |
$(this).show(); |
317 |
$(this).show(); |
| 319 |
if ( selectedBranch == $(".logged-in-branch-code").html() ) { |
318 |
if ( selectedBranch == $(".logged-in-branch-code").html() && $(".logged-in-desk-id").length ) { |
| 320 |
$("#set-library-desk_id").val( $(".logged-in-desk-id").html() ); |
319 |
$("#set-library-desk_id").val( $(".logged-in-desk-id").html() ); |
| 321 |
} else { |
320 |
} else { |
| 322 |
$("#nodesk").hide(); |
321 |
$("#nodesk").hide(); |
|
Lines 330-335
$(document).ready(function () {
Link Here
|
| 330 |
} |
329 |
} |
| 331 |
}); |
330 |
}); |
| 332 |
|
331 |
|
|
|
332 |
$("#set-library-register_id").val(""); |
| 333 |
$("#set-library-register_id").children().each(function() { |
333 |
$("#set-library-register_id").children().each(function() { |
| 334 |
// default to no-register |
334 |
// default to no-register |
| 335 |
if ($(this).is("#noregister")) { |
335 |
if ($(this).is("#noregister")) { |
| 336 |
- |
|
|