Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/home/alexv/Downloads/lorify-ng-3.4.2.txt b/home/alexv/Downloads/lorify-ng-3.4.2_orig.txt
- index 5650542..63f6245 100644
- --- a/home/alexv/Downloads/lorify-ng-3.4.2.txt
- +++ b/home/alexv/Downloads/lorify-ng-3.4.2_orig.txt
- @@ -2698,8 +2698,6 @@ function handleCommentForm(form) {
- const FACT_PANNEL = form.querySelector('.form-actions');
- const NODE_PREVIEW = _cnode('div', { id: 'commentPreview' });
- const MARKUP_PANEL = _cnode('div', { id: 'markup-panel' });
- - const MARKUP_LABEL = _cnode('span', { className: 'markup-mode' });
- - let MARKUP_TITLE = MARKUP_LABEL;
- for (let attrs of [
- { lorcode: 'b' },
- @@ -2745,21 +2743,7 @@ function handleCommentForm(form) {
- }
- }
- });
- - const setupMarkupPanel = () => {
- - const control = TEXT_AREA.closest('.control-group') || TEXT_AREA.parentNode;
- - const tab = control.querySelector('.markup-tabs__tab.active');
- - const legacy = TEXT_AREA.parentNode.firstElementChild;
- -
- - if (tab) {
- - MARKUP_TITLE = tab;
- - tab.after(MARKUP_PANEL);
- - } else if (legacy && legacy !== TEXT_AREA) {
- - legacy.append(MARKUP_LABEL, MARKUP_PANEL);
- - } else {
- - TEXT_AREA.before(MARKUP_LABEL, MARKUP_PANEL);
- - }
- - };
- - setupMarkupPanel();
- + TEXT_AREA.parentNode.firstElementChild.append(MARKUP_PANEL);
- let btn_cancel = form.elements.cancel;
- if(!btn_cancel ) {
- @@ -2967,7 +2951,7 @@ function handleCommentForm(form) {
- );
- const mode_change = i => {
- - MARKUP_TITLE.textContent = `Разметка ${i ? 'LORCODE' : 'Markdown'}`
- + MARKUP_PANEL.previousSibling.textContent = `Разметка ${i ? 'LORCODE' : 'Markdown'}`
- MARKUP_PANEL.className = i ? 'lorcode' : 'markdown';
- }
- Object.defineProperty(Dynamic_Style, 'Markup Mode', {
- @@ -10976,4 +10960,4 @@ function getHLJSStyle(i = -1) {
- }
- ];
- return i === -1 ? styles : styles[i];
- -}
- \ No newline at end of file
- +}
Advertisement
Add Comment
Please, Sign In to add comment