Skip to content

Commit

Permalink
MINOR Removing old remains of NumericField.js validation which was
Browse files Browse the repository at this point in the history
removed in 9f3344b
  • Loading branch information
Sean Harvey committed Apr 11, 2012
1 parent 213a08a commit 3e307e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 68 deletions.
9 changes: 1 addition & 8 deletions forms/NumericField.php
Expand Up @@ -6,18 +6,11 @@
* @subpackage fields-formattedinput
*/
class NumericField extends TextField{

function Field() {
$html = parent::Field();
Requirements::javascript(SAPPHIRE_DIR . 'javascript/NumericField.js');

return $html;
}

function Type() {
return 'numeric text';
}

/** PHP Validation **/
function validate($validator){
if($this->value && !is_numeric(trim($this->value))){
Expand Down
60 changes: 0 additions & 60 deletions javascript/NumericField.js

This file was deleted.

0 comments on commit 3e307e0

Please sign in to comment.