ev.returnValue = false;
return false;
}
- window.location = e.href;
+ if (!_hotkeys.alt) // ommit chrome Chrome accesskeys
+ window.location = e.href;
}
},
'ul.ajaxtabs': function(ul) {
// ? var modifiedurl=ulistlink.getAttribute("href").replace(/^http:\/\/[^\/]+\//i, "http://"+window.location.hostname+"/")
var url = tab.form.action
tab.onclick=function(){
- _expand(this);
+ if (!_hotkeys.alt)
+ _expand(this);
return false;
}
}
for (var i=0; i<cnt; i++) {
n = (n+1)%cnt;
// check also if the link is visible
- if (l[n].accessKey==key && l[n].scrollWidth) {
+ if (l[n].accessKey==key && (l[n].offsetWidth || l[n].offsetHeight)) {
_hotkeys.focus = n;
// The timeout is needed to prevent unpredictable behaviour on IE.
var tmp = function() {l[_hotkeys.focus].focus();};
var url = form ? form.action :
window.location.toString();
+ if (!form) form = document.forms[0]; // when trigger element is on already superseded page fragment, form is null
+
var content = this.formInputs(trigger, form, upload);
if (!form) url = url.substring(0, url.indexOf('?'));