Changeset 8018 for extensions/event_cats
- Timestamp:
- Dec 7, 2010, 11:46:18 AM (14 years ago)
- Location:
- extensions/event_cats/admin/template
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/admin/template/autolog_new.js
r8016 r8018 12 12 var ec_chk_nover_cat = true; 13 13 var ec_chk_over_grp = true; 14 var ec_ap_ok = false; 14 15 var ec_flag1 = false; 15 16 var ec_flag2 = false; … … 32 33 var ec_up_code_lbl_forced_txt = ''; 33 34 var ec_original_old_user = ''; 34 var ec_plus_bullet_path = '';35 var ec_minus_bullet_path = '';36 35 var ec_selected_old_entry = '-1'; 37 36 var ec_selected_old_code = '-1'; … … 861 860 ec_selected_user = '-1'; 862 861 ec_selected_code = '-1'; 863 de('ec_valid_offset_id').value = maintenant.getTimezoneOffset(); 862 de('ec_valid_offset_id').value = 863 maintenant.getTimezoneOffset(); 864 864 de('ec_style_forced_id').innerHTML = ec_up_code_lbl_forced_txt; 865 865 de('ec_act1_id').value = ec_default_action; … … 1015 1015 } 1016 1016 ec_mark_help(''); 1017 sf_init('first_fieldset_id', 'first_cache_id', 1018 ec_plus_bullet_path, ec_minus_bullet_path, '', false); 1019 sf_init('second_fieldset_id', 'second_cache_id', 1020 ec_plus_bullet_path, ec_minus_bullet_path, '', false); 1017 sf_init('first_fieldset_id', 'first_cache_id'); 1018 sf_init('second_fieldset_id', 'second_cache_id'); 1021 1019 jQuery(document).ready(function(){ 1022 1020 jQuery('#first_cache_id').after(document.createElement('span')); -
extensions/event_cats/admin/template/autolog_new.tpl
r8004 r8018 9 9 {* <!-- Specific CSS --> *} 10 10 {html_head} 11 {literal}12 <link rel = "stylesheet" type = "text/css" href = "{$RACINE_URL}themes/default/js/ui/theme/ui.datepicker.css">13 <style type = "text/css">14 #ui-datepicker-div {15 display:none;16 }17 </style>18 {/literal}11 {literal} 12 <link rel = "stylesheet" type = "text/css" href = "{$RACINE_URL}themes/default/js/ui/theme/ui.datepicker.css"> 13 <style type = "text/css"> 14 #ui-datepicker-div { 15 display:none; 16 } 17 </style> 18 {/literal} 19 19 {/html_head} 20 20 … … 40 40 {'Additional Pages active'|@translate} 41 41 <script type = "text/javascript"> 42 varec_ap_ok = {if count($ec_lists.add_pages) == 0}false{else}true{/if};42 ec_ap_ok = {if count($ec_lists.add_pages) == 0}false{else}true{/if}; 43 43 </script> 44 44 {else} 45 45 {'Additional Pages inactive'|@translate} 46 46 <script type = "text/javascript"> 47 varec_ap_ok = false;47 ec_ap_ok = false; 48 48 </script> 49 49 {/if} … … 525 525 ec_default_entry = "{$ec_default_entry}"; 526 526 ec_auto_code_digits_nb = "{$ec_def_auto_code_dg_nb}"; 527 ec_plus_bullet_path = "{$EVNTCATS_URLS.ROOT}icon/plus.png";528 ec_minus_bullet_path = "{$EVNTCATS_URLS.ROOT}icon/minus.png";527 sf_plus_bullet_path = "{$EVNTCATS_URLS.ROOT}icon/plus.png"; 528 sf_minus_bullet_path = "{$EVNTCATS_URLS.ROOT}icon/minus.png"; 529 529 {if $ec_is_creation} 530 530 {foreach from = $ec_lists.duplicable_codes.ids key = ec_key item = ec_val} -
extensions/event_cats/admin/template/ec_smart_fieldset.inc.tpl
r8016 r8018 7 7 var sf_minus_bullet_path = ''; 8 8 9 function sf_toggle(maximized, reduced) { 10 reduced.toggle(); 11 maximized.toggle(); 9 function sf_reduce(fieldset_id) { 10 var f_m = jQuery('#' + fieldset_id); 11 if (!f_m.is(':hidden')) { 12 f_m.toggle(); 13 jQuery('#' + fieldset_id + '_reduced').toggle(); 14 } 15 } 16 17 function sf_maximize(fieldset_id) { 18 var f_m = jQuery('#' + fieldset_id); 19 if (f_m.is(':hidden')) { 20 f_m.toggle(); 21 jQuery('#' + fieldset_id + '_reduced').toggle(); 22 } 12 23 } 13 24 14 25 function sf_lock(fieldset_id, locked) { 15 var f_m = jQuery('#' + fieldset_id);26 var l_m = jQuery('#' + fieldset_id + ' legend'); 16 27 var l_r = jQuery('#' + fieldset_id + '_reduced_legend'); 17 28 if (locked) { 18 if (!f_m.is(':hidden'))19 sf_toggle(f_m, jQuery('#' + fieldset_id + '_reduced'));20 29 l_r.css('cursor', 'auto'); 21 30 l_r.removeClass('click_ok'); 31 l_m.css('cursor', 'auto'); 32 l_m.removeClass('click_ok'); 22 33 } 23 34 else { 35 l_r.css('cursor', 'pointer'); 24 36 l_r.addClass('click_ok'); 25 l_r.css('cursor', 'pointer'); 37 l_m.css('cursor', 'pointer'); 38 l_m.addClass('click_ok'); 26 39 } 27 40 } … … 32 45 var l_m = jQuery('#' + fieldset_id + ' legend'); 33 46 var l_txt = l_m.text(); 34 var tx = '';35 47 var f_r = f_m; 36 var l_r = f_m; 37 var c = f_m; 48 var l_r = l_m; 38 49 if (sf_minus_bullet_path != '') l_m.prepend( 39 50 '<img alt = "" title = ""' + … … 81 92 ); 82 93 l_r.after(document.createElement('span')); 83 c = l_r.next(); 84 c.attr('id', cache_id); 94 l_r.next().attr('id', cache_id); 85 95 jQuery('.sf_legends').css('cursor', 'pointer'); 86 96 l_m.click(function(){ 87 if (l_m.hasClass('sf_click_ok')) sf_toggle(f_m, f_r);97 if (l_m.hasClass('sf_click_ok')) { f_m.toggle(); f_r.toggle(); } 88 98 }); 89 99 l_r.click(function(){ 90 if (l_r.hasClass('sf_click_ok')) sf_toggle(f_m, f_r);100 if (l_r.hasClass('sf_click_ok')) { f_m.toggle(); f_r.toggle(); } 91 101 }); 92 102 });
Note: See TracChangeset
for help on using the changeset viewer.