Changeset 7985 for extensions
- Timestamp:
- Dec 2, 2010, 11:12:30 PM (14 years ago)
- Location:
- extensions/event_cats/admin/template
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/admin/template/autolog_new.js
r7973 r7985 81 81 } 82 82 83 function ec_ mark_reduced_fieldsets() { /*84 if ( de('ec_sel_code_new').checked == 'checked') {85 }86 else {87 } */83 function ec_update_comment(ec_id) { 84 if (ec_id == '') 85 de('first_fieldset_comment_id').innerHTML = ''; 86 else 87 de('first_fieldset_comment_id').innerHTML = ' <em>(' + ec_id + ')</em>'; 88 88 } 89 89 … … 146 146 } 147 147 ec_chk_nover_cat = true; 148 ec_mark_reduced_fieldsets();149 148 } 150 149 151 150 function ec_mark_code(ec_id) { 152 var t3 = d.ec_new_code.ec_in_up_code_list_id; 153 var t2 = ''; 151 var t2 = d.ec_new_code.ec_in_up_code_list_id; 154 152 if (ec_id == '-1') { 155 153 de('ec_sel_code_old').checked = 'checked'; … … 174 172 (ec_selected_old_group) ? 'checked' : ''; 175 173 de('ec_act2_id').value = '-1'; 176 t2 = ' <em>(' + de('ec_in_up_comment_id').value + ')</em>'; 177 t2 = (t2 == ' <em>()</em>') ? '' : t2 178 de('first_fieldset_value_id').innerHTML = ec_new_code_text + t2; 174 de('first_fieldset_value_id').innerHTML = ec_new_code_text; 175 ec_update_comment(ec_new_comment_text); 179 176 break; 180 177 case 'ec_sel_code_old': … … 191 188 ec_selected_old_user = 192 189 ec_lists['user_id'][ec_selected_old_code]; 193 t2 =194 ' <em>(' +195 ec_lists['comment'][t3.options[t3.selectedIndex].value] +196 ')</em>'197 ;198 t2 = (t2 == ' <em>()</em>') ? '' : t2199 190 de('first_fieldset_value_id').innerHTML = 200 ec_lists['code'][t3.options[t3.selectedIndex].value] + t2; 191 ec_lists['code'][t2.options[t2.selectedIndex].value]; 192 ec_update_comment( 193 ec_lists['comment'][t2.options[t2.selectedIndex].value] 194 ); 201 195 ec_flag1 = true; 202 196 ec_mark_user('ec_sel_user_old'); … … 215 209 } 216 210 } 217 ec_mark_reduced_fieldsets();218 211 } 219 212 220 213 function ec_mark_user(ec_id) { 214 var t = d.ec_new_code.ec_in_up_usr_list_id; 221 215 if (ec_id == '-1') { 222 216 de('ec_sel_user_old').checked = 'checked'; … … 231 225 de('ec_in_up_usr_list_id').selectedIndex = '-1'; 232 226 d.ec_new_code.ec_in_up_entry_list.focus(); 233 ec_mark_reduced_fieldsets();234 227 return false; 235 228 } … … 251 244 de('ec_in_up_newgroup_id').checked = ''; 252 245 de('ec_in_up_usr_list_id').selectedIndex = '-1'; 246 de('second_fieldset_value_id').innerHTML = ''; 253 247 break; 254 248 case 'ec_sel_user_new': // New user … … 263 257 (ec_selected_old_group) ? 'checked' : ''; 264 258 de('ec_in_up_usr_list_id').selectedIndex = '-1'; 259 de('second_fieldset_value_id').innerHTML = ec_new_user_text; 265 260 break; 266 261 case 'ec_sel_user_old': // "Old" user 267 262 if (ec_selected_action == 'ec_input_action_refused') 268 263 ec_selected_action = 'ec_input_action_home'; 269 de('ec_in_up_usr_txt_id').value = ''; 270 de('ec_in_up_psd_txt_id').value = ''; 271 de('ec_confirm_psd_txt_id').value = ''; 272 de('ec_in_up_grp_txt_id').value = ''; 273 de('ec_in_up_newgroup_id').checked = ''; 274 de('ec_in_up_usr_list_id').value = ec_selected_old_user; 264 de('ec_in_up_usr_txt_id').value = ''; 265 de('ec_in_up_psd_txt_id').value = ''; 266 de('ec_confirm_psd_txt_id').value = ''; 267 de('ec_in_up_grp_txt_id').value = ''; 268 de('ec_in_up_newgroup_id').checked = ''; 269 de('ec_in_up_usr_list_id').value = ec_selected_old_user; 270 de('second_fieldset_value_id').innerHTML = 271 t.options[t.selectedIndex].label; 275 272 break; 276 273 } … … 283 280 } 284 281 } 285 ec_mark_reduced_fieldsets();286 282 return true; 287 283 } … … 302 298 de('ec_in_up_imgs_id').value = ''; 303 299 d.ec_new_code.ec_in_up_entry_list.focus(); 304 ec_mark_reduced_fieldsets();305 300 return false; 306 301 } … … 378 373 } 379 374 } 380 ec_mark_reduced_fieldsets();381 375 return true; 382 376 } … … 1029 1023 ); 1030 1024 }); 1025 jQuery('#reduced_second_fieldset_legend_id').click(function(){ 1026 ec_toggle_fieldset( 1027 '#reduced_second_fieldset_id', '#maximized_second_fieldset_id' 1028 ); 1029 }); 1031 1030 jQuery('#maximized_first_fieldset_legend_id').click(function(){ 1032 1031 ec_toggle_fieldset( 1033 1032 '#reduced_first_fieldset_id', '#maximized_first_fieldset_id' 1033 ); 1034 }); 1035 jQuery('#maximized_second_fieldset_legend_id').click(function(){ 1036 ec_toggle_fieldset( 1037 '#reduced_second_fieldset_id', '#maximized_second_fieldset_id' 1034 1038 ); 1035 1039 }); -
extensions/event_cats/admin/template/autolog_new.tpl
r7972 r7985 87 87 <span style = "font-weight:bold;" class = "reduced_fieldsets_legend fieldsets_legend" id = "reduced_first_fieldset_legend_id" 88 88 ><img class = "plus_bullets" alt = "" title = "" src = "{$EVNTCATS_URLS.ROOT}icon/plus.png" 89 > <span id = "first_fieldset_legend_id 1"90 >{if $ec_is_creation}{'Code'|@translate}{else}{'Selected entry'|@translate}{/if}</span> : </span >91 <span id = "first_fieldset_value_id"></span>89 > <span id = "first_fieldset_legend_id" 90 >{if $ec_is_creation}{'Code'|@translate}{else}{'Selected entry'|@translate}{/if}</span> : </span 91 ><span id = "first_fieldset_value_id"></span><span id = "first_fieldset_comment_id"></span> 92 92 </div> 93 93 <fieldset id = "maximized_first_fieldset_id"> 94 94 <legend style = "font-weight:bold;" class = "fieldsets_legend" id = "maximized_first_fieldset_legend_id"> 95 95 <img class = "minus_bullets" alt = "" title = "" src = "{$EVNTCATS_URLS.ROOT}icon/minus.png"> 96 <script type = "text/javascript">d.write(de('first_fieldset_legend_id 1').innerHTML);</script>96 <script type = "text/javascript">d.write(de('first_fieldset_legend_id').innerHTML);</script> 97 97 </legend> 98 98 <ul> … … 136 136 <span style = "font-weight:bold; font-style:italic;">{'Comment'|@translate}</span> 137 137 <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id" 138 onchange = "ec_new_comment_text = this.value; "138 onchange = "ec_new_comment_text = this.value; ec_update_comment(this.value);" 139 139 > 140 140 </label> … … 188 188 189 189 {* <!-- User to identify --> *} 190 <fieldset> 191 <legend style = "font-weight:bold;"> 190 <div id = "reduced_second_fieldset_id" class = "reduced_fieldsets" style = "display:none;"> 191 <span style = "font-weight:bold;" class = "reduced_fieldsets_legend fieldsets_legend" id = "reduced_second_fieldset_legend_id" 192 ><img class = "plus_bullets" alt = "" title = "" src = "{$EVNTCATS_URLS.ROOT}icon/plus.png" 193 > {'Identified user'|@translate} : </span><span id = "second_fieldset_value_id"></span> 194 </div> 195 <fieldset id = "maximized_second_fieldset_id"> 196 <legend style = "font-weight:bold;" class = "fieldsets_legend" id = "maximized_second_fieldset_legend_id"> 197 <img class = "minus_bullets" alt = "" title = "" src = "{$EVNTCATS_URLS.ROOT}icon/minus.png"> 192 198 {'Identified user'|@translate} 193 199 <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn"> </span><br>
Note: See TracChangeset
for help on using the changeset viewer.