Enhance register classic collection multiselect

This commit is contained in:
Nicolas Le Goff
2013-06-10 13:42:40 +02:00
parent 690a1543db
commit e89c502259
6 changed files with 79 additions and 11 deletions

View File

@@ -29,3 +29,17 @@ require.config({
require(["apps/login/home/app"], function(App) {
App.initialize();
});
// close alerts
$(document).ready(function() {
$(document).on("click", ".alert .alert-block-close a", function(e){
e.preventDefault();
$(this).closest('.alert').alert('close');
return false;
});
$("select[multiple='multiple']").multiselect({
buttonWidth : "100%",
buttonClass: 'btn btn-inverse'
});
});