Use × instead of x as character representing closing action.

This commit is contained in:
Nicolas Stepien 2012-02-23 20:43:42 +01:00
parent f2ce860998
commit 82f2dec852
2 changed files with 7 additions and 6 deletions

View File

@ -1523,7 +1523,7 @@
className: 'preview', className: 'preview',
draggable: true, draggable: true,
href: 'javascript:;', href: 'javascript:;',
innerHTML: '<a class=remove>x</a><label hidden><input type=checkbox> Spoiler</label><span></span>' innerHTML: '<a class=remove>&times;</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() {
@ -1717,7 +1717,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>x</a></span>\ <span> <a class=close title=Close>&times;</a></span>\
</div>\ </div>\
<form>\ <form>\
<div><input id=dump class=field type=button title="Dump list" value=+><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 class=field type=button title="Dump list" value=+><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>\
@ -2642,7 +2642,7 @@
for (id in _ref) { for (id in _ref) {
props = _ref[id]; props = _ref[id];
x = $.el('a', { x = $.el('a', {
textContent: 'X', textContent: '\u00d7',
href: 'javascript:;' href: 'javascript:;'
}); });
$.on(x, 'click', watcher.cb.x); $.on(x, 'click', watcher.cb.x);

View File

@ -1226,7 +1226,7 @@ qr =
className: 'preview' className: 'preview'
draggable: true draggable: true
href: 'javascript:;' href: 'javascript:;'
innerHTML: '<a class=remove>x</a><label hidden><input type=checkbox> Spoiler</label><span></span>' innerHTML: '<a class=remove>&times;</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) =>
@ -1363,7 +1363,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>x</a></span> <span> <a class=close title=Close>&times;</a></span>
</div> </div>
<form> <form>
<div><input id=dump class=field type=button title="Dump list" value=+><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 class=field type=button title="Dump list" value=+><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>
@ -2178,7 +2178,8 @@ 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',
textContent: 'X' # \u00d7 is &times;
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