aboutsummaryrefslogtreecommitdiffstats
path: root/js/main.js
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2012-04-02 08:52:24 +0200
committerzottel <github@zottel.net>2012-04-02 08:52:24 +0200
commit7127626f55f0ae5843d38145bf80022b98e4a8d8 (patch)
tree59813e196f7288be421cf187c2231adedca7d4b6 /js/main.js
parentf39e8126773e2a030cf84c8b9d428cc78546c1b9 (diff)
parent1f74bd1b78f7db4940f0fded0d6f7716579218f0 (diff)
downloadvolse-hubzilla-7127626f55f0ae5843d38145bf80022b98e4a8d8.tar.gz
volse-hubzilla-7127626f55f0ae5843d38145bf80022b98e4a8d8.tar.bz2
volse-hubzilla-7127626f55f0ae5843d38145bf80022b98e4a8d8.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'js/main.js')
-rwxr-xr-xjs/main.js17
1 files changed, 13 insertions, 4 deletions
diff --git a/js/main.js b/js/main.js
index defd1f951..744691b6d 100755
--- a/js/main.js
+++ b/js/main.js
@@ -16,6 +16,7 @@
document.getElementById(theID).style.display = "none"
}
+
var src = null;
var prev = null;
var livetime = null;
@@ -88,10 +89,12 @@
return false;
});
$('html').click(function() {
- last_popup_menu.hide();
- last_popup_button.removeClass("selected");
- last_popup_menu = null;
- last_popup_button = null;
+ if(last_popup_menu) {
+ last_popup_menu.hide();
+ last_popup_button.removeClass("selected");
+ last_popup_menu = null;
+ last_popup_button = null;
+ }
});
// fancyboxes
@@ -166,6 +169,12 @@
NavUpdate();
// Allow folks to stop the ajax page updates with the pause/break key
$(document).keydown(function(event) {
+ if(event.keyCode == '8') {
+ var target = event.target || event.srcElement;
+ if (!/input|textarea/i.test(target.nodeName)) {
+ return false;
+ }
+ }
if(event.keyCode == '19' || (event.ctrlKey && event.which == '32')) {
event.preventDefault();
if(stopped == false) {