mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
36 lines
859 B
JavaScript
36 lines
859 B
JavaScript
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2013 Alchemy
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
define([
|
|
"jquery",
|
|
"underscore",
|
|
"backbone",
|
|
"bootstrap",
|
|
"multiselect"
|
|
], function($, _, Backbone, bootstrap, multiselect) {
|
|
var initialize = function() {
|
|
// close alerts
|
|
$(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'
|
|
});
|
|
};
|
|
|
|
return {
|
|
initialize: initialize,
|
|
languagePath: '/login/language.json'
|
|
};
|
|
});
|