source: companies/celepar/news_admin/templates/celepar/fckeditor/editor/filemanager/browser/default/js/common.js @ 763

Revision 763, 1.2 KB checked in by niltonneto, 15 years ago (diff)

Importação inicial do Expresso da Celepar

Line 
1/*
2 * FCKeditor - The text editor for internet
3 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
4 *
5 * Licensed under the terms of the GNU Lesser General Public License:
6 *              http://www.opensource.org/licenses/lgpl-license.php
7 *
8 * For further information visit:
9 *              http://www.fckeditor.net/
10 *
11 * "Support Open Source software. What about a donation today?"
12 *
13 * File Name: common.js
14 *      Common objects and functions shared by all pages that compose the
15 *      File Browser dialog window.
16 *
17 * File Authors:
18 *              Frederico Caldeira Knabben (fredck@fckeditor.net)
19 */
20
21function AddSelectOption( selectElement, optionText, optionValue )
22{
23        var oOption = document.createElement("OPTION") ;
24
25        oOption.text    = optionText ;
26        oOption.value   = optionValue ;
27
28        selectElement.options.add(oOption) ;
29
30        return oOption ;
31}
32
33var oConnector  = window.parent.oConnector ;
34var oIcons              = window.parent.oIcons ;
35
36
37function StringBuilder( value )
38{
39    this._Strings = new Array( value || '' ) ;
40}
41
42StringBuilder.prototype.Append = function( value )
43{
44    if ( value )
45        this._Strings.push( value ) ;
46}
47
48StringBuilder.prototype.ToString = function()
49{
50    return this._Strings.join( '' ) ;
51}
Note: See TracBrowser for help on using the repository browser.