Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1075 ddelon 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
 
21
function 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
 
33
var oConnector	= window.parent.oConnector ;
34
var oIcons		= window.parent.oIcons ;
35
 
36
 
37
function StringBuilder( value )
38
{
39
    this._Strings = new Array( value || '' ) ;
40
}
41
 
42
StringBuilder.prototype.Append = function( value )
43
{
44
    if ( value )
45
        this._Strings.push( value ) ;
46
}
47
 
48
StringBuilder.prototype.ToString = function()
49
{
50
    return this._Strings.join( '' ) ;
51
}