Commit 46dcc30b authored by alexeyomelchenko's avatar alexeyomelchenko

Bug 1646229: Eliminate Mochikit from Admin Section: admin/group

behatnotneeded: same functionality

Change-Id: Iae51435c54fb9f8a0854b34946803ef9a3f27bca
Signed-off-by: 's avataralexeyomelchenko <alexeyomelchenko@catalyst.net.nz>
parent 47913f5e
......@@ -48,7 +48,7 @@ else {
list($html, $columns, $pagination, $search) = build_admin_archived_submissions_results($search, $offset, $limit);
$js = <<<EOF
addLoadEvent(function() {
jQuery(document).ready(function() {
var p = {$pagination['javascript']}
new UserSearch(p);
......
This diff is collapsed.
......@@ -74,15 +74,15 @@ $searchform = pieform(array(
));
$js = <<< EOF
addLoadEvent(function () {
p = {$data['pagination_js']}
connect('search_submit', 'onclick', function (event) {
replaceChildNodes('messages');
var params = {'query': $('search_query').value,
'institution': $('search_institution').value};
jQuery(document).ready(function() {
p = {$data['pagination_js']}
jQuery('#search_submit').on('click', function(event) {
jQuery('#messages').empty();
var params = {'query': jQuery('#search_query').val(),
'institution': jQuery('#search_institution').val()};
p.sendQuery(params);
event.stop();
});
event.preventDefault();
});
});
EOF;
......
......@@ -945,3 +945,9 @@ function getUrlParameter(param, url) {
}
return null;
}
function createNodesFromList(node, list) {
return jQuery.map(list, function(text) {
return jQuery(node).html(text);
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment