Merge pull request #874 from ccd0/master
Remove some duplicated event listeners.
This commit is contained in:
commit
9bebf8e9c7
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* appchan x - Version 2.10.4 - 2015-01-26
|
* appchan x - Version 2.10.4 - 2015-01-27
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
||||||
|
|||||||
@ -28,7 +28,7 @@
|
|||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* appchan x - Version 2.10.4 - 2015-01-26
|
* appchan x - Version 2.10.4 - 2015-01-27
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
||||||
@ -9813,9 +9813,6 @@
|
|||||||
if ((e.ctrlKey || e.metaKey) && e.type === 'click') {
|
if ((e.ctrlKey || e.metaKey) && e.type === 'click') {
|
||||||
$.addClass(QR.nodes.filename, 'edit');
|
$.addClass(QR.nodes.filename, 'edit');
|
||||||
QR.nodes.filename.focus();
|
QR.nodes.filename.focus();
|
||||||
return $.on(QR.nodes.filename, 'blur', function() {
|
|
||||||
return $.rmClass(QR.nodes.filename, 'edit');
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
if (e.target.nodeName === 'INPUT' || (e.keyCode && ((_ref = e.keyCode) !== 32 && _ref !== 13)) || e.ctrlKey) {
|
if (e.target.nodeName === 'INPUT' || (e.keyCode && ((_ref = e.keyCode) !== 32 && _ref !== 13)) || e.ctrlKey) {
|
||||||
return;
|
return;
|
||||||
@ -9971,9 +9968,6 @@
|
|||||||
$.on(nodes[name], event, save);
|
$.on(nodes[name], event, save);
|
||||||
}
|
}
|
||||||
$.on(nodes['name'], 'blur', QR.tripcodeHider);
|
$.on(nodes['name'], 'blur', QR.tripcodeHider);
|
||||||
$.on(nodes.thread, 'change', function() {
|
|
||||||
return QR.selected.save(this);
|
|
||||||
});
|
|
||||||
if (Conf['Remember QR Size']) {
|
if (Conf['Remember QR Size']) {
|
||||||
$.get('QR Size', '', function(item) {
|
$.get('QR Size', '', function(item) {
|
||||||
return nodes.com.style.cssText = item['QR Size'];
|
return nodes.com.style.cssText = item['QR Size'];
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
/*
|
/*
|
||||||
* appchan x - Version 2.10.4 - 2015-01-26
|
* appchan x - Version 2.10.4 - 2015-01-27
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
|
||||||
@ -9863,9 +9863,6 @@
|
|||||||
if ((e.ctrlKey || e.metaKey) && e.type === 'click') {
|
if ((e.ctrlKey || e.metaKey) && e.type === 'click') {
|
||||||
$.addClass(QR.nodes.filename, 'edit');
|
$.addClass(QR.nodes.filename, 'edit');
|
||||||
QR.nodes.filename.focus();
|
QR.nodes.filename.focus();
|
||||||
return $.on(QR.nodes.filename, 'blur', function() {
|
|
||||||
return $.rmClass(QR.nodes.filename, 'edit');
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
if (e.target.nodeName === 'INPUT' || (e.keyCode && ((_ref = e.keyCode) !== 32 && _ref !== 13)) || e.ctrlKey) {
|
if (e.target.nodeName === 'INPUT' || (e.keyCode && ((_ref = e.keyCode) !== 32 && _ref !== 13)) || e.ctrlKey) {
|
||||||
return;
|
return;
|
||||||
@ -10021,9 +10018,6 @@
|
|||||||
$.on(nodes[name], event, save);
|
$.on(nodes[name], event, save);
|
||||||
}
|
}
|
||||||
$.on(nodes['name'], 'blur', QR.tripcodeHider);
|
$.on(nodes['name'], 'blur', QR.tripcodeHider);
|
||||||
$.on(nodes.thread, 'change', function() {
|
|
||||||
return QR.selected.save(this);
|
|
||||||
});
|
|
||||||
QR.generatePostableThreadsList();
|
QR.generatePostableThreadsList();
|
||||||
QR.persona.init();
|
QR.persona.init();
|
||||||
new QR.post(true);
|
new QR.post(true);
|
||||||
|
|||||||
@ -357,7 +357,6 @@ QR =
|
|||||||
if (e.ctrlKey or e.metaKey) and e.type is 'click'
|
if (e.ctrlKey or e.metaKey) and e.type is 'click'
|
||||||
$.addClass QR.nodes.filename, 'edit'
|
$.addClass QR.nodes.filename, 'edit'
|
||||||
QR.nodes.filename.focus()
|
QR.nodes.filename.focus()
|
||||||
return $.on QR.nodes.filename, 'blur', -> $.rmClass QR.nodes.filename, 'edit'
|
|
||||||
return if e.target.nodeName is 'INPUT' or (e.keyCode and e.keyCode not in [32, 13]) or e.ctrlKey
|
return if e.target.nodeName is 'INPUT' or (e.keyCode and e.keyCode not in [32, 13]) or e.ctrlKey
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
QR.nodes.fileInput.click()
|
QR.nodes.fileInput.click()
|
||||||
@ -502,7 +501,6 @@ QR =
|
|||||||
event = if node.nodeName is 'SELECT' then 'change' else 'input'
|
event = if node.nodeName is 'SELECT' then 'change' else 'input'
|
||||||
$.on nodes[name], event, save
|
$.on nodes[name], event, save
|
||||||
$.on nodes['name'], 'blur', QR.tripcodeHider
|
$.on nodes['name'], 'blur', QR.tripcodeHider
|
||||||
$.on nodes.thread, 'change', -> QR.selected.save @
|
|
||||||
|
|
||||||
<% if (type === 'userscript') { %>
|
<% if (type === 'userscript') { %>
|
||||||
if Conf['Remember QR Size']
|
if Conf['Remember QR Size']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user