[ Index ]
 

Code source de FCKeditor 2.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/editor/filemanager/browser/default/js/ -> common.js (source)

   1  /*
   2   * FCKeditor - The text editor for Internet - http://www.fckeditor.net
   3   * Copyright (C) 2003-2007 Frederico Caldeira Knabben
   4   * 
   5   * == BEGIN LICENSE ==
   6   * 
   7   * Licensed under the terms of any of the following licenses at your
   8   * choice:
   9   * 
  10   *  - GNU General Public License Version 2 or later (the "GPL")
  11   *    http://www.gnu.org/licenses/gpl.html
  12   * 
  13   *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
  14   *    http://www.gnu.org/licenses/lgpl.html
  15   * 
  16   *  - Mozilla Public License Version 1.1 or later (the "MPL")
  17   *    http://www.mozilla.org/MPL/MPL-1.1.html
  18   * 
  19   * == END LICENSE ==
  20   * 
  21   * File Name: common.js
  22   *     Common objects and functions shared by all pages that compose the
  23   *     File Browser dialog window.
  24   * 
  25   * File Authors:
  26   *         Frederico Caldeira Knabben (www.fckeditor.net)
  27   */
  28  
  29  function AddSelectOption( selectElement, optionText, optionValue )
  30  {
  31      var oOption = document.createElement("OPTION") ;
  32  
  33      oOption.text    = optionText ;
  34      oOption.value    = optionValue ;    
  35  
  36      selectElement.options.add(oOption) ;
  37  
  38      return oOption ;
  39  }
  40  
  41  var oConnector    = window.parent.oConnector ;
  42  var oIcons        = window.parent.oIcons ;
  43  
  44  
  45  function StringBuilder( value )
  46  {
  47      this._Strings = new Array( value || '' ) ;
  48  }
  49  
  50  StringBuilder.prototype.Append = function( value )
  51  {
  52      if ( value )
  53          this._Strings.push( value ) ;
  54  }
  55  
  56  StringBuilder.prototype.ToString = function()
  57  {
  58      return this._Strings.join( '' ) ;
  59  }


Généré le : Sun Feb 25 15:28:05 2007 par Balluche grâce à PHPXref 0.7