BUGFIX: add check for left mouse button

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@95714 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Mateusz Uzdowski 2009-12-17 00:33:23 +00:00
parent 945de82ef9
commit 25698de5c2

View File

@ -244,15 +244,18 @@
* Register the onclick handler that loads the page into EditForm * Register the onclick handler that loads the page into EditForm
*/ */
$("#SideReportsHolder form ul a").concrete({ $("#SideReportsHolder form ul a").concrete({
onclick: function() { onclick: function(e) {
var $link = $(this); if (e.button!=2) {
$link.addClass('loading'); var $link = $(this);
jQuery('#Form_EditForm').concrete('ss').loadForm( $link.addClass('loading');
$(this).attr('href'), jQuery('#Form_EditForm').concrete('ss').loadForm(
function(e) { $(this).attr('href'),
$link.removeClass('loading'); function(e) {
} $link.removeClass('loading');
); }
);
}
return false; return false;
} }
}); });