Skip to content

Commit

Permalink
Small JavaScript improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed Sep 24, 2011
1 parent 7e3fa88 commit ba18c46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/scripts/behaviour.js
Expand Up @@ -63,9 +63,7 @@ var dw_behaviour = {
quickSelect: function(){
jQuery('select.quickselect')
.change(function(e){ e.target.form.submit(); })
.parents('form').find('input[type=submit]').each(function(){
if (!jQuery(this).hasClass('show')) jQuery(this).hide();
});
.closest('form').find('input[type=submit]').not('.show').hide();
},

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/scripts/cookie.js
Expand Up @@ -60,5 +60,5 @@ var DokuCookie = {
this.data[decodeURIComponent(parts[i])] = decodeURIComponent(parts[i+1]);
}
}
}
}
};

0 comments on commit ba18c46

Please sign in to comment.