Remove redundant ids.

This commit is contained in:
Nicolas Stepien 2011-11-26 22:06:42 +01:00
parent f09bfa48e2
commit dca9725081
2 changed files with 12 additions and 12 deletions

View File

@ -1249,11 +1249,11 @@
<hr>\ <hr>\
<div id=content>\ <div id=content>\
<input type=radio name=tab hidden id=main_tab checked>\ <input type=radio name=tab hidden id=main_tab checked>\
<div id=main></div>\ <div></div>\
<input type=radio name=tab hidden id=flavors_tab>\ <input type=radio name=tab hidden id=flavors_tab>\
<textarea name=flavors id=flavors></textarea>\ <textarea name=flavors id=flavors></textarea>\
<input type=radio name=tab hidden id=filter_tab>\ <input type=radio name=tab hidden id=filter_tab>\
<div id=filter>\ <div>\
Use <a href=https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions>regular expressions</a>, one per line.<br>\ Use <a href=https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions>regular expressions</a>, one per line.<br>\
For example, <code>/weeaboo/i</code> will filter posts containing `weeaboo` case-insensitive.\ For example, <code>/weeaboo/i</code> will filter posts containing `weeaboo` case-insensitive.\
<p>Name:<br><textarea name=name></textarea></p>\ <p>Name:<br><textarea name=name></textarea></p>\
@ -1266,7 +1266,7 @@
<p>Image MD5:<br><textarea name=md5></textarea></p>\ <p>Image MD5:<br><textarea name=md5></textarea></p>\
</div>\ </div>\
<input type=radio name=tab hidden id=rice_tab>\ <input type=radio name=tab hidden id=rice_tab>\
<div id=rice>\ <div>\
<ul>\ <ul>\
Backlink formatting\ Backlink formatting\
<li><input type=text name=backlink> : <span id=backlinkPreview></span></li>\ <li><input type=text name=backlink> : <span id=backlinkPreview></span></li>\
@ -1283,7 +1283,7 @@
</ul>\ </ul>\
</div>\ </div>\
<input type=radio name=tab hidden id=keybinds_tab>\ <input type=radio name=tab hidden id=keybinds_tab>\
<div id=keybinds>\ <div>\
<table><tbody>\ <table><tbody>\
<tr><th>Actions</th><th>Keybinds</th></tr>\ <tr><th>Actions</th><th>Keybinds</th></tr>\
<tr><td>Close Options or QR</td><td><input name=close></td></tr>\ <tr><td>Close Options or QR</td><td><input name=close></td></tr>\
@ -1326,7 +1326,7 @@
$.on($('input', li), 'click', $.cb.checked); $.on($('input', li), 'click', $.cb.checked);
$.add(ul, li); $.add(ul, li);
} }
$.add($('#main', dialog), ul); $.add($('#main_tab + div', dialog), ul);
} }
hiddenThreads = $.get("hiddenThreads/" + g.BOARD + "/", {}); hiddenThreads = $.get("hiddenThreads/" + g.BOARD + "/", {});
hiddenNum = Object.keys(g.hiddenReplies).length + Object.keys(hiddenThreads).length; hiddenNum = Object.keys(g.hiddenReplies).length + Object.keys(hiddenThreads).length;
@ -1345,7 +1345,7 @@
(time = $('[name=time]', dialog)).value = conf['time']; (time = $('[name=time]', dialog)).value = conf['time'];
$.on(back, 'keyup', options.backlink); $.on(back, 'keyup', options.backlink);
$.on(time, 'keyup', options.time); $.on(time, 'keyup', options.time);
_ref3 = $$('#keybinds input', dialog); _ref3 = $$('#keybinds_tab + div input', dialog);
for (_j = 0, _len2 = _ref3.length; _j < _len2; _j++) { for (_j = 0, _len2 = _ref3.length; _j < _len2; _j++) {
input = _ref3[_j]; input = _ref3[_j];
input.type = 'text'; input.type = 'text';

View File

@ -901,11 +901,11 @@ options =
<hr> <hr>
<div id=content> <div id=content>
<input type=radio name=tab hidden id=main_tab checked> <input type=radio name=tab hidden id=main_tab checked>
<div id=main></div> <div></div>
<input type=radio name=tab hidden id=flavors_tab> <input type=radio name=tab hidden id=flavors_tab>
<textarea name=flavors id=flavors></textarea> <textarea name=flavors id=flavors></textarea>
<input type=radio name=tab hidden id=filter_tab> <input type=radio name=tab hidden id=filter_tab>
<div id=filter> <div>
Use <a href=https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions>regular expressions</a>, one per line.<br> Use <a href=https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions>regular expressions</a>, one per line.<br>
For example, <code>/weeaboo/i</code> will filter posts containing `weeaboo` case-insensitive. For example, <code>/weeaboo/i</code> will filter posts containing `weeaboo` case-insensitive.
<p>Name:<br><textarea name=name></textarea></p> <p>Name:<br><textarea name=name></textarea></p>
@ -918,7 +918,7 @@ options =
<p>Image MD5:<br><textarea name=md5></textarea></p> <p>Image MD5:<br><textarea name=md5></textarea></p>
</div> </div>
<input type=radio name=tab hidden id=rice_tab> <input type=radio name=tab hidden id=rice_tab>
<div id=rice> <div>
<ul> <ul>
Backlink formatting Backlink formatting
<li><input type=text name=backlink> : <span id=backlinkPreview></span></li> <li><input type=text name=backlink> : <span id=backlinkPreview></span></li>
@ -935,7 +935,7 @@ options =
</ul> </ul>
</div> </div>
<input type=radio name=tab hidden id=keybinds_tab> <input type=radio name=tab hidden id=keybinds_tab>
<div id=keybinds> <div>
<table><tbody> <table><tbody>
<tr><th>Actions</th><th>Keybinds</th></tr> <tr><th>Actions</th><th>Keybinds</th></tr>
<tr><td>Close Options or QR</td><td><input name=close></td></tr> <tr><td>Close Options or QR</td><td><input name=close></td></tr>
@ -974,7 +974,7 @@ options =
innerHTML: "<label><input type=checkbox name='#{key}' #{checked}>#{key}</label><span class=description>: #{description}</span>" innerHTML: "<label><input type=checkbox name='#{key}' #{checked}>#{key}</label><span class=description>: #{description}</span>"
$.on $('input', li), 'click', $.cb.checked $.on $('input', li), 'click', $.cb.checked
$.add ul, li $.add ul, li
$.add $('#main', dialog), ul $.add $('#main_tab + div', dialog), ul
hiddenThreads = $.get "hiddenThreads/#{g.BOARD}/", {} hiddenThreads = $.get "hiddenThreads/#{g.BOARD}/", {}
hiddenNum = Object.keys(g.hiddenReplies).length + Object.keys(hiddenThreads).length hiddenNum = Object.keys(g.hiddenReplies).length + Object.keys(hiddenThreads).length
@ -995,7 +995,7 @@ options =
$.on time, 'keyup', options.time $.on time, 'keyup', options.time
#keybinds #keybinds
for input in $$ '#keybinds input', dialog for input in $$ '#keybinds_tab + div input', dialog
input.type = 'text' input.type = 'text'
input.value = conf[input.name] input.value = conf[input.name]
$.on input, 'keydown', options.keybind $.on input, 'keydown', options.keybind