QR shortcut and link changes
Don't close QR if Persistent, and Don't close QR on Reply to Thread click
This commit is contained in:
parent
b1e06601aa
commit
2550ab73c1
@ -4629,14 +4629,15 @@
|
||||
href: 'javascript:;'
|
||||
});
|
||||
$.on(sc, 'click', function() {
|
||||
if (!QR.nodes || QR.nodes.el.hidden) {
|
||||
if (Conf['Persistent QR'] || !QR.nodes || QR.nodes.el.hidden) {
|
||||
$.event('CloseMenu');
|
||||
QR.open();
|
||||
QR.nodes.com.focus();
|
||||
return $.rmClass(this, 'disabled');
|
||||
} else {
|
||||
QR.close();
|
||||
return $.addClass(this, 'disabled');
|
||||
}
|
||||
return $.toggleClass(this, 'disabled');
|
||||
});
|
||||
Header.addShortcut(sc);
|
||||
}
|
||||
@ -4669,15 +4670,11 @@
|
||||
className: "qr-link"
|
||||
});
|
||||
$.on(link, 'click', function() {
|
||||
if (!QR.nodes || QR.nodes.el.hidden) {
|
||||
$.event('CloseMenu');
|
||||
QR.open();
|
||||
QR.nodes.com.focus();
|
||||
if (Conf['QR Shortcut']) {
|
||||
return $.rmClass($('.qr-shortcut'), 'disabled');
|
||||
}
|
||||
} else {
|
||||
return QR.close();
|
||||
$.event('CloseMenu');
|
||||
QR.open();
|
||||
QR.nodes.com.focus();
|
||||
if (Conf['QR Shortcut']) {
|
||||
return $.rmClass($('.qr-shortcut'), 'disabled');
|
||||
}
|
||||
});
|
||||
$.before($.id('postForm'), link);
|
||||
|
||||
@ -4613,14 +4613,15 @@
|
||||
href: 'javascript:;'
|
||||
});
|
||||
$.on(sc, 'click', function() {
|
||||
if (!QR.nodes || QR.nodes.el.hidden) {
|
||||
if (Conf['Persistent QR'] || !QR.nodes || QR.nodes.el.hidden) {
|
||||
$.event('CloseMenu');
|
||||
QR.open();
|
||||
QR.nodes.com.focus();
|
||||
return $.rmClass(this, 'disabled');
|
||||
} else {
|
||||
QR.close();
|
||||
return $.addClass(this, 'disabled');
|
||||
}
|
||||
return $.toggleClass(this, 'disabled');
|
||||
});
|
||||
Header.addShortcut(sc);
|
||||
}
|
||||
@ -4653,15 +4654,11 @@
|
||||
className: "qr-link"
|
||||
});
|
||||
$.on(link, 'click', function() {
|
||||
if (!QR.nodes || QR.nodes.el.hidden) {
|
||||
$.event('CloseMenu');
|
||||
QR.open();
|
||||
QR.nodes.com.focus();
|
||||
if (Conf['QR Shortcut']) {
|
||||
return $.rmClass($('.qr-shortcut'), 'disabled');
|
||||
}
|
||||
} else {
|
||||
return QR.close();
|
||||
$.event('CloseMenu');
|
||||
QR.open();
|
||||
QR.nodes.com.focus();
|
||||
if (Conf['QR Shortcut']) {
|
||||
return $.rmClass($('.qr-shortcut'), 'disabled');
|
||||
}
|
||||
});
|
||||
$.before($.id('postForm'), link);
|
||||
|
||||
@ -4615,14 +4615,15 @@
|
||||
href: 'javascript:;'
|
||||
});
|
||||
$.on(sc, 'click', function() {
|
||||
if (!QR.nodes || QR.nodes.el.hidden) {
|
||||
if (Conf['Persistent QR'] || !QR.nodes || QR.nodes.el.hidden) {
|
||||
$.event('CloseMenu');
|
||||
QR.open();
|
||||
QR.nodes.com.focus();
|
||||
return $.rmClass(this, 'disabled');
|
||||
} else {
|
||||
QR.close();
|
||||
return $.addClass(this, 'disabled');
|
||||
}
|
||||
return $.toggleClass(this, 'disabled');
|
||||
});
|
||||
Header.addShortcut(sc);
|
||||
}
|
||||
@ -4655,15 +4656,11 @@
|
||||
className: "qr-link"
|
||||
});
|
||||
$.on(link, 'click', function() {
|
||||
if (!QR.nodes || QR.nodes.el.hidden) {
|
||||
$.event('CloseMenu');
|
||||
QR.open();
|
||||
QR.nodes.com.focus();
|
||||
if (Conf['QR Shortcut']) {
|
||||
return $.rmClass($('.qr-shortcut'), 'disabled');
|
||||
}
|
||||
} else {
|
||||
return QR.close();
|
||||
$.event('CloseMenu');
|
||||
QR.open();
|
||||
QR.nodes.com.focus();
|
||||
if (Conf['QR Shortcut']) {
|
||||
return $.rmClass($('.qr-shortcut'), 'disabled');
|
||||
}
|
||||
});
|
||||
$.before($.id('postForm'), link);
|
||||
|
||||
@ -11,13 +11,14 @@ QR =
|
||||
title: 'Quick Reply'
|
||||
href: 'javascript:;'
|
||||
$.on sc, 'click', ->
|
||||
if !QR.nodes or QR.nodes.el.hidden
|
||||
if Conf['Persistent QR'] or !QR.nodes or QR.nodes.el.hidden
|
||||
$.event 'CloseMenu'
|
||||
QR.open()
|
||||
QR.nodes.com.focus()
|
||||
$.rmClass @, 'disabled'
|
||||
else
|
||||
QR.close()
|
||||
$.toggleClass @, 'disabled'
|
||||
$.addClass @, 'disabled'
|
||||
|
||||
Header.addShortcut sc
|
||||
|
||||
@ -40,14 +41,11 @@ QR =
|
||||
title: title
|
||||
className: "qr-link"
|
||||
$.on link, 'click', ->
|
||||
if !QR.nodes or QR.nodes.el.hidden
|
||||
$.event 'CloseMenu'
|
||||
QR.open()
|
||||
QR.nodes.com.focus()
|
||||
if Conf['QR Shortcut']
|
||||
$.rmClass $('.qr-shortcut'), 'disabled'
|
||||
else
|
||||
QR.close()
|
||||
$.event 'CloseMenu'
|
||||
QR.open()
|
||||
QR.nodes.com.focus()
|
||||
if Conf['QR Shortcut']
|
||||
$.rmClass $('.qr-shortcut'), 'disabled'
|
||||
|
||||
$.before $.id('postForm'), link
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user