lemonldap-ng/lemonldap-ng-portal/site/htdocs/static/common/js/confirm.js
2017-01-19 21:48:07 +00:00

34 lines
661 B
JavaScript

// Generated by CoffeeScript 1.10.0
(function() {
var go, i, timer;
i = 5;
go = function() {
return $("#form").submit();
};
timer = function() {
var h;
h = $('#timer').html();
if (i > 0) {
i--;
}
h = h.replace(/\d+/, i);
$('#timer').html(h);
return setTimeout(timer, 1000);
};
$(document).ready(function() {
setTimeout(go, 5000);
setTimeout(timer, 1000);
$(".idploop").on('click', function() {
return $("#idp").val($(this).attr("val"));
});
return $("#refuse").on('click', function() {
return $("#confirm").attr("value", $(this).attr("val"));
});
});
}).call(this);