|
|
@ -107,7 +107,19 @@ $('#roleForm').validator({
|
|
|
|
valid: function(form) {
|
|
|
|
valid: function(form) {
|
|
|
|
form.submit();
|
|
|
|
form.submit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var config = {
|
|
|
|
|
|
|
|
'.chosen-select' : {},
|
|
|
|
|
|
|
|
'.chosen-select-deselect' : {allow_single_deselect:true},
|
|
|
|
|
|
|
|
'.chosen-select-no-single' : {disable_search_threshold:10},
|
|
|
|
|
|
|
|
'.chosen-select-no-results': {no_results_text:'Oops, nothing found!'},
|
|
|
|
|
|
|
|
'.chosen-select-width' : {width:"95%"}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (var selector in config) {
|
|
|
|
|
|
|
|
$(selector).chosen(config[selector]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<script src="/static/js/cropper/cropper.min.js"></script>
|
|
|
|
<script src="/static/js/cropper/cropper.min.js"></script>
|
|
|
|