Make the quote preview work with updates
This commit is contained in:
parent
5cfb8726d1
commit
19bfaa923d
@ -1706,6 +1706,11 @@
|
|||||||
className: 'backlink',
|
className: 'backlink',
|
||||||
textContent: '>>' + id
|
textContent: '>>' + id
|
||||||
});
|
});
|
||||||
|
if ($.config('Quote Preview')) {
|
||||||
|
$.bind(link, 'mouseover', quotePreview.mouseover);
|
||||||
|
$.bind(link, 'mousemove', ui.hover);
|
||||||
|
$.bind(link, 'mouseout', ui.hoverend);
|
||||||
|
}
|
||||||
return $.before($('br, blockquote', el), link);
|
return $.before($('br, blockquote', el), link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1728,7 +1733,7 @@
|
|||||||
},
|
},
|
||||||
node: function(root) {
|
node: function(root) {
|
||||||
var quote, _i, _len, _ref, _results;
|
var quote, _i, _len, _ref, _results;
|
||||||
_ref = $$('a.quotelink, a.backlink', root);
|
_ref = $$('a.quotelink', root);
|
||||||
_results = [];
|
_results = [];
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
quote = _ref[_i];
|
quote = _ref[_i];
|
||||||
|
|||||||
@ -1359,6 +1359,10 @@ quoteBacklink =
|
|||||||
href: '#'+id
|
href: '#'+id
|
||||||
className: 'backlink'
|
className: 'backlink'
|
||||||
textContent: '>>'+id
|
textContent: '>>'+id
|
||||||
|
if $.config 'Quote Preview'
|
||||||
|
$.bind link, 'mouseover', quotePreview.mouseover
|
||||||
|
$.bind link, 'mousemove', ui.hover
|
||||||
|
$.bind link, 'mouseout', ui.hoverend
|
||||||
$.before $('br, blockquote', el), link
|
$.before $('br, blockquote', el), link
|
||||||
|
|
||||||
quotePreview =
|
quotePreview =
|
||||||
@ -1370,7 +1374,7 @@ quotePreview =
|
|||||||
$.hide preview
|
$.hide preview
|
||||||
$.append d.body, preview
|
$.append d.body, preview
|
||||||
node: (root) ->
|
node: (root) ->
|
||||||
for quote in $$ 'a.quotelink, a.backlink', root
|
for quote in $$ 'a.quotelink', root
|
||||||
$.bind quote, 'mouseover', quotePreview.mouseover
|
$.bind quote, 'mouseover', quotePreview.mouseover
|
||||||
$.bind quote, 'mousemove', ui.hover
|
$.bind quote, 'mousemove', ui.hover
|
||||||
$.bind quote, 'mouseout', ui.hoverend
|
$.bind quote, 'mouseout', ui.hoverend
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user