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
*/
$("#SideReportsHolder form ul a").concrete({
onclick: function() {
var $link = $(this);
$link.addClass('loading');
jQuery('#Form_EditForm').concrete('ss').loadForm(
$(this).attr('href'),
function(e) {
$link.removeClass('loading');
}
);
onclick: function(e) {
if (e.button!=2) {
var $link = $(this);
$link.addClass('loading');
jQuery('#Form_EditForm').concrete('ss').loadForm(
$(this).attr('href'),
function(e) {
$link.removeClass('loading');
}
);
}
return false;
}
});