Changeset 12106 for trunk/admin/themes
- Timestamp:
- Sep 8, 2011, 4:04:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/photos_add_direct.tpl
r12065 r12106 15 15 jQuery("#formErrors").hide(); 16 16 jQuery("#formErrors li").hide(); 17 18 if (jQuery("#albumSelect option:selected").length == 0) { 19 jQuery("#formErrors #noAlbum").show(); 20 nbErrors++; 21 } 17 22 18 23 var nbFiles = 0; … … 97 102 fillCategoryListbox("category_parent"); 98 103 */ 99 104 100 105 jQuery(".addAlbumOpen").colorbox({inline:true, href:"#addAlbumForm"}); 101 106 … … 123 128 /* we refresh the album creation form, in case the user wants to create another album */ 124 129 jQuery("#category_parent").find("option").remove(); 130 131 jQuery("<option/>") 132 .attr("value", 0) 133 .text("------------") 134 .appendTo("#category_parent") 135 ; 136 125 137 fillCategoryListbox("category_parent", newAlbum); 126 138 127 139 jQuery("#addAlbumForm form input[name=category_name]").val(''); 140 141 jQuery("#albumSelection").show(); 128 142 129 143 return true; … … 331 345 <div id="formErrors" class="errors" style="display:none"> 332 346 <ul> 347 <li id="noAlbum">{'Select an album'|@translate}</li> 333 348 <li id="noPhoto">{'Select at least one photo'|@translate}</li> 334 349 </ul> … … 359 374 <legend>{'Drop into album'|@translate}</legend> 360 375 376 <span id="albumSelection"{if count($category_options) == 0} style="display:none"{/if}> 361 377 <select id="albumSelect" name="category"> 362 378 {html_options options=$category_options selected=$category_options_selected} 363 379 </select> 364 <br>{'... or '|@translate}< a href="#" class="addAlbumOpen" title="{'create a new album'|@translate}">{'create a new album'|@translate}</a>380 <br>{'... or '|@translate}</span><a href="#" class="addAlbumOpen" title="{'create a new album'|@translate}">{'create a new album'|@translate}</a> 365 381 366 382 </fieldset>
Note: See TracChangeset
for help on using the changeset viewer.