assets/javascripts/alchemy.js in alchemy_cms-2.0.rc2 vs assets/javascripts/alchemy.js in alchemy_cms-2.0.rc3

- old
+ new

@@ -205,11 +205,11 @@ Alchemy.ElementsWindowButton.disable(); $.ajax({ url: path, success: function(data, textStatus, XMLHttpRequest) { $dialog.html(data); - Alchemy.ButtonObserver('#alchemyElementWindow button.button'); + Alchemy.ButtonObserver('#alchemyElementWindow .button'); }, error: function(XMLHttpRequest, textStatus, errorThrown) { Alchemy.AjaxErrorHandler($dialog, XMLHttpRequest.status, textStatus, errorThrown); } }); @@ -819,10 +819,10 @@ disableButton: function (button) { var $button = $(button), $clone = $button.clone(), width = $button.outerWidth(), text = $button.text(); $button.hide(); $button.parent().append($clone); - $clone.attr({disabled: true}) + $clone.attr({disabled: true, href: 'javascript:void(0)'}) .addClass('disabled cloned-button') .css({width: width}) .html('<img src="/images/alchemy/ajax_loader.gif">') .show(); return true;