Ticket #1179: nextgen_gallery_shutter_close.patch
| File nextgen_gallery_shutter_close.patch, 811 bytes (added by snarfed, 22 months ago) |
|---|
-
shutter/shutter-reloaded.js
17 17 else {oldonld = window.onload;window.onload = function(){if(oldonld){oldonld();};shutterOnload();}}; 18 18 } 19 19 20 // Escape closes shutter. 21 document['onkeypress'] = function(e) { 22 if (e.keyCode == 27) shutterReloaded.hideShutter(); 23 } 24 20 25 shutterReloaded = { 21 26 22 27 I : function (a) { … … 91 96 if ( ! (S = t.I('shShutter')) ) { 92 97 S = document.createElement('div'); 93 98 S.setAttribute('id','shShutter'); 99 S.setAttribute('onclick', 'shutterReloaded.hideShutter();return false;'); 94 100 document.getElementsByTagName('body')[0].appendChild(S); 95 101 t.hideTags(); 96 102 }
