Skip to content

Commit

Permalink
fix: отмена спасения кнопки Toggl
Browse files Browse the repository at this point in the history
Это ломает вставку справочников

revert commit f68130
  • Loading branch information
popstas committed Mar 1, 2021
1 parent a378c87 commit 0535a63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/_planfixfix.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,8 @@ let $; // заглушает ошибки в определении $ в мод
});*/

// спасение кнопки toggl при обновлении шапки, спасает не всегда
win.PanelLayoutJS.prototype.setBlockPath_orig = PanelLayoutJS.prototype.setBlockPath;
// TODO: это иногда вызывает зависание при попытке вставки записи справочника в коммент
/* win.PanelLayoutJS.prototype.setBlockPath_orig = PanelLayoutJS.prototype.setBlockPath;
win.PanelLayoutJS.prototype.setBlockPath = function(container, html) {
const togglButton = $('.b-toggl-btn');
if (togglButton.length > 0) togglButton.appendTo('body');
Expand All @@ -425,7 +426,7 @@ let $; // заглушает ошибки в определении $ в мод
if (togglButton.length > 0) togglButton.appendTo('.toggl');
return $block;
};
}; */

},

Expand Down

0 comments on commit 0535a63

Please sign in to comment.