Changeset 7995 for trunk/admin
- Timestamp:
- Dec 4, 2010, 9:32:44 PM (14 years ago)
- Location:
- trunk/admin/themes/default/template
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/admin.tpl
r6993 r7995 1 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js" } 2 {known_script id="jquery.ui.accordion" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.accordion.packed.js" } 3 {known_script id="jquery.tipTip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.tipTip.minified.js" } 4 5 <script type="text/javascript"> 6 jQuery().ready(function(){ldelim} 7 jQuery('#menubar').accordion({ldelim} 8 header: "dt.rdion", 9 event: "click", 10 autoHeight: false, 11 active: {$ACTIVE_MENU} 12 }); 1 {combine_script id='jquery.ui' load='header' require='jquery' path='themes/default/js/ui/packed/ui.core.packed.js' } 2 {combine_script id='jquery.ui.accordion' load='header' require='jquery.ui' path='themes/default/js/ui/packed/ui.accordion.packed.js' } 3 {footer_script require='jquery.ui.accordion'} 4 jQuery(document).ready(function(){ldelim} 5 jQuery('#menubar').accordion({ldelim} 6 header: "dt.rdion", 7 event: "click", 8 autoHeight: false, 9 active: {$ACTIVE_MENU} 10 }); 13 11 }); 14 </script> 12 {/footer_script} 15 13 16 14 <div id="menubar"> … … 105 103 {/if} 106 104 {if isset($U_HELP)} 105 {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 107 106 <ul class="HelpActions"> 108 107 <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/help.png" class="button" alt="(?)"></a></li> -
trunk/admin/themes/default/template/cat_list.tpl
r7024 r7995 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js" } 3 {known_script id="jquery.ui.sortable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.sortable.packed.js" } 1 {combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/ui/packed/ui.core.packed.js' } 2 {combine_script id='jquery.ui.sortable' load='async' require='jquery.ui' path='themes/default/js/ui/packed/ui.sortable.packed.js' } 3 {footer_script require='jquery.ui.sortable'} 4 jQuery(document).ready(function(){ldelim} 5 jQuery(".catPos").hide(); 6 jQuery(".drag_button").show(); 7 jQuery(".categoryLi").css("cursor","move"); 8 jQuery(".categoryUl").sortable({ldelim} 9 axis: "y", 10 opacity: 0.8 11 }); 12 jQuery("#categoryOrdering").submit(function(){ldelim} 13 ar = jQuery('.categoryUl').sortable('toArray'); 14 for(i=0;i<ar.length;i++) {ldelim} 15 cat = ar[i].split('cat_'); 16 document.getElementsByName('catOrd[' + cat[1] + ']')[0].value = i; 17 } 18 }); 4 19 5 <script type="text/javascript"> 6 jQuery().ready(function(){ldelim} 7 jQuery(".catPos").hide(); 8 jQuery(".drag_button").show(); 9 jQuery(".categoryLi").css("cursor","move"); 10 jQuery(".categoryUl").sortable({ldelim} 11 axis: "y", 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 jQuery("input[name=order_type]").click(function () {ldelim} 23 jQuery("#automatic_order_params").hide(); 24 if (jQuery("input[name=order_type]:checked").val() == "automatic") {ldelim} 25 jQuery("#automatic_order_params").show(); 26 } 27 }); 28 }); 29 </script> 20 jQuery("input[name=order_type]").click(function () {ldelim} 21 jQuery("#automatic_order_params").hide(); 22 if (jQuery("input[name=order_type]:checked").val() == "automatic") {ldelim} 23 jQuery("#automatic_order_params").show(); 24 } 25 }); 26 }); 27 {/footer_script} 30 28 31 29 <h2>{'Album list management'|@translate}</h2> -
trunk/admin/themes/default/template/element_set_global.tpl
r6988 r7995 2 2 {include file='include/datepicker.inc.tpl'} 3 3 4 {literal} 5 <script type="text/javascript"> 6 pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set"); 4 {footer_script}{literal} 5 pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set"); 7 6 </script> 8 {/literal} 9 10 {known_script id="jquery.fcbkcomplete" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.fcbkcomplete.js"} 11 {literal} 12 <script type="text/javascript"> 13 $(document).ready(function() { 14 $("#tags").fcbkcomplete({ 15 json_url: "admin.php?fckb_tags=1", 16 cache: false, 17 filter_case: false, 18 filter_hide: true, 19 firstselected: true, 20 filter_selected: true, 21 maxitems: 100, 22 newel: true 23 }); 24 }); 25 </script> 26 {/literal} 7 {/literal}{/footer_script} 8 9 {combine_script id='jquery.fcbkcomplete' load='async' require='jquery' path='themes/default/js/plugins/jquery.fcbkcomplete.js'} 10 {footer_script require='jquery.fcbkcomplete'}{literal} 11 jQuery(document).ready(function() { 12 jQuery("#tags").fcbkcomplete({ 13 json_url: "admin.php?fckb_tags=1", 14 cache: false, 15 filter_case: false, 16 filter_hide: true, 17 firstselected: true, 18 filter_selected: true, 19 maxitems: 100, 20 newel: true 21 }); 22 }); 23 {/literal}{/footer_script} 27 24 28 25 <h2>{'Batch management'|@translate}</h2> -
trunk/admin/themes/default/template/element_set_ranks.tpl
r6951 r7995 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js" } 3 {known_script id="jquery.ui.sortable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.sortable.packed.js" } 4 {html_head} 5 {literal} 6 <script type="text/javascript"> 7 $(function() { 8 $('ul.thumbnails') 9 .sortable( 10 { revert: true, 11 opacity: 0.7, 12 handle: $('.rank-of-image').add('.rank-of-image img'), 13 update: function() { 14 $(this).find('li').each(function(i) { 15 $(this).find("input[name^=rank_of_image]") 16 .each(function() { $(this).attr('value', (i+1)*10)}); 17 }); 18 $('#image_order_rank').attr('checked', true); 19 } 20 }); 21 }); 22 23 </script> 24 {/literal} 25 {/html_head} 1 {combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/ui/packed/ui.core.packed.js' } 2 {combine_script id='jquery.ui.sortable' load='async' require='jquery.ui' path='themes/default/js/ui/packed/ui.sortable.packed.js' } 3 {footer_script require='jquery.ui.sortable'}{literal} 4 jQuery(document).ready(function() { 5 jQuery('ul.thumbnails').sortable( { 6 revert: true, opacity: 0.7, 7 handle: $('.rank-of-image').add('.rank-of-image img'), 8 update: function() { 9 $(this).find('li').each(function(i) { 10 $(this).find("input[name^=rank_of_image]") 11 .each(function() { $(this).attr('value', (i+1)*10)}); 12 }); 13 $('#image_order_rank').attr('checked', true); 14 } 15 }); 16 }); 17 {/literal}{/footer_script} 26 18 27 19 <h2>{'Manage image ranks'|@translate}</h2> -
trunk/admin/themes/default/template/element_set_unit.tpl
r6587 r7995 3 3 {include file='include/datepicker.inc.tpl'} 4 4 5 {known_script id="jquery.fcbkcomplete" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.fcbkcomplete.js"} 6 {html_head} 7 <script type="text/javascript"> 8 var tag_boxes_selector = ""; 5 {combine_script id='jquery.fcbkcomplete' load='async' require='jquery' path='themes/default/js/plugins/jquery.fcbkcomplete.js'} 6 {footer_script require='jquery.fcbkcomplete'} 7 var tag_boxes_selector = ""; 9 8 {foreach from=$elements item=element name=element} 10 11 12 13 14 15 9 {if $smarty.foreach.element.first} 10 var prefix = ""; 11 {else} 12 prefix = ", "; 13 {/if} 14 tag_boxes_selector = tag_boxes_selector + prefix + "#tags-" + {$element.ID}; 16 15 {/foreach} 17 16 {literal} 18 $(document).ready(function() { 19 $(tag_boxes_selector).fcbkcomplete({ 20 json_url: "admin.php?fckb_tags=1", 21 cache: false, 22 filter_case: false, 23 filter_hide: true, 24 firstselected: true, 25 filter_selected: true, 26 maxitems: 100, 27 newel: true 28 }); 29 }); 30 </script> 31 {/literal} 32 {/html_head} 17 jQuery(document).ready(function() { 18 $(tag_boxes_selector).fcbkcomplete({ 19 json_url: "admin.php?fckb_tags=1", 20 cache: false, 21 filter_case: false, 22 filter_hide: true, 23 firstselected: true, 24 filter_selected: true, 25 maxitems: 100, 26 newel: true 27 }); 28 }); 29 {/literal}{/footer_script} 33 30 34 31 <h2>{'Batch management'|@translate}</h2> … … 97 94 value="{$element.DATE_CREATION_YEAR}"> 98 95 <input id="date_creation_linked_date-{$element.ID}" name="date_creation_linked_date-{$element.ID}" type="hidden" size="10" disabled="disabled"> 99 <script type="text/javascript">96 {footer_script} 100 97 pwg_initialization_datepicker("#date_creation_day-{$element.ID}", "#date_creation_month-{$element.ID}", "#date_creation_year-{$element.ID}", "#date_creation_linked_date-{$element.ID}", "#date_creation_action_set-{$element.ID}"); 101 </script>98 {/footer_script} 102 99 </td> 103 100 </tr> -
trunk/admin/themes/default/template/footer.tpl
r6365 r7995 43 43 </div> <!-- the_page --> 44 44 45 46 {combine_script id='jquery.tipTip' load='async' path='themes/default/js/plugins/jquery.tipTip.minified.js'} 47 {footer_script require='jquery.tipTip'} 48 jQuery(document).ready(function() {ldelim} 49 jQuery('#pwgHead A, #footer A, .themeActions A, .themeActions SPAN, .languageActions A, .languageActions SPAN').tipTip({ldelim} 50 'delay' : 0, 51 'fadeIn' : 200, 52 'fadeOut' : 200, 53 }); 54 }); 55 {/footer_script} 56 57 <!-- BEGIN get_combined_scripts --> 58 {get_combined_scripts load='footer'} 59 <!-- END get_combined_scripts --> 60 45 61 {literal} 46 62 <script type='text/javascript'> 47 $(function() { 48 $('#pwgHead A, #footer A, .themeActions A, .themeActions SPAN, .languageActions A, .languageActions SPAN').tipTip({ 49 'delay' : 0, 50 'fadeIn' : 200, 51 'fadeOut' : 200, 52 }); 53 }); 54 55 $(document).ready(function() { 63 jQuery(document).ready(function() { 56 64 $("a.externalLink").click(function() { 57 65 window.open($(this).attr("href")); -
trunk/admin/themes/default/template/header.tpl
r7990 r7995 22 22 {/foreach} 23 23 24 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js" now=1} {*jQuery is always available by default*} 24 <!-- BEGIN get_combined_scripts --> 25 {get_combined_scripts load='header'} 26 <!-- END get_combined_scripts --> 25 27 26 <script type="text/javascript" src="{$ROOT_URL}themes/default/js/scripts.js"></script> 28 {combine_script id='jquery' path='themes/default/js/jquery.packed.js} 29 27 30 <!--[if lt IE 7]> 28 31 <script type="text/javascript" src="{$ROOT_URL}themes/default/js/pngfix.js"></script> -
trunk/admin/themes/default/template/history.tpl
r6993 r7995 2 2 {include file='include/datepicker.inc.tpl'} 3 3 4 {literal} 5 <script type="text/javascript"> 6 pwg_initialization_datepicker("#start_day", "#start_month", "#start_year", "#start_linked_date", null, null, "#end_linked_date"); 7 pwg_initialization_datepicker("#end_day", "#end_month", "#end_year", "#end_linked_date", null, "#start_linked_date", null); 8 </script> 9 {/literal} 4 {footer_script}{literal} 5 pwg_initialization_datepicker("#start_day", "#start_month", "#start_year", "#start_linked_date", null, null, "#end_linked_date"); 6 pwg_initialization_datepicker("#end_day", "#end_month", "#end_year", "#end_linked_date", null, "#start_linked_date", null); 7 {/literal}{/footer_script} 10 8 11 9 <div class="titrePage"> -
trunk/admin/themes/default/template/include/autosize.inc.tpl
r5123 r7995 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 {known_script id="jquery.autogrow" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.autogrow-textarea.js"} 3 1 {combine_script id='jquery' load='async' path='themes/default/js/jquery.packed.js'} 2 {combine_script id='jquery.autogrow' load='async' require='jquery' path='themes/default/js/plugins/jquery.autogrow-textarea.js'} 4 3 {* Auto size and auto grow textarea *} 5 {literal} 6 <script type="text/javascript"> 7 jQuery().ready(function(){ 8 jQuery('textarea').css('overflow-y', 'hidden'); 9 // Auto size and auto grow for all text area 10 jQuery('textarea').autogrow(); 11 }); 12 </script> 13 {/literal} 4 {footer_script require='jquery.autogrow'}{literal} 5 jQuery(document).ready(function(){ 6 jQuery('textarea').css('overflow-y', 'hidden'); 7 // Auto size and auto grow for all text area 8 jQuery('textarea').autogrow(); 9 }); 10 {/literal}{/footer_script} -
trunk/admin/themes/default/template/include/datepicker.inc.tpl
r5200 r7995 1 2 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 3 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"} 4 {known_script id="jquery.ui.datepicker" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.datepicker.packed.js"} 5 {known_script id="datepicker.js" src=$ROOT_URL|@cat:"themes/default/js/datepicker.js"} 1 {combine_script id='jquery' load='footer' path='themes/default/js/jquery.packed.js'} 2 {combine_script id='jquery.ui' load='footer' require='jquery' path='themes/default/js/ui/packed/ui.core.packed.js'} 3 {combine_script id='jquery.ui.datepicker' load='footer' require='jquery.ui' path='themes/default/js/ui/packed/ui.datepicker.packed.js'} 4 {combine_script id='datepicker.js' load='footer' require='jquery.ui.datepicker' path='themes/default/js/datepicker.js'} 6 5 7 6 {assign var="datepicker_language" value="themes/default/js/ui/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"} 8 7 9 8 {if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists} 10 { known_script id="jquery.ui.datepicker-$lang_info.code" src=$ROOT_URL|@cat:$datepicker_language}9 {combine_script id="jquery.ui.datepicker-$lang_info.code" path=$datepicker_language} 11 10 {/if} 12 11 … … 15 14 {/html_head} 16 15 17 <script type="text/javascript"> 16 {footer_script} 18 17 function pwg_initialization_datepicker(day, month, year, linked_date, checked_on_change, min_linked_date, max_linked_date) 19 18 {ldelim} … … 21 20 "{$ROOT_URL}{$themeconf.admin_icon_dir}/datepicker.png", 22 21 day, month, year, linked_date, checked_on_change, min_linked_date, max_linked_date); 23 } 24 </script> 22 }; 23 {/footer_script} -
trunk/admin/themes/default/template/include/dbselect.inc.tpl
r5123 r7995 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"} 3 {known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.resizable.packed.js"} 4 5 {* Resize possible *} 6 {literal} 7 <script type="text/javascript"> 8 jQuery().ready(function(){ 9 // Resize possible for double select list 10 jQuery(".doubleSelect select.categoryList").resizable({ 11 handles: "w,e", 12 animate: true, 13 animateDuration: "slow", 14 animateEasing: "swing", 15 preventDefault: true, 16 preserveCursor: true, 17 autoHide: true, 18 ghost: true 19 }); 20 }); 21 </script> 22 {/literal} 1 {combine_script id='jquery' load='async' path='themes/default/js/jquery.packed.js'} 2 {combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/ui/packed/ui.core.packed.js' } 3 {combine_script id='jquery.ui.resizable' load='async' require='jquery.ui' path='themes/default/js/ui/packed/ui.resizable.packed.js' } 4 {footer_script require='jquery.ui.resizable'}{literal} 5 jQuery(document).ready(function(){ 6 // Resize possible for double select list 7 jQuery(".doubleSelect select.categoryList").resizable({ 8 handles: "w,e", 9 animate: true, 10 animateDuration: "slow", 11 animateEasing: "swing", 12 preventDefault: true, 13 preserveCursor: true, 14 autoHide: true, 15 ghost: true 16 }); 17 }); 18 {/literal}{/footer_script} -
trunk/admin/themes/default/template/include/resize.inc.tpl
r5123 r7995 1 { known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}2 { known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}3 { known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.resizable.packed.js"}1 {combine_script id='jquery' load='async' path='themes/default/js/jquery.packed.js'} 2 {combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/ui/packed/ui.core.packed.js'} 3 {combine_script id='jquery.ui.resizable' load='async' require='jquery.ui' path='themes/default/js/ui/packed/ui.resizable.packed.js'} 4 4 5 5 {* Resize possible *} 6 {literal} 7 <script type="text/javascript"> 6 {footer_script require='jquery.ui.resizable'}{literal} 8 7 jQuery().ready(function(){ 9 8 // Resize possible for list … … 19 18 }); 20 19 }); 21 </script> 22 {/literal} 20 {/literal}{/footer_script} -
trunk/admin/themes/default/template/intro.tpl
r6565 r7995 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 1 {combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.packed.js'} 3 2 4 <script type="text/javascript"> 3 {footer_script require='jquery.cluetip'} 5 4 jQuery().ready(function(){ldelim} 6 7 8 9 10 5 jQuery('.cluetip').cluetip({ldelim} 6 width: 300, 7 splitTitle: '|', 8 positionBy: 'bottomTop' 9 }); 11 10 }); 12 </script> 11 {/footer_script} 13 12 14 13 <h2>{'Piwigo administration'|@translate}</h2> -
trunk/admin/themes/default/template/languages_new.tpl
r6363 r7995 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 1 {combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.packed.js'} 3 2 4 <script type="text/javascript"> 3 {footer_script require='jquery.cluetip'} 5 4 jQuery().ready(function(){ldelim} 6 7 8 9 5 jQuery('.cluetip').cluetip({ldelim} 6 width: 300, 7 splitTitle: '|' 8 }); 10 9 }); 11 </script> 10 {/footer_script} 12 11 13 12 <div class="titrePage"> -
trunk/admin/themes/default/template/menubar.tpl
r6656 r7995 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js" } 3 {known_script id="jquery.ui.sortable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.sortable.packed.js" } 4 5 <script type="text/javascript"> 6 jQuery().ready(function(){ldelim} 7 jQuery(".menuPos").hide(); 8 jQuery(".drag_button").show(); 9 jQuery(".menuLi").css("cursor","move"); 10 jQuery(".menuUl").sortable({ldelim} 11 axis: "y", 12 opacity: 0.8 13 }); 14 jQuery("input[name^='hide_']").click(function() {ldelim} 15 men = this.name.split('hide_'); 16 if (this.checked) {ldelim} 17 jQuery("#menu_"+men[1]).addClass('menuLi_hidden'); 18 } else {ldelim} 19 jQuery("#menu_"+men[1]).removeClass('menuLi_hidden'); 20 } 21 }); 22 jQuery("#menuOrdering").submit(function(){ldelim} 23 ar = jQuery('.menuUl').sortable('toArray'); 24 for(i=0;i<ar.length;i++) {ldelim} 25 men = ar[i].split('menu_'); 26 document.getElementsByName('pos_' + men[1])[0].value = i+1; 27 } 28 }); 29 }); 30 </script> 1 {combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/ui/packed/ui.core.packed.js' } 2 {combine_script id='jquery.ui.sortable' load='async' require='jquery.ui' path='themes/default/js/ui/packed/ui.sortable.packed.js' } 3 {footer_script require='jquery.ui.sortable'} 4 jQuery(document).ready(function(){ldelim} 5 jQuery(".menuPos").hide(); 6 jQuery(".drag_button").show(); 7 jQuery(".menuLi").css("cursor","move"); 8 jQuery(".menuUl").sortable({ldelim} 9 axis: "y", 10 opacity: 0.8 11 }); 12 jQuery("input[name^='hide_']").click(function() {ldelim} 13 men = this.name.split('hide_'); 14 if (this.checked) {ldelim} 15 jQuery("#menu_"+men[1]).addClass('menuLi_hidden'); 16 } else {ldelim} 17 jQuery("#menu_"+men[1]).removeClass('menuLi_hidden'); 18 } 19 }); 20 jQuery("#menuOrdering").submit(function(){ldelim} 21 ar = jQuery('.menuUl').sortable('toArray'); 22 for(i=0;i<ar.length;i++) {ldelim} 23 men = ar[i].split('menu_'); 24 document.getElementsByName('pos_' + men[1])[0].value = i+1; 25 } 26 }); 27 }); 28 {/footer_script} 31 29 32 30 <div class="titrePage"> -
trunk/admin/themes/default/template/photos_add_direct.tpl
r6993 r7995 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 {known_script id="jquery.jgrowl" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.jgrowl_minimized.js"} 1 {combine_script id='jquery.jgrowl' load='footer' require='jquery' path='themes/default/js/plugins/jquery.jgrowl_minimized.js' } 3 2 4 3 {if $upload_mode eq 'multiple'} 5 4 <script type="text/javascript" src="{$uploadify_path}/swfobject.js"></script> 6 <script type="text/javascript" src="{$uploadify_path}/jquery.uploadify.v2.1.0.min.js"></script> 5 {combine_script id='jquery.uploadify' load='footer' require='jquery' path='admin/include/uploadify/jquery.uploadify.v2.1.0.min.js' } 7 6 {/if} 8 7 {html_head} … … 10 9 {/html_head} 11 10 12 {literal} 13 <script type="text/javascript"> 11 {footer_script}{literal} 14 12 jQuery(document).ready(function(){ 15 13 function checkUploadStart() { … … 226 224 {/if} 227 225 }); 228 </script> 226 {/footer_script} 229 227 230 228 <div class="titrePage"> -
trunk/admin/themes/default/template/picture_modify.tpl
r6993 r7995 3 3 {include file='include/datepicker.inc.tpl'} 4 4 5 {known_script id="jquery.fcbkcomplete" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.fcbkcomplete.js"} 6 {literal} 7 <script type="text/javascript"> 8 $(document).ready(function() { 9 $("#tags").fcbkcomplete({ 10 json_url: "admin.php?fckb_tags=1", 11 cache: false, 12 filter_case: false, 13 filter_hide: true, 14 firstselected: true, 15 filter_selected: true, 16 maxitems: 100, 17 newel: true 18 }); 19 }); 20 </script> 21 {/literal} 22 23 {literal} 24 <script type="text/javascript"> 25 pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set"); 26 </script> 27 {/literal} 5 {combine_script id='jquery.fcbkcomplete' load='async' require='jquery' path='themes/default/js/plugins/jquery.fcbkcomplete.js'} 6 {footer_script require='jquery.fcbkcomplete'}{literal} 7 jQuery(document).ready(function() { 8 jQuery("#tags").fcbkcomplete({ 9 json_url: "admin.php?fckb_tags=1", 10 cache: false, 11 filter_case: false, 12 filter_hide: true, 13 firstselected: true, 14 filter_selected: true, 15 maxitems: 100, 16 newel: true 17 }); 18 }); 19 {/literal}{/footer_script} 20 21 {footer_script} 22 pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set"); 23 {/footer_script} 28 24 29 25 <h2>{'Modify informations about a picture'|@translate}</h2> -
trunk/admin/themes/default/template/plugins_new.tpl
r6363 r7995 1 { known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}2 { known_script id="jquery.ui.effects" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/effects.core.packed.js"}3 { known_script id="jquery.ui.blind" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/effects.blind.packed.js"}1 {combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/ui/packed/ui.core.packed.js' } 2 {combine_script id='jquery.ui.effects' load='async' require='jquery.ui' path='themes/default/js/ui/packed/effects.core.packed.js' } 3 {combine_script id='jquery.ui.effects.blind' load='async' require='jquery.ui.effects' path='themes/default/js/ui/packed/effects.blind.packed.js' } 4 4 5 <script type="text/javascript"> 6 jQuery( ).ready(function(){ldelim}7 8 9 5 {footer_script require='jquery.ui.effects.blind'} 6 jQuery(document).ready(function(){ldelim} 7 jQuery("td[id^='desc_']").click(function() {ldelim} 8 id = this.id.split('_'); 9 nb_lines = jQuery("#bigdesc_"+id[1]).html().split('<br>').length; 10 10 11 $("#smalldesc_"+id[1]).toggle('blind', 1); 12 if ($(this).hasClass('bigdesc')) {ldelim} 13 $("#bigdesc_"+id[1]).toggle('blind', 1); 14 $(this).removeClass('bigdesc'); 15 } else {ldelim} 16 $("#bigdesc_"+id[1]).toggle('blind', 50 + (nb_lines * 30)); 17 $(this).addClass('bigdesc'); 18 } 19 return false; 20 }); 11 jQuery("#smalldesc_"+id[1]).toggle('blind', 1); 12 if (jQuery(this).hasClass('bigdesc')) {ldelim} 13 jQuery("#bigdesc_"+id[1]).toggle('blind', 1); 14 } else {ldelim} 15 jQuery("#bigdesc_"+id[1]).toggle('blind', 50 + (nb_lines * 30)); 16 } 17 jQuery(this).toggleClass('bigdesc'); 18 return false; 19 }); 21 20 }); 22 </script> 21 {/footer_script} 23 22 24 23 <div class="titrePage"> -
trunk/admin/themes/default/template/plugins_update.tpl
r6363 r7995 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 3 4 <script type="text/javascript"> 1 {combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.packed.js'} 2 {footer_script require='jquery.cluetip'} 5 3 jQuery().ready(function(){ldelim} 6 7 8 9 4 jQuery('.cluetip').cluetip({ldelim} 5 width: 300, 6 splitTitle: '|' 7 }); 10 8 }); 11 </script> 9 {/footer_script} 12 10 13 11 <div class="titrePage"> -
trunk/admin/themes/default/template/popuphelp.tpl
r6363 r7995 1 {known_script id="jquery.tipTip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.tipTip.minified.js" }2 3 1 <div id="content" class="content"> 4 2 {$HELP_CONTENT}
Note: See TracChangeset
for help on using the changeset viewer.