Simpler selector; shave some lines; make the quick report button less derp.
This commit is contained in:
parent
c13f59556d
commit
798fe78d91
@ -1108,7 +1108,7 @@
|
||||
});
|
||||
$.append(hidingul, li);
|
||||
$.bind($('button', li), 'click', options.clearHidden);
|
||||
$.bind($('textarea[name=flavors]', dialog), 'change', $.cb.value);
|
||||
$.bind($('#flavors', dialog), 'change', $.cb.value);
|
||||
$.bind($('input[name=time]', dialog), 'keyup', options.time);
|
||||
_ref2 = $$('#keybinds input', dialog);
|
||||
for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
|
||||
@ -2380,20 +2380,15 @@
|
||||
$.after(span, a);
|
||||
$.after(span, $.tn(' '));
|
||||
}
|
||||
return $.bind(a, 'click', reportButton.cb.report);
|
||||
return $.bind(a, 'click', reportButton.report);
|
||||
});
|
||||
},
|
||||
cb: {
|
||||
report: function(e) {
|
||||
return reportButton.report(this);
|
||||
}
|
||||
},
|
||||
report: function(target) {
|
||||
var input;
|
||||
input = $('input', target.parentNode);
|
||||
input.click();
|
||||
$('input[value="Report"]').click();
|
||||
return input.click();
|
||||
report: function() {
|
||||
var id, set, url;
|
||||
url = "http://sys.4chan.org/" + g.BOARD + "/imgboard.php?mode=report&no=" + this.parentNode.id;
|
||||
id = "" + NAMESPACE + "popup";
|
||||
set = "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,resizable=1,width=685,height=200";
|
||||
return window.open(url, id, set);
|
||||
}
|
||||
};
|
||||
threadStats = {
|
||||
|
||||
@ -893,7 +893,7 @@ options =
|
||||
$.append hidingul, li
|
||||
$.bind $('button', li), 'click', options.clearHidden
|
||||
|
||||
$.bind $('textarea[name=flavors]', dialog), 'change', $.cb.value
|
||||
$.bind $('#flavors', dialog), 'change', $.cb.value
|
||||
$.bind $('input[name=time]', dialog), 'keyup', options.time
|
||||
for input in $$ '#keybinds input', dialog
|
||||
input.value = conf[input.name]
|
||||
@ -1855,15 +1855,12 @@ reportButton =
|
||||
innerHTML: '[ ! ]'
|
||||
$.after span, a
|
||||
$.after span, $.tn(' ')
|
||||
$.bind a, 'click', reportButton.cb.report
|
||||
cb:
|
||||
report: (e) ->
|
||||
reportButton.report @
|
||||
report: (target) ->
|
||||
input = $ 'input', target.parentNode
|
||||
input.click()
|
||||
$('input[value="Report"]').click()
|
||||
input.click()
|
||||
$.bind a, 'click', reportButton.report
|
||||
report: ->
|
||||
url = "http://sys.4chan.org/#{g.BOARD}/imgboard.php?mode=report&no=#{@parentNode.id}"
|
||||
id = "#{NAMESPACE}popup"
|
||||
set = "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,resizable=1,width=685,height=200"
|
||||
window.open url, id, set
|
||||
|
||||
threadStats =
|
||||
init: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user