Ignore:
Timestamp:
02/05/07 23:49:53 (13 years ago)
Author:
ray
Message:
  • Ticket #935 EFM demo_images php upload allowed: possible security risk
  • fixed paths for inline_dialog.js in FormOperations?/form-operations.js
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/FormOperations/form-operations.js

    r677 r714  
    99    --------------------------------------------------------------------------*/ 
    1010 
    11 HTMLArea.Config.prototype.FormOperations = 
     11Xinha.Config.prototype.FormOperations = 
    1212{ 
    1313  // format for fields where multiple values may be selected 
     
    1717  'allow_edit_form'      : false, 
    1818  'default_form_action'  : _editor_url + 'plugins/FormOperations/formmail.php', 
    19   'default_form_html'    : HTMLArea._geturlcontent(_editor_url + 'plugins/FormOperations/default_form.html') 
     19  'default_form_html'    : Xinha._geturlcontent(_editor_url + 'plugins/FormOperations/default_form.html') 
    2020}; 
    2121 
     
    6060  function pasteAndSelect(htmlTag) 
    6161  { 
    62     var id = HTMLArea.uniq('fo'); 
     62    var id = Xinha.uniq('fo'); 
    6363    htmlTag = htmlTag.replace(/^<([^ \/>]+)/i, '<$1 id="'+id+'"'); 
    6464    editor.insertHTML(htmlTag); 
     
    7373 
    7474  FormOperations.prototype._lc = function(string) { 
    75     return HTMLArea._lc(string, 'FormOperations'); 
     75    return Xinha._lc(string, 'FormOperations'); 
    7676  }; 
    7777 
     
    170170  // Gecko does not register click events on select lists inside the iframe 
    171171  // so the only way of detecting that is to do an event on mouse move. 
    172   if( HTMLArea.is_gecko) 
     172  if( Xinha.is_gecko) 
    173173  { 
    174174    var editor = this.editor; 
    175175    var doc    = this.editor._doc; 
    176     HTMLArea._addEvents 
     176    Xinha._addEvents 
    177177    (doc, ["mousemove"], 
    178178     function (event) { 
     
    188188  { 
    189189 
    190     HTMLArea._getback(_editor_url + 'plugins/FormOperations/panel.html', 
     190    Xinha._getback(_editor_url + 'plugins/FormOperations/panel.html', 
    191191      function(txt) 
    192192      { 
     
    198198  } 
    199199 
    200   if(typeof HTMLArea.Dialog == 'undefined') 
    201   { 
    202     HTMLArea._loadback 
    203       (_editor_url + 'inline-dialog.js', function() { fo._preparePanel(); } ); 
     200  if(typeof Xinha.Dialog == 'undefined') 
     201  { 
     202    Xinha._loadback 
     203      (_editor_url + 'modules/Dialogs/inline-dialog.js', function() { fo._preparePanel(); } ); 
    204204      return false; 
    205205  } 
    206206 
    207   if(typeof HTMLArea.PanelDialog == 'undefined') 
    208   { 
    209     HTMLArea._loadback 
    210       (_editor_url + 'panel-dialog.js', function() { fo._preparePanel(); } ); 
     207  if(typeof Xinha.PanelDialog == 'undefined') 
     208  { 
     209    Xinha._loadback 
     210      (_editor_url + 'modules/Dialogs/panel-dialog.js', function() { fo._preparePanel(); } ); 
    211211      return false; 
    212212  } 
     
    214214 
    215215 
    216   this.panel = new HTMLArea.PanelDialog(this.editor,'bottom',this.html,'FormOperations'); 
     216  this.panel = new Xinha.PanelDialog(this.editor,'bottom',this.html,'FormOperations'); 
    217217  this.panel.hide(); 
    218218  this.ready = true; 
     
    372372  this.panel.getElementById('text_type').onchange   = function () 
    373373    { 
    374       if(!HTMLArea.is_ie) 
     374      if(!Xinha.is_ie) 
    375375      { 
    376376        i.type = this.options[this.selectedIndex].value; 
     
    391391          tmpContainer.innerHTML = i.outerHTML.replace(/type="?[a-z]+"?/i, 'type="' + this.options[this.selectedIndex].value + '"'); 
    392392        } 
    393         var newElement = HTMLArea.removeFromParent(tmpContainer.childNodes[0]); 
     393        var newElement = Xinha.removeFromParent(tmpContainer.childNodes[0]); 
    394394        i.parentNode.insertBefore(newElement, i); 
    395         HTMLArea.removeFromParent(i); 
     395        Xinha.removeFromParent(i); 
    396396        input = i = newElement; 
    397397      } 
     
    433433  this.panel.getElementById('cbrd_type').onchange   = function () 
    434434    { 
    435       if(!HTMLArea.is_ie) 
     435      if(!Xinha.is_ie) 
    436436      { 
    437437        i.type = this.options[this.selectedIndex].value; 
     
    452452          tmpContainer.innerHTML = i.outerHTML.replace(/type="?[a-z]+"?/i, 'type="' + this.options[this.selectedIndex].value + '"'); 
    453453        } 
    454         var newElement = HTMLArea.removeFromParent(tmpContainer.childNodes[0]); 
     454        var newElement = Xinha.removeFromParent(tmpContainer.childNodes[0]); 
    455455        i.parentNode.insertBefore(newElement, i); 
    456         HTMLArea.removeFromParent(i); 
     456        Xinha.removeFromParent(i); 
    457457        input = i = newElement; 
    458458      } 
     
    478478  this.panel.getElementById('button_type').onchange   = function () 
    479479    { 
    480       if(!HTMLArea.is_ie) 
     480      if(!Xinha.is_ie) 
    481481      { 
    482482        i.type = this.options[this.selectedIndex].value; 
     
    497497          tmpContainer.innerHTML = i.outerHTML.replace(/type="?[a-z]+"?/i, 'type="' + this.options[this.selectedIndex].value + '"'); 
    498498        } 
    499         var newElement = HTMLArea.removeFromParent(tmpContainer.childNodes[0]); 
     499        var newElement = Xinha.removeFromParent(tmpContainer.childNodes[0]); 
    500500        i.parentNode.insertBefore(newElement, i); 
    501         HTMLArea.removeFromParent(i); 
     501        Xinha.removeFromParent(i); 
    502502        input = i = newElement; 
    503503      } 
Note: See TracChangeset for help on using the changeset viewer.