<commit_before>﻿define(['jquery'], function ($) {
    'use strict';
    var menuItem, util;

    var init = function (menu, utility, params, callback) {
        menuItem = menu;
        util = utility;

        if (typeof callback === 'function') {
            callback();
        }
    };

    var pageEditComplete = function () {
        var personaBar = window.parent.dnn ? window.parent.dnn.PersonaBar : null;

        if (personaBar) {
            personaBar.offPanelClose(pageEditComplete);
        }

        if (window.top.dnn.EditBar) {
            window.top.dnn.EditBar.action('PrivatePage', 'update');
        }
    }

    var onClick = function () {
        var personaBar = window.parent.dnn ? window.parent.dnn.PersonaBar : null;
        if (personaBar) {
            personaBar.openPanel('pages', { viewName: 'edit', viewParams: null });
            personaBar.onPanelClose(pageEditComplete);
        }
    }

    return {
        init: init,
        onClick: onClick
    };
});<commit_msg>PAE-52 - fixed integration with Pages in PB<commit_after>﻿define(['jquery'], function ($) {
    'use strict';
    var menuItem, util;

    var init = function (menu, utility, params, callback) {
        menuItem = menu;
        util = utility;

        if (typeof callback === 'function') {
            callback();
        }
    };

    var pageEditComplete = function () {
        var personaBar = window.parent.dnn ? window.parent.dnn.PersonaBar : null;

        if (personaBar) {
            personaBar.offPanelClose(pageEditComplete);
        }

        if (window.top.dnn.EditBar) {
            window.top.dnn.EditBar.action('PrivatePage', 'update');
        }
    }

    var onClick = function () {
        var personaBar = window.parent.dnn ? window.parent.dnn.PersonaBar : null;
        if (personaBar) {
            personaBar.openPanel('Pages', { viewName: 'edit', viewParams: null });
            personaBar.onPanelClose(pageEditComplete);
        }
    }

    return {
        init: init,
        onClick: onClick
    };
});
{'fraction_non_alphanumeric': 0.12830558276199805, 'fraction_numerical': 0.0009794319294809011, 'mean_word_length': 2.0311572700296736, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5934922', 'n_tokens_mistral': 602, 'n_tokens_neox': 592, 'n_words': 124}