Changeset 2554 for trunk/admin
- Timestamp:
- Sep 20, 2008, 3:04:01 AM (16 years ago)
- Location:
- trunk/admin/template/goto
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/template/goto/cat_list.tpl
r2534 r2554 1 1 {* $Id$ *} 2 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"} 3 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js" } 4 {known_script id="jquery.ui.sortable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.sortable.packed.js" } 5 6 <script type="text/javascript"> 7 jQuery().ready(function(){ldelim} 8 jQuery(".catPos").hide(); 9 jQuery('.categoryUl').sortable({ldelim} 10 axis: "y", 11 cursor: "move", 12 opacity: 0.8 13 }); 14 jQuery("#categoryOrdering").submit(function(){ldelim} 15 ar = jQuery('.categoryUl').sortable('toArray'); 16 for(i=0;i<ar.length;i++) {ldelim} 17 cat = ar[i].split('cat_'); 18 document.getElementsByName('catOrd[' + cat[1] + ']')[0].value = i; 19 } 20 }); 21 }); 22 </script> 23 2 24 <h2>{'title_categories'|@translate}</h2> 3 25 … … 23 45 24 46 {foreach from=$categories item=category} 25 <li class="categoryLi{if $category.IS_VIRTUAL} virtual_cat{/if}" >47 <li class="categoryLi{if $category.IS_VIRTUAL} virtual_cat{/if}" id="cat_{$category.ID}"> 26 48 <!-- category {$category.ID} --> 27 49 <ul class="categoryActions"> … … 47 69 </p> 48 70 49 <p >71 <p class="catPos"> 50 72 <label> 51 73 {'Position'|@translate} : -
trunk/admin/template/goto/default-layout.css
r2552 r2554 61 61 62 62 LI.categoryLi { 63 width: 100%; 63 64 border: 1px solid gray; 64 65 padding: 0px 5px; -
trunk/admin/template/goto/theme/roma/theme.css
r2552 r2554 68 68 .throw { font-size: 120%; line-height: 26px; padding-top: 10px; font-weight: bold; } 69 69 label { cursor:pointer } 70 .virtual_cat { background: #222 !important; } 70 .categoryLi { background: #222 } 71 .virtual_cat { background: #333 !important; } 71 72 a.Piwigo { 72 73 font-family: verdana, arial, helvetica, sans-serif !important;
Note: See TracChangeset
for help on using the changeset viewer.