Fix mistake
This commit is contained in:
parent
ec06901b49
commit
312f0bcd34
@ -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');
|
||||
},
|
||||
|
||||
@ -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) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user