Remove previous quote preview when quote previewing in case it gets stuck by a low quality browser. Fix #494.

This commit is contained in:
Nicolas Stepien 2012-05-21 15:23:50 +02:00
parent 9956d337c2
commit c715b933d8
2 changed files with 5 additions and 0 deletions

View File

@ -3190,6 +3190,9 @@
if (/\binlined\b/.test(this.className)) {
return;
}
if (qp = $.id('qp')) {
$.rm(qp);
}
qp = UI.el = $.el('div', {
id: 'qp',
className: 'post reply dialog'

View File

@ -2422,6 +2422,8 @@ QuotePreview =
return
mouseover: (e) ->
return if /\binlined\b/.test @className
if qp = $.id 'qp'
$.rm qp
qp = UI.el = $.el 'div',
id: 'qp'
className: 'post reply dialog'