Changeset 4787 for trunk/expressoMail1_2/js/QuickCatalogSearch.js
- Timestamp:
- 07/19/11 08:37:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/QuickCatalogSearch.js
r4763 r4787 219 219 border: true, 220 220 onclose: 'QuickCatalogSearch.restoreShortcuts("'+ div.id +'")' }); 221 221 222 222 this.arrayWin[div.id] = win; 223 223 win.draw(); … … 230 230 document.getElementById('select_QuickCatalogSearch').focus(); 231 231 232 if(is_ie ){232 if(is_ie && (preferences.use_shortcuts == '1')){ 233 233 shortcut.remove('down'); 234 234 shortcut.remove('up'); … … 255 255 this.arrayWin['window_QuickCatalogSearch_A'].close(); 256 256 document.getElementById("window_QuickCatalogSearch").style.visibility = "hidden"; 257 if(is_ie) 257 if(typeof shortcut.all_shortcuts['down'] == 'undefined'){ 258 if(is_ie && (preferences.use_shortcuts == '1')) 259 { 260 shortcut.add("down",function(){select_msg('null', 'down');},{'disable_in_input':false}); 261 shortcut.add("up",function(){select_msg('null', 'up');},{'disable_in_input':false}); 262 shortcut.add("return",function(){ 263 if ( Element('border_id_0').className==='menu-sel' ) 264 { 265 all_messages = Element('tbody_box').childNodes; 266 for (var i=0; i < all_messages.length; i++) 267 { 268 if ( exist_className(all_messages[i], 'selected_shortcut_msg') ) 269 { 270 Element("td_who_" + all_messages[i].id).onclick(); 271 return; 272 } 273 } 274 } 275 },{'disable_in_input':true}); 276 } 277 } 278 } 279 280 emQuickCatalogSearch.prototype.restoreShortcuts = function(id) { 281 282 var search_win = document.getElementById(id); 283 if(typeof shortcut.all_shortcuts['down'] == 'undefined'){ 284 if (search_win.style.visibility == 'visible') 258 285 { 259 286 shortcut.add("down",function(){select_msg('null', 'down');},{'disable_in_input':false}); … … 274 301 },{'disable_in_input':true}); 275 302 } 276 }277 278 emQuickCatalogSearch.prototype.restoreShortcuts = function(id) {279 280 var search_win = document.getElementById(id);281 if (search_win.style.visibility == 'visible')282 {283 shortcut.add("down",function(){select_msg('null', 'down');},{'disable_in_input':false});284 shortcut.add("up",function(){select_msg('null', 'up');},{'disable_in_input':false});285 shortcut.add("return",function(){286 if ( Element('border_id_0').className==='menu-sel' )287 {288 all_messages = Element('tbody_box').childNodes;289 for (var i=0; i < all_messages.length; i++)290 {291 if ( exist_className(all_messages[i], 'selected_shortcut_msg') )292 {293 Element("td_who_" + all_messages[i].id).onclick();294 return;295 }296 }297 }298 },{'disable_in_input':true});299 303 } 300 304 search_win.style.visibility = 'hidden';
Note: See TracChangeset
for help on using the changeset viewer.