Permalink
Browse files

MINOR Declaring JS requirements for AjaxUniqueTextField

  • Loading branch information...
1 parent b58b281 commit 783de154b2e7e9c693862948803efc4bb6467deb @chillu chillu committed Mar 1, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 forms/AjaxUniqueTextField.php
@@ -29,6 +29,8 @@ function __construct($name, $title, $restrictedField, $restrictedTable, $value =
}
function Field() {
+ Requirements::javascript(THIRDPARTY_DIR . "/prototype/prototype.js");
+ Requirements::javascript(THIRDPARTY_DIR . "/behaviour/behaviour.js");
Requirements::add_i18n_javascript(SAPPHIRE_DIR . '/javascript/lang');
Requirements::javascript(SAPPHIRE_DIR . "/javascript/UniqueFields.js");
@@ -87,7 +89,7 @@ function jsValidation() {
else {
Element.addClassName(self, 'inuse');
}
- }
+ },
error: function(response) {
}

0 comments on commit 783de15

Please sign in to comment.