Changeset 929
- Timestamp:
- 01/09/08 21:10:59 (5 years ago)
- Location:
- trunk
- Files:
-
- 7 modified
-
examples/Extended.html (modified) (1 diff)
-
examples/ext_example-menu.php (modified) (1 diff)
-
modules/Dialogs/dialog.js (modified) (1 diff)
-
modules/Gecko/Gecko.js (modified) (2 diffs)
-
plugins/ExtendedFileManager/assets/dialog.js (modified) (1 diff)
-
plugins/ImageManager/assets/dialog.js (modified) (1 diff)
-
popups/popup.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/Extended.html
r901 r929 97 97 body_height = pos.y + bottom.offsetHeight; 98 98 } 99 window.dialogArguments = opener.Dialog._arguments; 99 if (!window.dialogArguments && opener.Dialog._arguments) 100 { 101 window.dialogArguments = opener.Dialog._arguments; 102 } 100 103 if (!document.all) { 101 104 window.sizeToContent(); -
trunk/examples/ext_example-menu.php
r901 r929 111 111 112 112 function Dialog(url, action, init) { 113 if (typeof init == "undefined") { 114 init = window; // pass this window object by default 115 } 116 Dialog._geckoOpenModal(url, action, init); 113 if (typeof init == "undefined") { 114 init = window; // pass this window object by default 115 } 116 if (typeof window.showModalDialog == 'function') 117 { 118 Dialog._return = action; 119 var r = window.showModalDialog(url, init, "dialogheight=10;dialogheight=10;scroll=no;resizable=yes"); 120 } 121 else 122 { 123 Dialog._geckoOpenModal(url, action, init); 124 } 117 125 }; 118 126 -
trunk/modules/Dialogs/dialog.js
r694 r929 28 28 init = window; // pass this window object by default 29 29 } 30 Dialog._geckoOpenModal(url, action, init); 30 if (typeof window.showModalDialog == 'function') 31 { 32 Dialog._return = function(retVal) { 33 if (typeof action == 'function') action (retVal); 34 } 35 var r = window.showModalDialog(url, init, "dialogheight=10;dialogwidth=10;resizable=yes"); 36 } 37 else 38 { 39 Dialog._geckoOpenModal(url, action, init); 40 } 31 41 } 32 42 -
trunk/modules/Gecko/Gecko.js
r901 r929 396 396 Xinha.prototype.insertNodeAtSelection = function(toBeInserted) 397 397 { 398 if ( toBeInserted.ownerDocument != this._doc ) // as of FF3, Gecko is strict regarding the ownerDocument of an element 399 { 400 try 401 { 402 toBeInserted = this._doc.adoptNode( toBeInserted ); 403 } catch (e) {} 404 } 398 405 var sel = this.getSelection(); 399 406 var range = this.createRange(sel); … … 404 411 var pos = range.startOffset; 405 412 var selnode = toBeInserted; 413 406 414 switch ( node.nodeType ) 407 415 { -
trunk/plugins/ExtendedFileManager/assets/dialog.js
r677 r929 16 16 17 17 function Dialog(url, action, init) { 18 if (typeof init == "undefined") { 19 init = window; // pass this window object by default 20 } 21 Dialog._geckoOpenModal(url, action, init); 18 if (typeof init == "undefined") { 19 init = window; // pass this window object by default 20 } 21 if (typeof window.showModalDialog == 'function') 22 { 23 Dialog._return = action; 24 var r = window.showModalDialog(url, init, "dialogheight=10;dialogwidth=10;resizable=yes"); 25 } 26 else 27 { 28 Dialog._geckoOpenModal(url, action, init); 29 } 22 30 } 23 31 -
trunk/plugins/ImageManager/assets/dialog.js
r677 r929 19 19 init = window; // pass this window object by default 20 20 } 21 Dialog._geckoOpenModal(url, action, init); 21 if (typeof window.showModalDialog == 'function') 22 { 23 Dialog._return = action; 24 var r = window.showModalDialog(url, init, "dialogheight=10;dialogwidth=10;resizable=yes"); 25 } 26 else 27 { 28 Dialog._geckoOpenModal(url, action, init); 29 } 22 30 } 23 31 -
trunk/popups/popup.js
r877 r929 55 55 head.appendChild(link); 56 56 } 57 window.dialogArguments = opener.Dialog._arguments; 57 if (!window.dialogArguments && opener.Dialog._arguments) 58 { 59 window.dialogArguments = opener.Dialog._arguments; 60 } 61 58 62 59 63 var page = Xinha.pageSize(window);
