diff options
author | ivan <ivan> | 2008-06-17 03:58:49 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-06-17 03:58:49 +0000 |
commit | 55ddf66ba8607bf948a68b1e8dea99ba4f57732f (patch) | |
tree | 8cec7da4dd49831c94f40b6468768c0c54f30eaa /httemplate/elements/fckeditor/editor/dialog/common/fcknumericfield.htc | |
parent | fd8a7c99f3b78c233ec44d1b3f15e558e48e092a (diff) |
adding fckeditor on _17_BRANCH, for customer notices
Diffstat (limited to 'httemplate/elements/fckeditor/editor/dialog/common/fcknumericfield.htc')
-rw-r--r-- | httemplate/elements/fckeditor/editor/dialog/common/fcknumericfield.htc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/httemplate/elements/fckeditor/editor/dialog/common/fcknumericfield.htc b/httemplate/elements/fckeditor/editor/dialog/common/fcknumericfield.htc new file mode 100644 index 000000000..74f26d0d2 --- /dev/null +++ b/httemplate/elements/fckeditor/editor/dialog/common/fcknumericfield.htc @@ -0,0 +1,24 @@ +<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>
|