mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Declaring JS requirements for AjaxUniqueTextField
This commit is contained in:
parent
b58b281d8a
commit
783de154b2
@ -29,6 +29,8 @@ class AjaxUniqueTextField extends TextField {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Field() {
|
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::add_i18n_javascript(SAPPHIRE_DIR . '/javascript/lang');
|
||||||
Requirements::javascript(SAPPHIRE_DIR . "/javascript/UniqueFields.js");
|
Requirements::javascript(SAPPHIRE_DIR . "/javascript/UniqueFields.js");
|
||||||
|
|
||||||
@ -87,7 +89,7 @@ Behaviour.register({
|
|||||||
else {
|
else {
|
||||||
Element.addClassName(self, 'inuse');
|
Element.addClassName(self, 'inuse');
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
error: function(response) {
|
error: function(response) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user