diff --git a/design/images/loading.gif b/design/images/loading.gif new file mode 100644 index 0000000..ef371f1 Binary files /dev/null and b/design/images/loading.gif differ diff --git a/design/js/cvm.js b/design/js/cvm.js new file mode 100644 index 0000000..be19542 --- /dev/null +++ b/design/js/cvm.js @@ -0,0 +1,17 @@ +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; + } + }); +}); diff --git a/graphics/loading.xcf b/graphics/loading.xcf new file mode 100644 index 0000000..c605a78 Binary files /dev/null and b/graphics/loading.xcf differ