|
Lines 315-326
$(document).ready(function() {
Link Here
|
| 315 |
success: function( data ){ |
315 |
success: function( data ){ |
| 316 |
var dropdown = ""; |
316 |
var dropdown = ""; |
| 317 |
$.each(data, function(index,library) { |
317 |
$.each(data, function(index,library) { |
| 318 |
if( preselected == library.branchcode ){ |
318 |
if( preselected == library.library_id ){ |
| 319 |
selected = ' selected="selected" '; |
319 |
selected = ' selected="selected" '; |
| 320 |
} else { selected = ""; } |
320 |
} else { selected = ""; } |
| 321 |
dropdown += '<option value="'+library.branchcode+'"'+selected+'>'+library.branchname+'</option>'; |
321 |
dropdown += '<option value="'+library.library_id+'"'+selected+'>'+library.name+'</option>'; |
| 322 |
}); |
322 |
}); |
| 323 |
this_dropdown.html( dropdown); |
323 |
this_dropdown.html(dropdown); |
| 324 |
this_dropdown.data("loaded",1); |
324 |
this_dropdown.data("loaded",1); |
| 325 |
$(".loading_"+hold_id).hide(); |
325 |
$(".loading_"+hold_id).hide(); |
| 326 |
}, |
326 |
}, |
| 327 |
- |
|
|