Fix mistake
This commit is contained in:
parent
ec06901b49
commit
312f0bcd34
@ -2339,10 +2339,10 @@
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
id = this.hash.slice(1);
|
id = this.hash.slice(1);
|
||||||
if (/\binlined\b/.test(this.className)) {
|
if (/\binlined\b/.test(this.className)) {
|
||||||
quoteInline.rm(this, id);
|
$.rm = $.x("following::*[@id='i" + id + "']", this);
|
||||||
} else {
|
} else {
|
||||||
if ($.x("ancestor::*[@id='" + id + "']", this)) return;
|
if ($.x("ancestor::*[@id='" + id + "']", this)) return;
|
||||||
$.rm = $.x("following::*[@id='i" + id + "']", this);
|
quoteInline.add(this, id);
|
||||||
}
|
}
|
||||||
return this.classList.toggle('inlined');
|
return this.classList.toggle('inlined');
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1803,11 +1803,11 @@ quoteInline =
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
id = @hash[1..]
|
id = @hash[1..]
|
||||||
if /\binlined\b/.test @className
|
if /\binlined\b/.test @className
|
||||||
quoteInline.rm @, id
|
|
||||||
else
|
|
||||||
return if $.x("ancestor::*[@id='#{id}']", @)
|
|
||||||
# remove the corresponding table or loading td
|
# remove the corresponding table or loading td
|
||||||
$.rm = $.x "following::*[@id='i#{id}']", @
|
$.rm = $.x "following::*[@id='i#{id}']", @
|
||||||
|
else
|
||||||
|
return if $.x("ancestor::*[@id='#{id}']", @)
|
||||||
|
quoteInline.add @, id
|
||||||
@classList.toggle 'inlined'
|
@classList.toggle 'inlined'
|
||||||
|
|
||||||
add: (q, id) ->
|
add: (q, id) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user