|
|
@@ -13,10 +13,17 @@
|
|
|
statum.addStateListener('terminal', function () {
|
|
|
var state = statum.read('terminal');
|
|
|
if (!connected && state && state.exists && state.session_id > 0) {
|
|
|
- if (window.initQuoteComments && !state.has_raw_log) {
|
|
|
+ // Floating "comment on selection" covers both
|
|
|
+ // terminal flavours: the raw PTY log (#term-raw) and
|
|
|
+ // the legacy entry log (#term-log).
|
|
|
+ if (window.initQuoteComments) {
|
|
|
window.initQuoteComments({
|
|
|
matches: function (node) {
|
|
|
- return node.closest && node.closest('#term-log') != null;
|
|
|
+ if (!node.closest) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return node.closest('#term-log') != null
|
|
|
+ || node.closest('#term-raw') != null;
|
|
|
},
|
|
|
action: function () { return state.comment; }
|
|
|
});
|