mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-18 05:53:24 +01:00
8a0f08b54f
* added function to add fckeditor instead of tinymce
25 lines
439 B
Plaintext
25 lines
439 B
Plaintext
<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>
|