Fix mistake

This commit is contained in:
Nicolas Stepien 2011-11-24 01:18:27 +01:00
parent ec06901b49
commit 312f0bcd34
2 changed files with 5 additions and 5 deletions

View File

@ -2339,10 +2339,10 @@
e.preventDefault();
id = this.hash.slice(1);
if (/\binlined\b/.test(this.className)) {
quoteInline.rm(this, id);
$.rm = $.x("following::*[@id='i" + id + "']", this);
} else {
if ($.x("ancestor::*[@id='" + id + "']", this)) return;
$.rm = $.x("following::*[@id='i" + id + "']", this);
quoteInline.add(this, id);
}
return this.classList.toggle('inlined');
},

View File

@ -1803,11 +1803,11 @@ quoteInline =
e.preventDefault()
id = @hash[1..]
if /\binlined\b/.test @className
quoteInline.rm @, id
else
return if $.x("ancestor::*[@id='#{id}']", @)
# remove the corresponding table or loading td
$.rm = $.x "following::*[@id='i#{id}']", @
else
return if $.x("ancestor::*[@id='#{id}']", @)
quoteInline.add @, id
@classList.toggle 'inlined'
add: (q, id) ->