Replace × and \u00d7 by ×.
This commit is contained in:
parent
4cc2e73306
commit
c8176435fb
@ -850,13 +850,13 @@
|
|||||||
a = $('.summary', thread);
|
a = $('.summary', thread);
|
||||||
switch (a.textContent[0]) {
|
switch (a.textContent[0]) {
|
||||||
case '+':
|
case '+':
|
||||||
a.textContent = a.textContent.replace('+', '\u00d7 Loading...');
|
a.textContent = a.textContent.replace('+', '× Loading...');
|
||||||
$.cache(pathname, function() {
|
$.cache(pathname, function() {
|
||||||
return ExpandThread.parse(this, thread, a);
|
return ExpandThread.parse(this, thread, a);
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case '\u00d7':
|
case '×':
|
||||||
a.textContent = a.textContent.replace('\u00d7 Loading...', '+');
|
a.textContent = a.textContent.replace('× Loading...', '+');
|
||||||
$.cache.requests[pathname].abort();
|
$.cache.requests[pathname].abort();
|
||||||
break;
|
break;
|
||||||
case '-':
|
case '-':
|
||||||
@ -887,7 +887,7 @@
|
|||||||
$.off(a, 'click', ExpandThread.cb.toggle);
|
$.off(a, 'click', ExpandThread.cb.toggle);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
a.textContent = a.textContent.replace('\u00d7 Loading...', '-');
|
a.textContent = a.textContent.replace('× Loading...', '-');
|
||||||
doc = d.implementation.createHTMLDocument('');
|
doc = d.implementation.createHTMLDocument('');
|
||||||
doc.documentElement.innerHTML = req.response;
|
doc.documentElement.innerHTML = req.response;
|
||||||
threadID = thread.id.slice(1);
|
threadID = thread.id.slice(1);
|
||||||
@ -1770,7 +1770,7 @@
|
|||||||
className: 'thumbnail',
|
className: 'thumbnail',
|
||||||
draggable: true,
|
draggable: true,
|
||||||
href: 'javascript:;',
|
href: 'javascript:;',
|
||||||
innerHTML: '<a class=remove>×</a><label hidden><input type=checkbox> Spoiler</label><span></span>'
|
innerHTML: '<a class=remove>×</a><label hidden><input type=checkbox> Spoiler</label><span></span>'
|
||||||
});
|
});
|
||||||
$('input', this.el).checked = this.spoiler;
|
$('input', this.el).checked = this.spoiler;
|
||||||
$.on(this.el, 'click', function() {
|
$.on(this.el, 'click', function() {
|
||||||
@ -2052,7 +2052,7 @@
|
|||||||
QR.el = UI.dialog('qr', 'top:0;right:0;', '\
|
QR.el = UI.dialog('qr', 'top:0;right:0;', '\
|
||||||
<div class=move>\
|
<div class=move>\
|
||||||
Quick Reply <input type=checkbox id=autohide title=Auto-hide>\
|
Quick Reply <input type=checkbox id=autohide title=Auto-hide>\
|
||||||
<span> <a class=close title=Close>×</a></span>\
|
<span> <a class=close title=Close>×</a></span>\
|
||||||
</div>\
|
</div>\
|
||||||
<form>\
|
<form>\
|
||||||
<div><input id=dump type=button title="Dump list" value=+ class=field><input name=name title=Name placeholder=Name class=field size=1><input name=email title=E-mail placeholder=E-mail class=field size=1><input name=sub title=Subject placeholder=Subject class=field size=1></div>\
|
<div><input id=dump type=button title="Dump list" value=+ class=field><input name=name title=Name placeholder=Name class=field size=1><input name=email title=E-mail placeholder=E-mail class=field size=1><input name=sub title=Subject placeholder=Subject class=field size=1></div>\
|
||||||
@ -2834,7 +2834,7 @@
|
|||||||
for (id in _ref) {
|
for (id in _ref) {
|
||||||
props = _ref[id];
|
props = _ref[id];
|
||||||
x = $.el('a', {
|
x = $.el('a', {
|
||||||
textContent: '\u00d7',
|
textContent: '×',
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
$.on(x, 'click', Watcher.cb.x);
|
$.on(x, 'click', Watcher.cb.x);
|
||||||
|
|||||||
@ -649,15 +649,13 @@ ExpandThread =
|
|||||||
pathname = "/#{g.BOARD}/res/#{thread.id[1..]}"
|
pathname = "/#{g.BOARD}/res/#{thread.id[1..]}"
|
||||||
a = $ '.summary', thread
|
a = $ '.summary', thread
|
||||||
|
|
||||||
# \u00d7 is ×
|
|
||||||
|
|
||||||
switch a.textContent[0]
|
switch a.textContent[0]
|
||||||
when '+'
|
when '+'
|
||||||
a.textContent = a.textContent.replace '+', '\u00d7 Loading...'
|
a.textContent = a.textContent.replace '+', '× Loading...'
|
||||||
$.cache pathname, -> ExpandThread.parse @, thread, a
|
$.cache pathname, -> ExpandThread.parse @, thread, a
|
||||||
|
|
||||||
when '\u00d7'
|
when '×'
|
||||||
a.textContent = a.textContent.replace '\u00d7 Loading...', '+'
|
a.textContent = a.textContent.replace '× Loading...', '+'
|
||||||
$.cache.requests[pathname].abort()
|
$.cache.requests[pathname].abort()
|
||||||
|
|
||||||
when '-'
|
when '-'
|
||||||
@ -679,7 +677,7 @@ ExpandThread =
|
|||||||
$.off a, 'click', ExpandThread.cb.toggle
|
$.off a, 'click', ExpandThread.cb.toggle
|
||||||
return
|
return
|
||||||
|
|
||||||
a.textContent = a.textContent.replace '\u00d7 Loading...', '-'
|
a.textContent = a.textContent.replace '× Loading...', '-'
|
||||||
|
|
||||||
doc = d.implementation.createHTMLDocument ''
|
doc = d.implementation.createHTMLDocument ''
|
||||||
doc.documentElement.innerHTML = req.response
|
doc.documentElement.innerHTML = req.response
|
||||||
@ -1328,7 +1326,7 @@ QR =
|
|||||||
className: 'thumbnail'
|
className: 'thumbnail'
|
||||||
draggable: true
|
draggable: true
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
innerHTML: '<a class=remove>×</a><label hidden><input type=checkbox> Spoiler</label><span></span>'
|
innerHTML: '<a class=remove>×</a><label hidden><input type=checkbox> Spoiler</label><span></span>'
|
||||||
$('input', @el).checked = @spoiler
|
$('input', @el).checked = @spoiler
|
||||||
$.on @el, 'click', => @select()
|
$.on @el, 'click', => @select()
|
||||||
$.on $('.remove', @el), 'click', (e) =>
|
$.on $('.remove', @el), 'click', (e) =>
|
||||||
@ -1533,7 +1531,7 @@ QR =
|
|||||||
QR.el = UI.dialog 'qr', 'top:0;right:0;', '
|
QR.el = UI.dialog 'qr', 'top:0;right:0;', '
|
||||||
<div class=move>
|
<div class=move>
|
||||||
Quick Reply <input type=checkbox id=autohide title=Auto-hide>
|
Quick Reply <input type=checkbox id=autohide title=Auto-hide>
|
||||||
<span> <a class=close title=Close>×</a></span>
|
<span> <a class=close title=Close>×</a></span>
|
||||||
</div>
|
</div>
|
||||||
<form>
|
<form>
|
||||||
<div><input id=dump type=button title="Dump list" value=+ class=field><input name=name title=Name placeholder=Name class=field size=1><input name=email title=E-mail placeholder=E-mail class=field size=1><input name=sub title=Subject placeholder=Subject class=field size=1></div>
|
<div><input id=dump type=button title="Dump list" value=+ class=field><input name=name title=Name placeholder=Name class=field size=1><input name=email title=E-mail placeholder=E-mail class=field size=1><input name=sub title=Subject placeholder=Subject class=field size=1></div>
|
||||||
@ -2233,8 +2231,7 @@ Watcher =
|
|||||||
for board of watched
|
for board of watched
|
||||||
for id, props of watched[board]
|
for id, props of watched[board]
|
||||||
x = $.el 'a',
|
x = $.el 'a',
|
||||||
# \u00d7 is ×
|
textContent: '×'
|
||||||
textContent: '\u00d7'
|
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
$.on x, 'click', Watcher.cb.x
|
$.on x, 'click', Watcher.cb.x
|
||||||
link = $.el 'a', props
|
link = $.el 'a', props
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user