NIHVIVO-2280: Removed javascript code for userAccounts-list.ftl to accountUtils.js

This commit is contained in:
manolobevia 2011-06-13 13:26:27 +00:00
parent 1077f283d6
commit 2118a510d7
2 changed files with 44 additions and 12 deletions

View file

@ -2,9 +2,15 @@
$(document).ready(function(){
// Change form actions in account main page
function changeAction(form, url) {
form.action = url;
return true;
}
//Accounts per page
//Hide is javascrip is disable
$('.accounts-per-page-form input[type="submit"]').hide();
//Hide is javascrip is enable
$('input[name="accounts-per-page"]').addClass('hide');
$('.accounts-per-page').change(function() {
$('#account-display').submit();