[freeside-commits] freeside/httemplate/elements/fckeditor/editor/dialog/common fck_dialog_common.css, NONE, 1.1.2.2 fck_dialog_common.js, NONE, 1.1.2.2 fcknumericfield.htc, NONE, 1.1.2.2 moz-bindings.xml, NONE, 1.1.2.2

Ivan,,, ivan at wavetail.420.am
Mon Jun 16 20:57:52 PDT 2008


Update of /home/cvs/cvsroot/freeside/httemplate/elements/fckeditor/editor/dialog/common
In directory wavetail.420.am:/tmp/cvs-serv697/fckeditor/editor/dialog/common

Added Files:
      Tag: FREESIDE_1_7_BRANCH
	fck_dialog_common.css fck_dialog_common.js fcknumericfield.htc 
	moz-bindings.xml 
Log Message:
adding fckeditor on _17_BRANCH, for customer notices

--- NEW FILE: moz-bindings.xml ---
<?xml version="1.0" encoding="utf-8" ?>
<bindings xmlns="http://www.mozilla.org/xbl">
	<binding id="numericfield">
		<implementation>
			<constructor>
				this.keypress = CheckIsDigit ;
			</constructor>
			<method name="CheckIsDigit">
				<body>
					<![CDATA[
					var iCode = keyCode ;

					var bAccepted =
						(
							( iCode >= 48 && iCode <= 57 )		// Numbers
							|| (iCode >= 37 && iCode <= 40)		// Arrows
							|| iCode == 8						// Backspace
							|| iCode == 46						// Delete
						) ;

					return bAccepted ;
					]]>
				</body>
			</method>
		</implementation>
		<events>
			<event type="keypress" value="CheckIsDigit()" />
		</events>
	</binding>
</bindings>
--- NEW FILE: fck_dialog_common.js ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: fck_dialog_common.css ---
/*
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2007 Frederico Caldeira Knabben
 *
 * == BEGIN LICENSE ==
 *
 * Licensed under the terms of any of the following licenses at your
 * choice:
 *
 *  - GNU General Public License Version 2 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 *
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 *
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
 *
 * This is the CSS file used for interface details in some dialog
 * windows.
 */

.ImagePreviewArea
{
	border: #000000 1px solid;
	overflow: auto;
	width: 100%;
	height: 170px;
	background-color: #ffffff;
}

.FlashPreviewArea
{
	border: #000000 1px solid;
	padding: 5px;
	overflow: auto;
	width: 100%;
	height: 170px;
	background-color: #ffffff;
}

.BtnReset
{
	float: left;
	background-position: center center;
	background-image: url(images/reset.gif);
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	border: 1px none;
	font-size: 1px ;
}

.BtnLocked, .BtnUnlocked
{
	float: left;
	background-position: center center;
	background-image: url(images/locked.gif);
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	border: none 1px;
	font-size: 1px ;
}

.BtnUnlocked
{
	background-image: url(images/unlocked.gif);
}

.BtnOver
{
	border: outset 1px;
	cursor: pointer;
	cursor: hand;
}

.FCK__FieldNumeric
{
	behavior: url(common/fcknumericfield.htc) ;
}
--- NEW FILE: fcknumericfield.htc ---
<public:component lightweight="true">

<script language="javascript">

function CheckIsDigit()
{
	var iCode = event.keyCode ;

	event.returnValue =
		(
			( iCode >= 48 && iCode <= 57 )		// Numbers
			|| (iCode >= 37 && iCode <= 40)		// Arrows
			|| iCode == 8						// Backspace
			|| iCode == 46						// Delete
		) ;

	return event.returnValue ;
}

this.onkeypress = CheckIsDigit ;

</script>

</public:component>



More information about the freeside-commits mailing list