Ignore:
Timestamp:
01/22/07 02:09:48 (13 years ago)
Author:
ray
Message:

Ticket #916 TODO: Change plugins to use Xinha object name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/SaveSubmit/save-submit.js

    r677 r681  
    3030 
    3131SaveSubmit.prototype._lc = function(string) { 
    32     return HTMLArea._lc(string, 'SaveSubmit'); 
     32    return Xinha._lc(string, 'SaveSubmit'); 
    3333} 
    3434 
     
    4747        var self = this; 
    4848        var doc = this.editordoc = this.editor._iframe.contentWindow.document; 
    49         HTMLArea._addEvents(doc, ["mouseup","keyup","keypress","keydown"], 
     49        Xinha._addEvents(doc, ["mouseup","keyup","keypress","keydown"], 
    5050                            function (event) { 
    51                             return self.onEvent(HTMLArea.is_ie ? self.editor._iframe.contentWindow.event : event); 
     51                            return self.onEvent(Xinha.is_ie ? self.editor._iframe.contentWindow.event : event); 
    5252                            }); 
    5353} 
     
    5555SaveSubmit.prototype.onEvent = function(ev) { 
    5656 
    57         var keyEvent = (HTMLArea.is_ie && ev.type == "keydown") || (!HTMLArea.is_ie && ev.type == "keypress"); 
     57        var keyEvent = (Xinha.is_ie && ev.type == "keydown") || (!Xinha.is_ie && ev.type == "keypress"); 
    5858 
    59         if (keyEvent && ev.ctrlKey && String.fromCharCode(HTMLArea.is_ie ? ev.keyCode : ev.charCode).toLowerCase() == 's') { 
     59        if (keyEvent && ev.ctrlKey && String.fromCharCode(Xinha.is_ie ? ev.keyCode : ev.charCode).toLowerCase() == 's') { 
    6060                        this.save(this.editor); 
    6161        } 
     
    111111        } 
    112112 
    113         HTMLArea._postback(editor._textArea.form.action, content, function(getback) { 
     113        Xinha._postback(editor._textArea.form.action, content, function(getback) { 
    114114 
    115115                if (getback) { 
     
    128128  if ( !document.getElementById("message_sub_" + textarea.name)) { return ; } 
    129129  var elt = document.getElementById("message_sub_" + textarea.name); 
    130   elt.innerHTML = HTMLArea._lc(string, 'SaveSubmit'); 
     130  elt.innerHTML = Xinha._lc(string, 'SaveSubmit'); 
    131131} 
    132132 
     
    147147        loading_message.style.width    = htmlarea.offsetWidth +'px' ;//(this.editor._iframe.offsetWidth != 0) ? this.editor._iframe.offsetWidth +'px' : this.editor._initial_ta_size.w; 
    148148 
    149         loading_message.style.left     = HTMLArea.findPosX(htmlarea) +  'px'; 
    150         loading_message.style.top      = (HTMLArea.findPosY(htmlarea) + parseInt(htmlarea.offsetHeight) / 2) - 50 +  'px'; 
     149        loading_message.style.left     = Xinha.findPosX(htmlarea) +  'px'; 
     150        loading_message.style.top      = (Xinha.findPosY(htmlarea) + parseInt(htmlarea.offsetHeight) / 2) - 50 +  'px'; 
    151151 
    152152        var loading_main = document.createElement("div"); 
Note: See TracChangeset for help on using the changeset viewer.