Changeset 740
- Timestamp:
- 02/15/07 15:04:51 (5 years ago)
- Location:
- trunk
- Files:
-
- 17 modified
-
modules/InsertImage/insert_image.html (modified) (8 diffs)
-
plugins/Abbreviation/popups/abbreviation.html (modified) (1 diff)
-
plugins/BackgroundImage/popups/bgimage.html (modified) (1 diff)
-
plugins/CharacterMap/popups/select_character.html (modified) (2 diffs)
-
plugins/EditTag/popups/edit_tag.html (modified) (1 diff)
-
plugins/ExtendedFileManager/assets/manager.js (modified) (2 diffs)
-
plugins/ExtendedFileManager/manager.php (modified) (1 diff)
-
plugins/FindReplace/popups/find_replace.html (modified) (1 diff)
-
plugins/InsertAnchor/popups/insert_anchor.html (modified) (1 diff)
-
plugins/InsertPicture/InsertPicture.php (modified) (2 diffs)
-
plugins/InsertSmiley/popups/insertsmiley.html (modified) (2 diffs)
-
plugins/QuickTag/popups/quicktag.html (modified) (1 diff)
-
plugins/SetId/popups/set_id.html (modified) (1 diff)
-
plugins/SmartReplace/popups/dialog.html (modified) (1 diff)
-
popups/editor_help.html (modified) (1 diff)
-
popups/popup.css (modified) (1 diff)
-
popups/popup.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/InsertImage/insert_image.html
r734 r740 1 <html> 2 3 <head> 1 <!DOCTYPE html 2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 4 5 <title>Insert Image</title> 5 6 … … 9 10 <script type="text/javascript"> 10 11 11 window.resizeTo(400, 100);12 12 13 13 Xinha = window.opener.Xinha; … … 18 18 function Init() { 19 19 __dlg_translate('Xinha'); 20 __dlg_init( );20 __dlg_init(null,{width:410,height:400}); 21 21 // Make sure the translated string appears in the drop down. (for gecko) 22 22 document.getElementById("f_align").selectedIndex = 1; … … 110 110 </table> 111 111 112 < p/>112 <br /> 113 113 114 114 <fieldset style="float: left; margin-left: 5px;"> … … 132 132 </select> 133 133 134 < p/>134 <br /> 135 135 136 136 <div class="fl">Border thickness:</div> … … 142 142 </fieldset> 143 143 144 <fieldset style="float:right; margin-right: 5px;">144 <fieldset> 145 145 <legend>Spacing</legend> 146 146 … … 151 151 title="Horizontal padding" /> 152 152 153 < p/>153 <br /> 154 154 155 155 <div class="fr">Vertical:</div> … … 160 160 161 161 </fieldset> 162 <br clear="all" /> 163 <table width="100%" style="margin-bottom: 0.2em"> 164 <tr> 165 <td valign="bottom"> 166 <div class="fr">Image Preview:</div> 162 <br style="clear:all"/> 163 <div> 164 Image Preview:<br /> 167 165 <iframe name="ipreview" id="ipreview" frameborder="0" style="border : 1px solid gray;" 168 height="200" width="300" src="../../popups/blank.html"></iframe> 169 </td> 170 <td valign="bottom" style="text-align: right"> 171 <button type="button" name="ok" onclick="return onOK();">OK</button><br> 172 <button type="button" name="cancel" onclick="return onCancel();">Cancel</button> 173 </td> 174 </tr> 175 </table> 166 height="200" width="100%" src="../../popups/blank.html"></iframe> 167 </div> 168 <div id="buttons"> 169 <button type="button" name="ok" onclick="return onOK();">OK</button> 170 <button type="button" name="cancel" onclick="return onCancel();">Cancel</button> 171 </div> 176 172 </form> 177 173 </body> -
trunk/plugins/Abbreviation/popups/abbreviation.html
r677 r740 65 65 <body class="dialog" onload="Init()"> 66 66 <div class="title">Abbreviation</div> 67 <form name="form" >67 <form name="form" action=""> 68 68 <table border="0" style="width: 100%;"> 69 69 <tr> -
trunk/plugins/BackgroundImage/popups/bgimage.html
r677 r740 6 6 <script type="text/javascript" src="../../../popups/popup.js"></script> 7 7 <script language='JavaScript' type='text/javascript'> 8 8 window.resizeTo(350, 195); 9 9 function Init() { 10 10 11 __dlg_translate("BackgroundImage"); 11 12 __dlg_init(); 12 window.resizeTo(300, 195); 13 13 14 } 14 15 -
trunk/plugins/CharacterMap/popups/select_character.html
r419 r740 7 7 <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" /> 8 8 <script type="text/javascript"> 9 window.resizeTo(480, 300); 9 10 // HTMLSource based on HTMLArea XTD 1.5 modified by Holger Hees 10 11 // Original Author - Bernhard Pfeifer novocaine@gmx.net … … 14 15 __dlg_translate('CharacterMap'); 15 16 __dlg_init(); 16 window.resizeTo(480, 300); 17 17 18 var character = ''; // set default input to empty 18 19 View( null, character ); -
trunk/plugins/EditTag/popups/edit_tag.html
r677 r740 6 6 <script type="text/javascript" src="../../../popups/popup.js"></script> 7 7 <script language="javascript"> 8 8 window.resizeTo(600, 450); 9 9 function Init() { 10 10 __dlg_translate("EditTag"); 11 11 __dlg_init(); 12 window.resizeTo(600, 450); 12 13 13 var param = window.dialogArguments; 14 14 document.getElementById("TAG").value = param["content"]; -
trunk/plugins/ExtendedFileManager/assets/manager.js
r710 r740 50 50 if (manager_mode == "link") 51 51 { 52 var offsetForInputs = (Xinha.is_ie) ? 1 55 : 140;52 var offsetForInputs = (Xinha.is_ie) ? 165 : 150; 53 53 } 54 54 else 55 55 { 56 var offsetForInputs = (Xinha.is_ie) ? 2 20 : 200;56 var offsetForInputs = (Xinha.is_ie) ? 230 : 210; 57 57 } 58 58 init = function () … … 543 543 { 544 544 var win = Xinha.viewportSize(window); 545 document.getElementById('imgManager').style.height = parseInt( win.y - 1 50 - offsetForInputs, 10 ) + 'px';545 document.getElementById('imgManager').style.height = parseInt( win.y - 130 - offsetForInputs, 10 ) + 'px'; 546 546 547 547 return true; 548 548 } 549 addEvent(window, 'resize', resize); 549 550 addEvent(window, 'load', init); 550 addEvent(window, 'resize', resize); -
trunk/plugins/ExtendedFileManager/manager.php
r705 r740 78 78 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 79 79 <link href="<?php print $IMConfig['base_url'];?>assets/manager.css" rel="stylesheet" type="text/css" /> 80 <link href="../../popups/popup.css" rel="stylesheet" type="text/css" /> 80 81 <script type="text/javascript" src="../../popups/popup.js"></script> 81 82 <script type="text/javascript" src="<?php print $IMConfig['base_url'];?>assets/popup.js"></script> -
trunk/plugins/FindReplace/popups/find_replace.html
r677 r740 103 103 </head> 104 104 <body class="dialog" onload="Init()"> 105 <form action="" method="get">106 < div class="title" style="width: 310px">Find and Replace</div>105 <div class="title">Find and Replace</div> 106 <form action="" method="get"> 107 107 <table border="0" style="width: 100%; padding: 2px;"><!----> 108 108 <tbody> -
trunk/plugins/InsertAnchor/popups/insert_anchor.html
r677 r740 5 5 <script type="text/javascript" src="../../../popups/popup.js"></script> 6 6 <script type="text/javascript"> 7 7 window.resizeTo(400, 150); 8 8 function Init() { 9 9 __dlg_translate("InsertAnchor"); 10 10 __dlg_init(); 11 window.resizeTo(400, 150); 11 12 12 var param = window.dialogArguments; 13 13 if (param) { -
trunk/plugins/InsertPicture/InsertPicture.php
r686 r740 53 53 54 54 <script type="text/javascript"> 55 55 window.resizeTo(500, 490); 56 56 var Xinha = window.opener.Xinha; 57 57 function i18n(str) { … … 62 62 __dlg_translate("InsertPicture"); 63 63 __dlg_init(); 64 window.resizeTo(500, 490); 64 65 65 // Make sure the translated string appears in the drop down. (for gecko) 66 66 document.getElementById("f_align").selectedIndex = 0; -
trunk/plugins/InsertSmiley/popups/insertsmiley.html
r677 r740 5 5 <script type="text/javascript" src="../../../popups/popup.js"></script> 6 6 <script type="text/javascript"> 7 7 window.resizeTo(400, 300); 8 8 var InsertSmiley = window.opener.InsertSmiley; 9 9 var editor = null; … … 16 16 param = window.dialogArguments; 17 17 editor = param['editor']; 18 window.resizeTo(400, 300); 18 19 19 var tbody = document.getElementById("smileytable"); 20 20 var inum; -
trunk/plugins/QuickTag/popups/quicktag.html
r677 r740 20 20 editor = param['editor']; 21 21 var selectext = param['selectedText']; // sem uso... 22 23 if(!document.all) window.resizeTo(400, 180); // i don't undertand why...24 22 25 23 createDropdown("tags"); -
trunk/plugins/SetId/popups/set_id.html
r677 r740 5 5 <script type="text/javascript" src="../../../popups/popup.js"></script> 6 6 <script type="text/javascript"> 7 7 window.resizeTo(350, 100); 8 8 function Init() { 9 9 __dlg_translate("SetId"); -
trunk/plugins/SmartReplace/popups/dialog.html
r681 r740 46 46 <body class="dialog" onload="Init()"> 47 47 <div class="title">SmartReplace Settings</div> 48 <form >48 <form action=""> 49 49 <table style="width: 100%;border:none"> 50 50 <tr> -
trunk/popups/editor_help.html
r649 r740 6 6 7 7 <script type="text/javascript"> 8 window.resizeTo(400, 480); 8 9 Xinha = window.opener.Xinha; 9 10 function Init() { 10 11 __dlg_translate('Xinha'); 11 12 __dlg_init(); 12 window.resizeTo(400, 480); 13 13 14 } 14 15 -
trunk/popups/popup.css
r700 r740 33 33 } 34 34 #buttons { 35 margin-top: 1em; border-top: 1px solid #999; 36 padding: 2px; text-align: right; 35 margin-top: 1em; 36 border-top: 1px solid #999; 37 padding: 1em; 38 text-align: right; 37 39 } -
trunk/popups/popup.js
r721 r740 37 37 opener.Dialog._return(null); 38 38 } 39 // ray: I mark this on deprecated, because bottom is never used 40 function __dlg_init( bottom, win_dim ) { 41 __xinha_dlg_init(win_dim); 42 } 39 43 40 function __ dlg_init(bottom, win_dim) {44 function __xinha_dlg_init( win_dim ) { 41 45 if(window.__dlg_init_done) return true; 42 46 … … 51 55 window.dialogArguments = opener.Dialog._arguments; 52 56 53 var body = document.body; 54 55 if(win_dim) 57 var body = document.body; 58 if ( !win_dim ) 56 59 { 57 window.resizeTo(win_dim.width, win_dim.height); 58 if(win_dim.top && win_dim.left) 60 var dim = Xinha.viewportSize(window); 61 win_dim = {width:dim.x, height: body.scrollHeight}; 62 } 63 window.resizeTo(win_dim.width, win_dim.height); 64 65 var dim = Xinha.viewportSize(window); 66 window.resizeBy(0, body.scrollHeight - dim.y); 67 68 if(win_dim.top && win_dim.left) 69 { 70 window.moveTo(win_dim.left,win_dim.top); 71 } 72 else 73 { 74 if (!Xinha.is_ie) 59 75 { 60 window.moveTo(win_dim.left,win_dim.top); 76 var x = opener.screenX + (opener.outerWidth - win_dim.width) / 2; 77 var y = opener.screenY + (opener.outerHeight - win_dim.height) / 2; 61 78 } 62 79 else 63 { 64 if (!Xinha.is_ie) 65 { 66 var x = opener.screenX + (opener.outerWidth - win_dim.width) / 2; 67 var y = opener.screenY + (opener.outerHeight - win_dim.height) / 2; 68 } 69 else 70 {//IE does not have window.outer... , so center it on the screen at least 71 var x = (self.screen.availWidth - win_dim.width) / 2; 72 var y = (self.screen.availHeight - win_dim.height) / 2; 73 } 74 window.moveTo(x,y); 80 {//IE does not have window.outer... , so center it on the screen at least 81 var x = (self.screen.availWidth - win_dim.width) / 2; 82 var y = (self.screen.availHeight - win_dim.height) / 2; 75 83 } 84 window.moveTo(x,y); 76 85 } 77 else if (window.sizeToContent) { 78 window.sizeToContent(); 79 window.sizeToContent(); // for reasons beyond understanding, 80 // only if we call it twice we get the 81 // correct size. 82 window.addEventListener("unload", __dlg_onclose, true); 83 window.innerWidth = body.offsetWidth + 5; 84 window.innerHeight = body.scrollHeight + 2; 85 // center on parent 86 var x = opener.screenX + (opener.outerWidth - window.outerWidth) / 2; 87 var y = opener.screenY + (opener.outerHeight - window.outerHeight) / 2; 88 window.moveTo(x, y); 89 } else { 90 var docElm = document.documentElement ? document.documentElement : null; 91 var body_height = docElm && docElm.scrollTop ? docElm.scrollHeight : body.scrollHeight; 92 93 window.resizeTo(body.scrollWidth, body_height); 94 var ch = docElm && docElm.clientHeight ? docElm.clientHeight : body.clientHeight; 95 var cw = docElm && docElm.clientWidth ? docElm.clientWidth : body.clientWidth; 96 97 window.resizeBy(body.offsetWidth - cw, body_height - ch); 98 var W = body.offsetWidth; 99 var H = 2 * body_height - ch; 100 var x = (screen.availWidth - W) / 2; 101 var y = (screen.availHeight - H) / 2; 102 window.moveTo(x, y); 103 } 104 Xinha.addDom0Event(document.body, 'keypress', __dlg_close_on_esc); 86 87 Xinha.addDom0Event(document.body, 'keypress', __dlg_close_on_esc); 105 88 window.__dlg_init_done = true; 106 89 }
