Changeset 22296 for lang/javascript/PluggableInlineWindow
- Timestamp:
- 10/29/08 00:42:13 (2 months ago)
- Location:
- lang/javascript/PluggableInlineWindow/trunk
- Files:
-
- 5 modified
-
img/btn_close.gif (modified) (1 prop) (previous)
-
img/loading_icon.gif (modified) (1 prop) (previous)
-
js/f_window.js (modified) (1 diff)
-
js/piwindow.js (modified) (4 diffs)
-
js/piwindow_loader.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/PluggableInlineWindow/trunk/img/btn_close.gif
- Property svn:mime-type changed from application/octet-stream to image/gif
-
lang/javascript/PluggableInlineWindow/trunk/img/loading_icon.gif
- Property svn:mime-type changed from application/octet-stream to image/gif
-
lang/javascript/PluggableInlineWindow/trunk/js/f_window.js
r16012 r22296 125 125 } 126 126 if (!initX) initX = 0; 127 if (!initY) initY = 0; 127 if (!initY) initY = 0; 128 128 win.style.left = initX + 'px'; 129 129 win.style.top = initY + 'px'; 130 130 131 131 win.style.opacity = 0; 132 132 win.style.visibility = "visible"; -
lang/javascript/PluggableInlineWindow/trunk/js/piwindow.js
r16011 r22296 12 12 lastY: Number, 13 13 requireCSS: function(cssName){ 14 var d = document;15 // head14 var d = document; 15 // head 16 16 17 var head = d.getElementsByTagName('HEAD')[0];18 if (!head) return;17 var head = d.getElementsByTagName('HEAD')[0]; 18 if (!head) return; 19 19 20 var ele=document.createElement('link');21 ele.rel='stylesheet';22 ele.href=cssName;23 ele.type='text/css';24 head.appendChild(ele);20 var ele=document.createElement('link'); 21 ele.rel='stylesheet'; 22 ele.href=cssName; 23 ele.type='text/css'; 24 head.appendChild(ele); 25 25 }, 26 26 initialize: function(){ 27 27 28 if (document.getElementsByTagName('frame').length > 0) {28 if (document.getElementsByTagName('frame').length > 0) { 29 29 alert("フレームのページでは表示できません"); 30 30 } 31 31 32 32 this.requireCSS(PIWIN_PATH + 'css/pi_window.css'); 33 try {33 try { 34 34 eval(PIWIN_MODULE).onInit(this); 35 } catch(e){35 } catch (e) { 36 36 this.onInit(); 37 37 } … … 59 59 this.myWin.btnArray = [ 60 60 {id:"btn1",src:"/img/btn_close.gif",width:"55",height:"13",value:"close",change:this.win_close.bind(this)} 61 ];61 ]; 62 62 63 63 this.lastX = viewObj.x || 0; … … 70 70 this.myWin.addBtnEvent($(this.myName + '_close'), "click", this.win_close.bind(this), false); 71 71 72 try {72 try { 73 73 eval(PIWIN_MODULE).onShow(this); 74 } catch(e){74 } catch (e) { 75 75 } 76 76 77 77 }, 78 win_close:function (event){78 win_close:function(event){ 79 79 80 80 this.myWin.close(); … … 96 96 var d = document; 97 97 98 if (window.getSelection) {98 if (window.getSelection) { 99 99 var range = window.getSelection(); 100 100 return range.toString(); 101 } else if (d.selection){101 } else if (d.selection) { 102 102 103 103 if (d.selection && d.selection.type != "Control") { -
lang/javascript/PluggableInlineWindow/trunk/js/piwindow_loader.js
r16012 r22296 6 6 * 7 7 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php 8 */8 */ 9 9 10 10 … … 63 63 if (!isDefined(className)) { 64 64 65 var postfix = '';66 /* Please comment out if you want to make the plug-in updated daily. */67 /*68 if (libName.indexOf('plugins/') != -1 || libName =='js/f_window' ){69 var d = new Date();70 var update = d.getFullYear() + '-' + d.getMonth() + '-' + d.getDate();71 postfix = '?' + update;72 }73 */65 var postfix = ''; 66 /* Please comment out if you want to make the plug-in updated daily. */ 67 /* 68 if (libName.indexOf('plugins/') != -1 || libName =='js/f_window' ){ 69 var d = new Date(); 70 var update = d.getFullYear() + '-' + d.getMonth() + '-' + d.getDate(); 71 postfix = '?' + update; 72 } 73 */ 74 74 75 75 var fullpath; 76 76 if (libName.indexOf('http') != 0) 77 fullpath = PIWIN_PATH + libName + '.js' + postfix;78 else79 fullpath = libName;77 fullpath = PIWIN_PATH + libName + '.js' + postfix; 78 else 79 fullpath = libName; 80 80 81 81 var s = document.createElement('script');
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)