mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Add Applications Form Validator
This commit is contained in:
35
www/scripts/apps/login/home/common.js
Normal file
35
www/scripts/apps/login/home/common.js
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* 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'
|
||||
};
|
||||
});
|
Reference in New Issue
Block a user