move js from module to to module-specific js file
This commit is contained in:
parent
e99b9376a0
commit
ba1cb0bb05
13
view/js/mod_poke.js
Normal file
13
view/js/mod_poke.js
Normal file
@ -0,0 +1,13 @@
|
||||
$(document).ready(function() {
|
||||
var a;
|
||||
a = $("#poke-recip").autocomplete({
|
||||
serviceUrl: baseurl + '/acl',
|
||||
minChars: 2,
|
||||
width: 350,
|
||||
onSelect: function(value,data) {
|
||||
$("#poke-recip-complete").val(data);
|
||||
}
|
||||
});
|
||||
a.setOptions({ params: { type: 'a' }});
|
||||
|
||||
});
|
Reference in New Issue
Block a user