Show
Ignore:
Timestamp:
10/29/08 00:42:13 (2 months ago)
Author:
drry
Message:
  • fixed subversion properties.
  • et cetera.
Location:
lang/javascript/PluggableInlineWindow/trunk
Files:
5 modified

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  
    125125                } 
    126126                if (!initX) initX = 0; 
    127                 if (!initY) initY = 0;           
     127                if (!initY) initY = 0; 
    128128                win.style.left = initX + 'px'; 
    129129                win.style.top = initY + 'px'; 
    130                  
     130 
    131131                win.style.opacity = 0; 
    132132                win.style.visibility = "visible"; 
  • lang/javascript/PluggableInlineWindow/trunk/js/piwindow.js

    r16011 r22296  
    1212  lastY: Number, 
    1313  requireCSS: function(cssName){ 
    14     var d = document; 
    15     // head 
     14        var d = document; 
     15        // head 
    1616 
    17     var head = d.getElementsByTagName('HEAD')[0]; 
    18     if (!head) return; 
     17        var head = d.getElementsByTagName('HEAD')[0]; 
     18        if (!head) return; 
    1919 
    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); 
    2525  }, 
    2626  initialize: function(){ 
    2727 
    28         if (document.getElementsByTagName('frame').length > 0){ 
     28        if (document.getElementsByTagName('frame').length > 0) { 
    2929                alert("フレームのページでは表示できません"); 
    3030        } 
    3131 
    3232        this.requireCSS(PIWIN_PATH + 'css/pi_window.css'); 
    33         try{ 
     33        try { 
    3434                eval(PIWIN_MODULE).onInit(this); 
    35         }catch(e){ 
     35        } catch (e) { 
    3636                this.onInit(); 
    3737        } 
     
    5959        this.myWin.btnArray = [ 
    6060          {id:"btn1",src:"/img/btn_close.gif",width:"55",height:"13",value:"close",change:this.win_close.bind(this)} 
    61     ]; 
     61        ]; 
    6262 
    6363        this.lastX = viewObj.x || 0; 
     
    7070        this.myWin.addBtnEvent($(this.myName + '_close'), "click", this.win_close.bind(this), false); 
    7171 
    72         try{ 
     72        try { 
    7373                eval(PIWIN_MODULE).onShow(this); 
    74         }catch(e){ 
     74        } catch (e) { 
    7575        } 
    7676 
    7777  }, 
    78   win_close:function (event){ 
     78  win_close:function(event){ 
    7979 
    8080        this.myWin.close(); 
     
    9696                var d = document; 
    9797 
    98                 if (window.getSelection){ 
     98                if (window.getSelection) { 
    9999                        var range = window.getSelection(); 
    100100                        return range.toString(); 
    101                 }else if (d.selection){ 
     101                } else if (d.selection) { 
    102102 
    103103                        if (d.selection && d.selection.type != "Control") { 
  • lang/javascript/PluggableInlineWindow/trunk/js/piwindow_loader.js

    r16012 r22296  
    66 * 
    77 *  Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php 
    8 */ 
     8 */ 
    99 
    1010 
     
    6363    if (!isDefined(className)) { 
    6464 
    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        */ 
    7474 
    7575        var fullpath; 
    7676        if (libName.indexOf('http') != 0) 
    77                fullpath  = PIWIN_PATH + libName + '.js' + postfix; 
    78             else 
    79                fullpath  = libName; 
     77                fullpath  = PIWIN_PATH + libName + '.js' + postfix; 
     78        else 
     79                fullpath  = libName; 
    8080 
    8181        var s = document.createElement('script');