2012-12-14 08:38:56 +00:00
|
|
|
|
|
|
|
$(document).ready( function() {
|
2012-12-17 18:30:59 +00:00
|
|
|
$('body').on('hidden', '.modal', function () {
|
|
|
|
$(this).removeData('modal');
|
2012-12-14 08:38:56 +00:00
|
|
|
});
|
|
|
|
|
2012-12-17 18:30:59 +00:00
|
|
|
$('body').on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); });
|
|
|
|
|
|
|
|
$('#expirationdate, #fromdate, #todate')
|
|
|
|
.datepicker()
|
|
|
|
.on('changeDate', function(ev){
|
|
|
|
$('#expirationdate, #fromdate, #todate').datepicker('hide');
|
|
|
|
});
|
|
|
|
|
2012-12-14 08:38:56 +00:00
|
|
|
$(".chzn-select").chosen();
|
|
|
|
$(".chzn-select-deselect").chosen({allow_single_deselect:true});
|
|
|
|
|
|
|
|
$(".pwd").passStrength({
|
|
|
|
url: "../op/op.Ajax.php",
|
|
|
|
onChange: function(data, target) {
|
|
|
|
pwsp = 100*data.score;
|
|
|
|
$('#'+target+' div.bar').width(pwsp+'%');
|
|
|
|
if(data.ok) {
|
|
|
|
$('#'+target+' div.bar').removeClass('bar-danger');
|
|
|
|
$('#'+target+' div.bar').addClass('bar-success');
|
|
|
|
} else {
|
|
|
|
$('#'+target+' div.bar').removeClass('bar-success');
|
|
|
|
$('#'+target+' div.bar').addClass('bar-danger');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|