Changeset 25280 for trunk/admin/themes
- Timestamp:
- Nov 1, 2013, 11:28:36 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/include/add_album.inc.tpl
r23952 r25280 1 1 {footer_script}{literal} 2 2 jQuery(document).ready(function(){ 3 var $albumSelect = jQuery("#albumSelect"); 4 3 5 jQuery(".addAlbumOpen").colorbox({ 4 6 inline: true, … … 8 10 9 11 jQuery("#category_parent").html('<option value="0">------------</option>') 10 .append( jQuery("#albumSelect").html())11 .val( jQuery("#albumSelect").val());12 .append($albumSelect.html()) 13 .val($albumSelect.val() || 0); 12 14 } 13 15 }); … … 48 50 .text(newAlbum_name); 49 51 50 jQuery("#albumSelect").find("option").removeAttr('selected');52 $albumSelect.find("option").removeAttr('selected'); 51 53 52 54 if (parent_id==0) { 53 jQuery("#albumSelect").prepend(new_option);55 $albumSelect.prepend(new_option); 54 56 } 55 57 else { 56 jQuery("#albumSelect").find("option[value="+ parent_id +"]").after(new_option);58 $albumSelect.find("option[value="+ parent_id +"]").after(new_option); 57 59 } 58 60
Note: See TracChangeset
for help on using the changeset viewer.