Changeset 4787 for trunk/expressoMail1_2/js/shortcut.js
- Timestamp:
- 07/19/11 08:37:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/shortcut.js
r4771 r4787 242 242 shortcut.add("Esc",function(){ 243 243 var window_closed = false; 244 for(var window in arrayJSWin) 245 { 246 if (arrayJSWin[window].visible) 247 { 244 var search_win = document.getElementById( 'window_QuickCatalogSearch' ); 245 246 for(var window in arrayJSWin) 247 { 248 if (arrayJSWin[window].visible) 249 { 250 window_closed = true; 251 if(search_win.style.visibility == 'hidden'){ 248 252 arrayJSWin[window].close(); 249 var search_win = document.getElementById( 'window_QuickCatalogSearch' ); 250 search_win.style.visibility = 'hidden'; 251 window_closed = true; 252 } 253 } 254 253 } 254 } 255 } 256 if((search_win) && (search_win.style.visibility == 'visible')){ 257 search_win.style.visibility = 'hidden'; 258 win.close(); 259 } 260 255 261 if (!window_closed) 256 262 delete_border(get_msg_id(), 'false');
Note: See TracChangeset
for help on using the changeset viewer.