You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cvm/design/js/cvm.js

18 lines
399 B
JavaScript

var command_running = false;
$(function(){
$('.button-loader').click(function(){
if(command_running === false)
{
$('.button-loader').addClass('disabled').click(function(event){
event.preventDefault();
event.stopPropagation();
return false;
});
$(this).children('.button-icon').addClass('running')[0].src = "images/loading.gif";
command_running = true;
}
});
});