Add Applications Form Validator

This commit is contained in:
Nicolas Le Goff
2013-06-11 12:28:23 +02:00
parent e89c502259
commit 7dad897ab7
8 changed files with 437 additions and 0 deletions

View 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'
};
});