|
|
|
@ -1,10 +1,36 @@
|
|
|
|
|
var command_running = false;
|
|
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
|
$('.clickable').click(function(){
|
|
|
|
|
window.location.href = $(this).data('url');
|
|
|
|
|
$('.clickable').click(function(event)
|
|
|
|
|
{
|
|
|
|
|
if($(this).data('url'))
|
|
|
|
|
{
|
|
|
|
|
url = $(this).data('url');
|
|
|
|
|
|
|
|
|
|
if(event.which == 1)
|
|
|
|
|
{
|
|
|
|
|
if($(this).hasClass('external'))
|
|
|
|
|
{
|
|
|
|
|
window.open(url);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
window.location = url;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
event.stopPropagation();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
else if(event.which == 2)
|
|
|
|
|
{
|
|
|
|
|
window.open(url);
|
|
|
|
|
event.stopPropagation();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('.button-loader').click(function(){
|
|
|
|
|
if(command_running === false)
|
|
|
|
|
{
|
|
|
|
|