Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-40392

Minifier exceptions are thrown when trying to access Site Pages in Site Administration, the page tree is not visible, and javascript is not working

    Details

    • Fix Priority:
      5

      Description

      Steps to reproduce:

      1. From a page, click Admin > Site Pages

      Expected results:
      No console errors, and javascript will not break

      Actual results:
      Console errors are thrown, javascript is broken, and the page tree does not appear.

      Console output:

      20:04:18,597 ERROR [http-bio-8080-exec-4][MinifierUtil:87] 358: 17: syntax error
      20:04:19,062 ERROR [http-bio-8080-exec-8][MinifierUtil:87] 358: 17: syntax error
      20:04:19,973 ERROR [http-bio-8080-exec-4][MinifierUtil:87] 1: 0: Compilation produced 4 syntax errors.
      20:04:19,975 ERROR [http-bio-8080-exec-8][MinifierUtil:87] 1: 0: Compilation produced 4 syntax errors.
      20:04:19,976 ERROR [http-bio-8080-exec-4][MinifierUtil:87] JavaScript Minifier failed for__// <![CDATA[__               Liferay.Portal.Tabs.show("_156_tabs1", ['\u0070\u0075\u0062\u006c\u0069\u0063\u002d\u0070\u0061\u0067\u0065\u0073','\u0070\u0072\u0069\u0076\u0061\u0074\u0065\u002d\u0070\u0061\u00
      67\u0065\u0073'], "\u0070\u0075\u0062\u006c\u0069\u0063\u002d\u0070\u0061\u0067\u0065\u0073");_ _       Liferay.provide(_                       window,_                        '_156_regularselectColorScheme',_                       function(id) {_                         var A = AUI();__
                      var colorSchemeInput = A.one(id);__                             if (!colorSchemeInput.get('disabled')) {_                                       colorSchemeInput.set('checked', true);_                         }_                      },_                     ['aui-base']_           );__
                      Liferay.provide(_                       window,_                        '_156_regularselectTheme',_                     function(themeId, colorSchemesDisabled) {_                              var A = AUI();__                                A.one('#_156_regular' + themeId).set('checke
      d', true);__                            var colorSchemePanel = A.one('#regularlayoutsAdminLookAndFeelColorsPanel');__                           if (colorSchemePanel) {_                                        colorSchemePanel.all('input[name=_156_regularColorSchemeId]').set('disabled', colorSchemesDi
      sabled);_                               }_                      },_                     ['aui-base']_           );_     _       Liferay.provide(_               window,_                '_156_processDialog',_          function(dialog) {_                     var A = AUI();__                        if (
      dialog) {_                              if (Liferay.Util.getTop() == window) {_                         dialog.plug(A.LoadingMask).render();_                           }_                              else {_                                 dialog.hide();_                         }_
      }_              },_             ['aui-loading-mask-deprecated']_        );__    function _156_saveRuleGroupsPriorities(dialog) {_               _156_processDialog(dialog);_    }__     Liferay.provide(_               window,_                '_156_saveRuleGroupInstance',_          function(ruleGroupId
      , ruleGroupName, dialog) {_                     var A = AUI();__                        _156_processDialog(dialog);__                   Liferay.Service(_                               '/mdrrulegroupinstance/add-rule-group-instance',_                               {_
      groupId: 10184,_                                        className: 'com.liferay.portal.model.LayoutSet',_                                       classPK: 10186,_                                        ruleGroupId: ruleGroupId,_                                      serviceContext: A.JSON.stringify(_
                                              {_                                                      scopeGroupId: themeDisplay.getScopeGroupId(),_                                                  userId: themeDisplay.getUserId()_                                               }_
              )_                              },_                             function(response, xhr) {_                              window.location.reload();_                              }_                      );_             },_             ['aui-loading-mask-deprecated']_        );__    function _15
      6_mobileDeviceActionHandler(href) {_            if (false) {_                   _156_mobileDeviceOpenWindow(_                           {_                                      uri: href_                              }_                      );_             }_              else {_                 loca
      tion.href = href;_              }_      }__     function _156_mobileDeviceOpenWindow(config) {_     var data = AUI().mix(_                      config,_                        {_                              dialog: {_                                      width: 820_                             },_
                              title: Liferay.Language.get('javax.portlet.title.178')_                 }_      );__            Liferay.Util.openWindow(data);_ }__     function _156_saveLayoutset(action) {_          document._156_fm.encoding = 'multipart/form-data';__            if (action) {_
      document._156_fm._156_cmd.value = action;_              }_              else {_                 document._156_fm._156_cmd.value = 'update';_            }__             submitForm(document._156_fm);_  }__     function _156_updateLogo() {_           document._156_fm.encoding = 'multipart/form-data';_
              document._156_fm._156_cmd.value = 'logo';__             submitForm(document._156_fm);_  }__ function _156_updateRobots() {_             document._156_fm._156_cmd.value = 'robots';__           submitForm(document._156_fm);_  }__     Liferay.provide(_               window,_                '_15
      6_removePage',_         function(box) {_                        var A = AUI();__                    var selectEl = A.one(box);__                        var currentValue = selectEl.val() || null;__                    Liferay.Util.removeItem(box);_          },_             ['aui-base']_   );__    Life
      ray.provide(_           window,_                '_156_updateDisplayOrder',_             function() {_                   document._156_fm._156_cmd.value = 'display_order';_                     document._156_fm._156_layoutIds.value = Liferay.Util.listSelect(document._156_fm._156_layoutIdsBox);__
              submitForm(document._156_fm);_          },_             ['liferay-util-list-fields']_   );__    Liferay.provide(_               window,_                '_156_updateStaging',_          function() {_                   var A = AUI();__                        var selectEl = A.one('#_156_stagingT
      ype');__                        var currentValue = selectEl.val() || null;__                    var ok = false;__                       if (currentValue == 0) {_                               ok = confirm('\u0041\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0073\u0075\u0072\u0065\u0020\u0079\u006f\u00
      75\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0064\u0065\u0061\u0063\u0074\u0069\u0076\u0061\u0074\u0065\u0020\u0073\u0074\u0061\u0067\u0069\u006e\u0067\u0020\u0066\u006f\u0072\u0020\u004c\u0069\u0066\u0065\u0072\u0061\u0079\u003f');_                  }_                      else if (cur
      rentValue == 1) {_                              ok = confirm('\u0041\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0073\u0075\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0061\u0063\u0074\u0069\u0076\u0061\u0074\u0065\u0020\u006c\u006f\u0063\u0061\u006c\u00
      20\u0073\u0074\u0061\u0067\u0069\u006e\u0067\u0020\u0066\u006f\u0072\u0020\u004c\u0069\u0066\u0065\u0072\u0061\u0079\u003f');_                  }_                      else if (currentValue == 2) {_                          ok = confirm('\u0041\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0073\u0075\u
      0072\u0065\u0020\u0079\u006f\u0075\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0061\u0063\u0074\u0069\u0076\u0061\u0074\u0065\u0020\u0072\u0065\u006d\u006f\u0074\u0065\u0020\u0073\u0074\u0061\u0067\u0069\u006e\u0067\u0020\u0066\u006f\u0072\u0020\u004c\u0069\u0066\u0065\u0072\u0061\u0079\u
      003f');_                        }__                     if (ok) {_                              document._156_fm._156_cmd.value = 'staging';__                          submitForm(document._156_fm);_                  }_              },_             ['aui-base']_   );__                    Liferay.Port
      let.onLoad(_                            {_                                      canEditTitle: true,_                                    columnPos: 0,_                                  isStatic: 'end',_                                       namespacedId: 'p_p_id_156_',_
      portletId: '156',_                                      refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d10178\x26p_p_id\x3d156\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dmaximized\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x
      26p_p_isolated\x3d1\x26currentURL\x3d\x252Fgroup\x252Fcontrol_panel\x252Fmanage\x253Fp_p_id\x253D156\x2526p_p_lifecycle\x253D0\x2526p_p_state\x253Dmaximized\x2526p_p_mode\x253Dview\x2526doAsGroupId\x253D10184\x2526refererPlid\x253D10187\x2526controlPanelCategory\x253Dcurrent_site\x2epages\x26referer
      Plid\x3d10187\x26controlPanelCategory\x3dcurrent_site\x2epages\x26doAsGroupId\x3d10184'_                        }_                      );_             _                       Liferay.Portlet.onLoad(_                                {_                                      canEditTitle: true,_
                              columnPos: 0,_                                  isStatic: 'end',_                               namespacedId: 'p_p_id_160_',_                                   portletId: '160',_                                      refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d
      10178\x26p_p_id\x3d160\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fgroup\x252Fcontrol_panel\x252Fmanage\x253Fp_p_id\x253D156
      \x2526p_p_lifecycle\x253D0\x2526p_p_state\x253Dmaximized\x2526p_p_mode\x253Dview\x2526doAsGroupId\x253D10184\x2526refererPlid\x253D10187\x2526controlPanelCategory\x253Dcurrent_site\x2epages\x26refererPlid\x3d10187\x26controlPanelCategory\x3dcurrent_site\x2epages\x26doAsGroupId\x3d10184'_
                      }_                      );_             _                                           Liferay.delegateClick('_145_tojj', Liferay.Util.openInDialog);_                                     _                       Liferay.Portlet.onLoad(_                                {_
                      canEditTitle: true,_                                    columnPos: 0,_                          isStatic: 'end',_                                       namespacedId: 'p_p_id_145_',_                                   portletId: '145',_                                      refreshURL:
      '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d10178\x26p_p_id\x3d145\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fgroup\x25
      2Fcontrol_panel\x252Fmanage\x253Fp_p_id\x253D156\x2526p_p_lifecycle\x253D0\x2526p_p_state\x253Dmaximized\x2526p_p_mode\x253Dview\x2526doAsGroupId\x253D10184\x2526refererPlid\x253D10187\x2526controlPanelCategory\x253Dcurrent_site\x2epages\x26refererPlid\x3d10187\x26controlPanelCategory\x3dcurrent_sit
      e\x2epages\x26doAsGroupId\x3d10184'_                            }_                      );_         AUI().use('aui-base', 'aui-char-counter', 'aui-event-input', 'aui-io-plugin-deprecated', 'aui-io-request', 'aui-tabview', 'aui-toggler', 'aui-tree-view', 'aui-url', 'dataschema-xml', 'datatype-xml', '
      event-move', 'event-outside', 'history', 'io-form', 'liferay-dockbar-add-page', 'liferay-form', 'liferay-history-manager', 'liferay-input-localized', 'liferay-menu', 'liferay-notice', 'liferay-poller', 'liferay-search-container', 'liferay-store', 'liferay-util-window', function(A) {(function() {_
      var Lang = A.Lang;_     var AArray = A.Array;__ var Util = Liferay.Util;__      var GET_LAYOUTS_URL = themeDisplay.getPathMain() + '/layouts_admin/get_layouts';__      var LAYOUT_URL = 'http://localhost:8080/group/control_panel/manage?p_p_auth=EdKtr8Z9&p_p_id=156&p_p_lifecycle=2&p_p_state=maximized&
      p_p_mode=view&p_p_cacheability=cacheLevelPage&doAsGroupId=10184&refererPlid=10187&controlPanelCategory=current_site.pages&_156_treeId=layoutsTree&_156_groupId=10184&_156_tabs1=public-pages&_156_viewLayout=true&_156_struts_action=%2Fgroup_pages%2Fedit_layouts&_156_selPlid={selPlid}&_156_historyKey={h
      istoryKey}';_   var STR_CHILDREN = 'children';__        var TREE_CSS_CLASSES = {_               pages: {_                       iconCheck: 'tree-icon icon-check',_                     iconCollapsed: 'icon-file',_                    iconExpanded: 'icon-file',_                     iconHitAreaCollapsed
      : 'tree-hitarea icon-plus',_                    iconHitAreaExpanded: 'tree-hitarea icon-minus',_                iconLeaf: 'icon-leaf',_                 iconLoading: 'icon-refresh',_                   iconUncheck: 'icon-check'_              }_      };__    __      var TreeUtil = {_               CHEC
      KED_NODES: [],_         DEFAULT_PARENT_LAYOUT_ID: 0,_           PAGINATION_LIMIT: 20,_          PREFIX_GROUP_ID: '_groupId_',_          PREFIX_LAYOUT: '_layout_',_             PREFIX_LAYOUT_ID: '_layoutId_',_                PREFIX_PLID: '_plid_',__                afterRenderTree: function(event) {_
                      var rootNode = event.target.item(0);__                  var loadingEl = A.one('#_156_treeLoadingwtmd');__                       loadingEl.hide();__                     _                               _                               _                                       rootNode.exp
      and();_                         _                       __                      TreeUtil.restoreSelectedNode(rootNode);__                       rootNode.eachChildren(TreeUtil.restoreSelectedNode);_           },__            createLabel: function(data) {_                  return '<span class="' + dat
      a.cssClass + '" title="' + data.title + '">' + data.label + '</span>';_         },__            createListItemId: function(groupId, layoutId, plid) {_                  return 'layoutsTree' + TreeUtil.PREFIX_LAYOUT_ID + layoutId + TreeUtil.PREFIX_PLID + plid + TreeUtil.PREFIX_GROUP_ID + groupId;_
              },__            createLinkId: function(friendlyURL) {_                  return 'layoutsTree' + TreeUtil.PREFIX_LAYOUT + friendlyURL.substring(1);_              },__            createLink: function(data) {_                   var className = 'layout-tree';__                        if (data.css
      Class) {_                               className += ' ' + data.cssClass;_                      }__             if (false && !data.contentDisplayPage) {_                               className += ' layout-page-invalid';_                   }__                     var href = Lang.sub(_
              LAYOUT_URL,_                            {_                                      historyKey: data.historyKey,_                                   selPlid: data.plid_                             }_                      );__                    return '<a class="' + className + '" data-uuid="' +
      data.uuid + '" href="' + href + '" id="' + data.id + '" title="' + data.title + '">' + data.label + '</a>';_            },__            extractGroupId: function(node) {_                       return node.get('id').match(/groupId_(\d+)/)[1];_               },__            extractLayoutId: function(no
      de) {_                  return node.get('id').match(/layoutId_(\d+)/)[1];_              },__        extractPlid: function(node) {_                      return node.get('id').match(/plid_(\d+)/)[1];_          },__            formatJSONResults: function(json) {_                    var output = [];__
                      A.each(_                                json.layouts,_                          function(node) {_                                       var childLayouts = [];_                                 var cssIcons = {};_                                     var total = 0;__
                      var iconClassName = 'icon-link';__                                      var hasChildren = node.hasChildren;_                                    var nodeChildren = node.children;_                                      var nodeType = node.type;__                                     if (
      (nodeType === 'embedded') ||_                                           (nodeType === 'link_to_layout') ||_                                             (nodeType === 'url')) {__                                               cssIcons.pages: {_                                                      icon
      Collapsed: iconClassName,_                                                      iconExpanded: iconClassName,_                                                   iconLeaf: iconClassName_                                                };_                                     }__
              if (nodeChildren) {_                                            childLayouts = nodeChildren.layouts;_                                           total = nodeChildren.total;_                                    }__                                     var expanded = (total > 0);__
                      var newNode = {_                                                _                                               after: {_                                                               __                                                              childrenChange: function(event) {_
                                                                      var target = event.target;__                                                            target.set('alwaysShowHitArea', event.newVal.length > 0);__                                                                     target.eachChildren(
      TreeUtil.restoreSelectedNode);__                                                                    _                                                           },__                                                            expandedChange: function(event) {_
                              var layoutId = TreeUtil.extractLayoutId(event.target);__                                                                TreeUtil.updateSessionTreeOpenedState('layoutsTree', layoutId, event.newVal);_                                                          }_
                                      },_                                             __                                      alwaysShowHitArea: hasChildren,__                                               __                                              cssClasses: A.merge(TREE_CSS_CLASSES, cssIcons),_
                                              draggable: node.sortable,_                                      expanded: expanded,_                                            id: TreeUtil.createListItemId(node.groupId, node.layoutId, node.plid),_                                         io: {_
                                      cfg: {_                                                         data: function(node) {_                                                                 return {_                                                                               groupId: TreeUtil.extractGro
      upId(node),_                                                                            incomplete: true,_                                                                              p_auth: Liferay.authToken,_                                                                             parentLayout
      Id: TreeUtil.extractLayoutId(node),_                                                                    privateLayout: false,_                                                                          selPlid: '0',_                                                                          treeId: 'lay
      outsTree'_                                                                      };_                                                     },_                                                             method: A.config.io.method,_                                                            on: {_
                                                              success: function(event, id, xhr) {_                                                                    var instance = this;__                                                                          var response;__
                                              try {_                                                                          response = A.JSON.parse(xhr.responseText);_                                                                             }_
                      catch (e) {_                                                                        }__                                                                         if (response) {_                                                                                        instance.get('pagina
      tor').total = response.total;__                                                                         instance.syncUI();_                                                                             }__                                                                             _
                                                                      TreeUtil.updatePagination(instance);_                                                                           _                                                                       }_
              }_                                                      },_                                             formatter: TreeUtil.formatJSONResults,_                                                 url: GET_LAYOUTS_URL_                                           },_
              leaf: !node.parentable,_                                                paginator: {_                                           limit: TreeUtil.PAGINATION_LIMIT,_                                                      offsetParam: 'start',_                                                  star
      t: Math.max(childLayouts.length - TreeUtil.PAGINATION_LIMIT, 0),_                                               total: total_                                           },_                                             type: 'io'_                                     };__
      if (nodeChildren && expanded) {_                                                newNode.children = TreeUtil.formatJSONResults(nodeChildren);_                                   }__                                     var cssClass = '';_                                     var title = '';__
                              newNode.label = Util.escapeHTML(node.name);__                               if (node.layoutRevisionId) {_                                               if (!node.layoutRevisionHead) {_                                                        title = '\u0054\u0068\u0065\u0072\u0
      065\u0020\u0069\u0073\u0020\u006e\u006f\u0074\u0020\u0061\u0020\u0076\u0065\u0072\u0073\u0069\u006f\u006e\u0020\u006f\u0066\u0020\u0074\u0068\u0069\u0073\u0020\u0070\u0061\u0067\u0065\u0020\u006d\u0061\u0072\u006b\u0065\u0064\u0020\u0061\u0073\u0020\u0052\u0065\u0061\u0064\u0079\u0020\u0066\u006f\u0
      072\u0020\u0050\u0075\u0062\u006c\u0069\u0063\u0061\u0074\u0069\u006f\u006e\u002e';_                                    }_                                              else if (node.layoutBranchName) {_                                                      node.layoutBranchName = Util.escapeHTML(node
      .layoutBranchName);__                                                   newNode.label += Lang.sub(' <span class="layout-branch-name" title="\u0054\u0068\u0069\u0073\u0020\u0069\u0073\u0020\u0074\u0068\u0065\u0020\u0070\u0061\u0067\u0065\u0020\u0076\u0061\u0072\u0069\u0061\u0074\u0069\u006f\u006e\u00
      20\u0074\u0068\u0061\u0074\u0020\u0069\u0073\u0020\u006d\u0061\u0072\u006b\u0065\u0064\u0020\u0061\u0073\u0020\u003c\u0065\u006d\u003e\u0072\u0065\u0061\u0064\u0079\u0020\u0066\u006f\u0072\u0020\u0070\u0075\u0062\u006c\u0069\u0063\u0061\u0074\u0069\u006f\u006e\u003c\u002f\u0065\u006d\u003e\u002e">[{
      layoutBranchName}]</span>', node);_                                             }__                                     if (node.incomplete) {_                                                 cssClass = 'incomplete-layout';__                                                       title = '\u0054\u006
      8\u0069\u0073\u0020\u0070\u0061\u0067\u0065\u0020\u0069\u0073\u0020\u006e\u006f\u0074\u0020\u0065\u006e\u0061\u0062\u006c\u0065\u0064\u0020\u0069\u006e\u0020\u0074\u0068\u0069\u0073\u0020\u0053\u0069\u0074\u0065\u0020\u0050\u0061\u0067\u0065\u0073\u0020\u0056\u0061\u0072\u0069\u0061\u0074\u0069\u006
      f\u006e\u002c\u0020\u0062\u0075\u0074\u0020\u0069\u0073\u0020\u0061\u0076\u0061\u0069\u006c\u0061\u0062\u006c\u0065\u0020\u0066\u006f\u0072\u0020\u006f\u0074\u0068\u0065\u0072\u0020\u0070\u0061\u0067\u0065\u0073\u0020\u0076\u0061\u0072\u0069\u0061\u0074\u0069\u006f\u006e\u0073\u002e';_
                              }_                                      }__                                 if (!node.sortable) {_                                              newNode.cssClass = 'lfr-page-locked';_                                  }__                                     if (!false) {_
                                      newNode.label = TreeUtil.createLink(_                                           {_                                                              contentDisplayPage: node.contentDisplayPage,_                                                           cssClass: cssClass,_
                                                                      id: TreeUtil.createLinkId(node.friendlyURL),_                                                           label: newNode.label,_                                                          plid: node.plid,_
                              title: title,_                                                          uuid: node.uuid_                                                        }_                                              );_                                     }_                                      else
       {_                                             newNode.label = TreeUtil.createLabel(_                                          {_                                                              cssClass: cssClass,_                                                            label: newNode.label,_
                                                      title: title_                                           }_                                              );_                                     }__                                     output.push(newNode);_                          }_
      );__                    return output;_         },__            restoreCheckedNode: function(node) {_                   var instance = this;__                  var plid = TreeUtil.extractPlid(node);__                        var tree = node.get('ownerTree');__             var treeNodeTaskSuperClass =
       A.TreeNodeTask.superclass;__                   if (AArray.indexOf(TreeUtil.CHECKED_NODES, plid) > -1) {_                               treeNodeTaskSuperClass.check.call(node, tree);_                 }_                      else {_                         treeNodeTaskSuperClass.uncheck.call(node, tr
      ee);_                   }__                     AArray.each(node.get(STR_CHILDREN), TreeUtil.restoreCheckedNode);_              },__            restoreSelectedNode: function(node) {_                  var plid = TreeUtil.extractPlid(node);__                        if (plid == '0') {_
              node.select();_                 }_                      else {_                         node.unselect();_                       }_              },__            updateLayout: function(data) {_                 A.io.request(_                          themeDisplay.getPathMain() + '/layouts_admin
      /update_page',_                         {_                                      data: A.mix(_                                   data,_                                          {_                                                      p_auth: Liferay.authToken_
      }_                                      )_                              }_                      );_     },__            updateLayoutParent: function(dragPlid, dropPlid, index) {_                      TreeUtil.updateLayout(_                         {_                                      cmd: 'parent
      _layout_id',_                                   parentPlid: dropPlid,_                              plid: dragPlid,_                                    priority: index_                                }_                      );_             }__             _                       , invokeSessionClick
      : function(data, callback) {_                           A.mix(_                                 data,_                                  {_                                              useHttpSession: true_                                   }_                              );__
      A.io.request(_                                  themeDisplay.getPathMain() + '/portal/session_click',_                                  {_                                              after: {_                                                       success: function(event) {_
                                      var responseData = this.get('responseData');__                                                  if (callback && responseData) {_                                                                        callback(responseData);_
                      }_                                                      }_                                      },_                                             data: data_                                     }_                              );_                     },__                    updatePagina
      tion: function(node) {_                         var paginationMap = {};__                           var updatePaginationMap = function(map, curNode) {_                                 if (A.instanceOf(curNode, A.TreeNodeIO)) {_                                             var paginationLimit = TreeUt
      il.PAGINATION_LIMIT;__                                          var layoutId = TreeUtil.extractLayoutId(curNode);__                                             var children = curNode.get(STR_CHILDREN);__                                             map[layoutId] = Math.ceil(children.length / paginati
      onLimit) * paginationLimit;_                                    }_                              }__                     TreeUtil.invokeSessionClick(_                                   {_                                              cmd: 'get',_                                            key: 'layout
      sTree:10184:false:Pagination'_                                  },_                                 function(responseData) {_                                           try {_                                                  paginationMap = A.JSON.parse(responseData);_
              }_                                              catch (e) {_                                    }__                                             updatePaginationMap(paginationMap, node)__                                              node.eachParent(_
              function(parent) {_                                                             updatePaginationMap(paginationMap, parent);_                                                    }_                                              );__                                            TreeUtil.invokeSessi
      onClick(_                                                       {_                                                      'layoutsTree:10184:false:Pagination': A.JSON.stringify(paginationMap)_                                                  }_                                              );_
                              }_                              );_                     },__                updateCheckedNodes: function(node, state) {_                                var plid = TreeUtil.extractPlid(node);__                                var checkedNodes = TreeUtil.CHECKED_NODES;__
                      var index = AArray.indexOf(checkedNodes, plid);__                               if (state) {_                                   if (index == -1) {_                                             checkedNodes.push(plid);_                                       }_
      }_                              else if (index > -1) {_                                 AArray.remove(checkedNodes, index);_                            }_                      },__                    updateSessionTreeCheckedState: function(treeId, nodeId, state) {_                               var
      data = {_                                       cmd: state ? 'layoutCheck' : 'layoutUncheck',_                          plid: nodeId_                           };__                            TreeUtil.updateSessionTreeClick(treeId, data);_                 },__                    updateSessionTreeCli
      ck: function(treeId, data) {_                           data = A.merge(_                                {_                                              groupId: 10184,_                                                privateLayout: false,_                                          recursive: true,_
                                              treeId: treeId_                                 },_                             data_                           );__                            A.io.request(_                                  themeDisplay.getPathMain() + '/portal/session_tree_js_click',_
                              {_                                              data: data_                             }_                              );_                     },__                    updateSessionTreeOpenedState: function(treeId, nodeId, state) {_                                var data = {
      _                                       nodeId: nodeId,_                                        openNode: state_                                };__                            TreeUtil.updateSessionTreeClick(treeId, data);_                 }_              _       };__    var rootLabel = 'Public\x20P
      ages';_ var treeElId = '_156_layoutsTreeOutput';__      var RootNodeType = A.TreeNodeTask;_     var TreeViewType = A.TreeView;__        _               RootNodeType = A.TreeNodeIO;__          _                       TreeViewType = A.TreeViewDD;_           __              _                       root
      Label = TreeUtil.createLink(_                           {_                                      label: Util.escapeHTML(rootLabel),_                                     plid: TreeUtil.DEFAULT_PARENT_LAYOUT_ID_                                }_                      );_             _       __      var
      rootNode = new RootNodeType(_           {_                      _                               after: {_                                       __                                      expandedChange: function(event) {_                                              Liferay.Store('layoutsTreeRootNode',
       event.newVal);_                                        }_                              },_             __                      alwaysShowHitArea: true,__                      __                      __                      children: TreeUtil.formatJSONResults({"total":1,"layouts":[{"groupId":10184,
      "hasChildren":false,"parentLayoutId":0,"contentDisplayPage":false,"parentable":true,"updateable":true,"priority":0,"name":"Welcome","plid":10187,"sortable":true,"friendlyURL":"/home","layoutId":1,"uuid":"574217cd-c7db-4782-bcdb-1194fabedd2e","type":"portlet","privateLayout":false}]}),_
      cssClasses: TREE_CSS_CLASSES,_                  draggable: false,__                     _                       __                                      __                                      expanded: true,_                                _                               _                       __
                      id: TreeUtil.createListItemId(10184, TreeUtil.DEFAULT_PARENT_LAYOUT_ID, 0),_            label: rootLabel,_                      leaf: false,_                   paginator: {_                           limit: TreeUtil.PAGINATION_LIMIT,_                              offsetParam: 'start'
      ,_                              start: Math.max(1 - TreeUtil.PAGINATION_LIMIT, 0),_                     total: 1_                       }_              }_      );__    rootNode.get('contentBox').addClass('lfr-root-node');__ var treeview = new TreeViewType(_               {_                      afte
      r: {_                           render: TreeUtil.afterRenderTree_                       },_             boundingBox: '#' + treeElId,_                   children: [rootNode],_                  io: {_                          cfg: {_                                 data: function(node) {_
                              return {_                                                       groupId: TreeUtil.extractGroupId(node),_                                                        incomplete: true,_                                                      p_auth: Liferay.authToken,_
                                      parentLayoutId: TreeUtil.extractLayoutId(node),_                                                privateLayout: false,_                                                  selPlid: '0',_                                                  treeId: 'layoutsTree'_
                              };_                                     },_                                 method: A.config.io.method,_                                        on: {_                                          success: function(event, id, xhr) {_
      var instance = this;__                                                  var response;__                                         try {_                                                          response = A.JSON.parse(xhr.responseText);_                                                     }_
                                              catch (e) {_                                                }__                                                 if (response) {_                                                                instance.get('paginator').total = response.total;__
                                              instance.syncUI();_                                             }__                                                     _                                                               TreeUtil.updatePagination(instance);_
              _                                               }_                                      }_                      },_                             formatter: TreeUtil.formatJSONResults,_                         url: GET_LAYOUTS_URL_                   },_                     on: {_
              __                              'drop:hit': function(event) {_                              var dropNode = event.drop.get('node').get('parentNode');__                                  var dropTreeNode = dropNode.getData('tree-node');__                                     if (!dropTreeNode.ge
      t('draggable')) {_                                              event.halt();_                          }_                              },_                             dropAppend: function(event) {_                                  var tree = event.tree;__                                        var
      index = tree.dragNode.get('parentNode').getChildrenLength() - 1;__                                  TreeUtil.updateLayoutParent(_                                               TreeUtil.extractPlid(tree.dragNode),_                                           TreeUtil.extractPlid(tree.dropNode),_
                                      index_                                  );_                         },_                         dropInsert: function(event) {_                                  var tree = event.tree;__                                        var index = tree.dragNode.get('parentNode').
      indexOf(tree.dragNode);__                                       TreeUtil.updateLayoutParent(_                                   TreeUtil.extractPlid(tree.dragNode),_                                           TreeUtil.extractPlid(tree.dropNode.get('parentNode')),_
      index_                                  );_                             }_                      },_             type: 'pages'_          }_      ).render();__   __      A.one('#' + treeElId).setData('treeInstance', treeview);__      _               var History = Liferay.HistoryManager;__         var
      DEFAULT_PLID = '0';__           var HISTORY_SELECTED_PLID = '_156_selPlid';__           var layoutsContainer = A.one('#_156_layoutsContainer');__               treeview.after(_                        'lastSelectedChange',_                  function(event) {_                              var node = e
      vent.newVal;__                          var plid = TreeUtil.extractPlid(node);__                        var currentValue = History.get(HISTORY_SELECTED_PLID);__                                if (plid != currentValue) {_                                    if ((plid == DEFAULT_PLID) && Lang.isValue(c
      urrentValue)) {_                                                plid = null;_                           }__                                     History.add(_                                           {_                                                      '_156_selPlid': plid_
                      }_                                      );_                             }_              }_              );__            function compareItemId(item, id) {_                     return (TreeUtil.extractPlid(item) == id);_             }__             function findNodeByPlid(node, plid)
      {_                      var foundItem = null;__                 if (node) {_                        if (compareItemId(node, plid)) {_                                   foundItem = node;_                              }_                      }__                     if (!foundItem) {_
              var children = (node || treeview).get(STR_CHILDREN);__                          var length = children.length;__                         for (var i = 0; i < length; i++) {_                                     var item = children[i];__                                       if (item.isLeaf()) {
      _                                               if (compareItemId(item, plid)) {_                                               foundItem = item;_                                              }_                                      }_                                      else {_
                      foundItem = findNodeByPlid(item, plid);_                                        }__                             if (foundItem) {_                                               break;_                                 }_                              }_                      }__
              return foundItem;_              }__             History.after(_                 'stateChange',_                 function(event) {_                              var nodePlid = event.newVal[HISTORY_SELECTED_PLID];__                           if (Lang.isValue(nodePlid)) {_
              var node = findNodeByPlid(null, nodePlid);__                                    if (node) {_                                            var lastSelected = treeview.get('lastSelected');__                                              if (lastSelected) {_
              lastSelected.unselect();_                                               }__                                     node.select();__                                                var io = layoutsContainer.io;__                                         var uri = Lang.sub(_
                              LAYOUT_URL,_                                                    {_                                                      historyKey: '',_                                                                selPlid: nodePlid_                                                      }_
                                              );__                                            io.set('uri', uri);__                                           io.start();_                                    }_                              }_                      }_              );_     _})();(function() {_
                      new A.CharCounter(_                     {_                              input: '#_156_addLayoutName',_                          maxLength: 4000_                        }_              );_     })();(function() {_             var defaultLanguageId = themeDisplay.getDefaultLanguageId();
      __              var available = {};__           __                      available['zh_CN'] = 'Chinese (China)';__               __                      available['en_US'] = 'English (United States)';__               __                      available['fr_CA'] = 'French (Canada)';__               __
                      available['de_DE'] = 'German (Germany)';__              __                      available['hu_HU'] = 'Hungarian (Hungary)';__           __                      available['pt_BR'] = 'Portuguese (Brazil)';__           __                      available['es_ES'] = 'Spanish (Spain)';__
              __              var availableLanguageIds = A.Array.dedupe(_                     [defaultLanguageId].concat(A.Object.keys(available))_           );__            Liferay.InputLocalized.register(_                       '_156_addLayoutName',_                  {_                              boun
      dingBox: '#_156_addLayoutNameBoundingBox',_                             columns: 20,_                   contentBox: '#_156_addLayoutNameContentBox',__                          __                              inputPlaceholder: '#_156_addLayoutName',_                               items: availableLang
      uageIds,_                               lazy: true,_                            name: '_156_name_',_                            namespace: '_156_addLayoutName_',_                              toggleSelection: false,_                                translatedLanguages: 'en_US'_                   }_
              );_     })();(function() {_     var panelSelectedPortletsEl = A.one('#_156_panelSelectedPortlets');__   var selectedPortlets = A.Array.hash(panelSelectedPortletsEl.val().split(','));__        var TreeUtil = {_               formatJSONResults: function(json) {_                    var output =
       [];__                  A.each(_                                json.children.list,_                    function(item, index, collection) {_                                    var childPortlets = [];_                                        var total = 0;__                                        var
      nodeChildren = item.children;_                                  var plid = item.objId;__                                var checked = plid && (plid in selectedPortlets);__                                     if (nodeChildren) {_                                            childPortlets = nodeChildren
      .list;_                                         total = childPortlets.length;_                          }__                                     var newNode = {_                                                after: {_                                                       checkedChange: function(even
      t) {_                                                           if (plid) {_                                                            if (event.newVal) {_                                                                            selectedPortlets[plid] = true;_
                              }_                                                                      else if (selectedPortlets[plid]) {_                                                                             delete selectedPortlets[plid];_
      }__                                                                     panelSelectedPortletsEl.val(A.Object.keys(selectedPortlets));_                                                          }_                                                      }_                                              },_
                                              alwaysShowHitArea: total,_                                      checked: checked,_                                              draggable: false,_                                              expanded: false,_                                               id:
      item.id,_                                               label: item.name,_                                      leaf: item.leaf,_                                               type: 'task'_                                   }__                                     if (nodeChildren) {_
                              newNode.children = TreeUtil.formatJSONResults(item);_                           }__                                     output.push(newNode);_                          }_                      );__                    return output;_         }_      };__    var initPanelSelectP
      ortlets = function(event) {__           __              var portletList = {"javaClass":"com.liferay.portal.kernel.util.TreeView","serializable":{"list":{"javaClass":"java.util.ArrayList","list":[{"id":1,"parentId":0,"ls":"","name":"Application","javaClass":"com.liferay.portal.kernel.util.TreeNodeVie
      w","img":"","objId":"","children":{"javaClass":"java.util.ArrayList","list":[{"id":2,"parentId":1,"ls":"0","name":"Collaboration","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.collaboration","children":{"javaClass":"java.util.ArrayList","list":[{"id":3,"p
      arentId":2,"ls":"0","name":"Blogs","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"33","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":4,"parentId":2,"ls":"0","name":"Blogs Aggregator","javaClass":"com.liferay.po
      rtal.kernel.util.TreeNodeView","img":"","objId":"115","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":5,"parentId":2,"ls":"0","name":"Message Boards","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"19","children"
      :{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":6,"parentId":2,"ls":"0","name":"Recent Bloggers","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"114","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"hr
      ef":"javascript:;","depth":2},{"id":7,"parentId":2,"ls":"1","name":"Wiki","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"36","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth"
      :1},{"id":8,"parentId":1,"ls":"0","name":"Community","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.community","children":{"javaClass":"java.util.ArrayList","list":[{"id":9,"parentId":8,"ls":"0","name":"Bookmarks","javaClass":"com.liferay.portal.kernel.uti
      l.TreeNodeView","img":"","objId":"28","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":10,"parentId":8,"ls":"0","name":"Friends Directory","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"186","children":{"javaClas
      s":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":11,"parentId":8,"ls":"0","name":"Invitation","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"100","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript
      :;","depth":2},{"id":12,"parentId":8,"ls":"0","name":"My Sites","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"29","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":13,"parentId":8,"ls":"0","name":"My Sites Direct
      ory","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"188","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":14,"parentId":8,"ls":"0","name":"Page Comments","javaClass":"com.liferay.portal.kernel.util.TreeNodeView",
      "img":"","objId":"107","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":15,"parentId":8,"ls":"0","name":"Page Flags","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"143","children":{"javaClass":"java.util.ArrayLis
      t","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":16,"parentId":8,"ls":"0","name":"Page Ratings","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"108","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id"
      :17,"parentId":8,"ls":"0","name":"Portal Directory","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"11","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":18,"parentId":8,"ls":"1","name":"Site Members Directory","ja
      vaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"187","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth":1},{"id":19,"parentId":1,"ls":"0","name":"Content Management","javaClass":"
      com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.cms","children":{"javaClass":"java.util.ArrayList","list":[{"id":20,"parentId":19,"ls":"0","name":"Documents and Media","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"20","children":{"javaClass
      ":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":21,"parentId":19,"ls":"0","name":"Recent Downloads","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"64","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javas
      cript:;","depth":2},{"id":22,"parentId":19,"ls":"1","name":"Web Content Search","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"77","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","
      depth":1},{"id":23,"parentId":1,"ls":"0","name":"Entertainment","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.entertainment","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":false,"href":"javascript:;","depth":1},{"id":24,"parentId":1,"ls":
      "0","name":"Finance","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.finance","children":{"javaClass":"java.util.ArrayList","list":[{"id":25,"parentId":24,"ls":"0","name":"Currency Converter","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"
      ","objId":"16","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":26,"parentId":24,"ls":"1","name":"Loan Calculator","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"61","children":{"javaClass":"java.util.ArrayList",
      "list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth":1},{"id":27,"parentId":1,"ls":"0","name":"News","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.news","children":{"javaClass":"java.util.ArrayList","list":[
      {"id":28,"parentId":27,"ls":"0","name":"Alerts","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"83","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":29,"parentId":27,"ls":"1","name":"Announcements","javaClass":"co
      m.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"84","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth":1},{"id":30,"parentId":1,"ls":"0","name":"Sample","javaClass":"com.liferay.portal.kernel
      .util.TreeNodeView","img":"","objId":"root//category.sample","children":{"javaClass":"java.util.ArrayList","list":[{"id":31,"parentId":30,"ls":"0","name":"Hello World","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"47","children":{"javaClass":"java.util.ArrayList","list"
      :[]},"leaf":true,"href":"javascript:;","depth":2},{"id":32,"parentId":30,"ls":"1","name":"Hello Velocity","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"50","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":fal
      se,"href":"javascript:;","depth":1},{"id":33,"parentId":1,"ls":"0","name":"Shopping","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.shopping","children":{"javaClass":"java.util.ArrayList","list":[{"id":34,"parentId":33,"ls":"0","name":"Amazon Rankings","ja
      vaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"67","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":35,"parentId":33,"ls":"1","name":"Shopping","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","obj
      Id":"34","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth":1},{"id":36,"parentId":1,"ls":"0","name":"Social","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.soc
      ial","children":{"javaClass":"java.util.ArrayList","list":[{"id":37,"parentId":36,"ls":"0","name":"Activities","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"116","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":
      38,"parentId":36,"ls":"0","name":"Group Statistics","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"181","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":39,"parentId":36,"ls":"0","name":"Requests","javaClass":"co
      m.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"121","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":40,"parentId":36,"ls":"1","name":"User Statistics","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":
      "180","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth":1},{"id":41,"parentId":1,"ls":"0","name":"Tools","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.tools",
      "children":{"javaClass":"java.util.ArrayList","list":[{"id":42,"parentId":41,"ls":"0","name":"Dictionary","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"23","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":43,"pa
      rentId":41,"ls":"0","name":"Language","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"82","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":44,"parentId":41,"ls":"0","name":"Network Utilities","javaClass":"com.life
      ray.portal.kernel.util.TreeNodeView","img":"","objId":"30","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":45,"parentId":41,"ls":"0","name":"Password Generator","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"70"
      ,"children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":46,"parentId":41,"ls":"0","name":"Search","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"3","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"
      href":"javascript:;","depth":2},{"id":47,"parentId":41,"ls":"0","name":"Sign In","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"58","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":48,"parentId":41,"ls":"0","name
      ":"Translator","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"26","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":49,"parentId":41,"ls":"1","name":"Unit Converter","javaClass":"com.liferay.portal.kernel.util.Tre
      eNodeView","img":"","objId":"27","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth":1},{"id":50,"parentId":1,"ls":"0","name":"Undefined","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"",
      "objId":"root//category.undefined","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":false,"href":"javascript:;","depth":1},{"id":51,"parentId":1,"ls":"0","name":"Wiki","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.wiki","children":{"javaCla
      ss":"java.util.ArrayList","list":[{"id":52,"parentId":51,"ls":"1","name":"Wiki","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"36","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","
      depth":1}]},"leaf":false,"href":"javascript:;","depth":0}]},"depth":1}}.serializable.list.list[0];__            var rootNode = {_                       alwaysShowHitArea: true,_                       children: TreeUtil.formatJSONResults(portletList),_                     draggable: false,_
              expanded: true,_                        id: '_156_selectPortletsRootNode',_                 label: portletList.name,_                   leaf: false,_                   type: 'task'_           };__            var treeview = new A.TreeView(_                 {_                              afte
      r: {_                                   render: function() {_                                       A.one('#_156_selectPortletsTreeLoading').hide();_                                   }_                              },_                             boundingBox: '#_156_selectPortletsTree',_
                      children: [rootNode],_                          type: 'file'_                   }_      ).render();__           initPanelSelectPortlets = A.Lang.emptyFn;_      };__    _               initPanelSelectPortlets();_     __      Liferay.on(_            '_156_toggleLayoutTypeFields',_
      function(event) {_                      if (event.type == 'panel') {_                           initPanelSelectPortlets();_                     }_              }_      );_})();(function() {_  Liferay.Form.register(_         {_                      id: '_156_addPageFm'__                  _
                      , fieldRules: [__                                       __                                              __                                                      {_                                                              body: '',_
              custom: false,_                                                         errorMessage: '',_                                                      fieldName: '_156_name',_                                                                validatorName: 'required'_
                      }__                                     __                              ]_              __                      _                               , onSubmit: function(event) {_                                  event.preventDefault()_                         }_                      _
              }_      );_})();(function() {_  new Liferay.Dockbar.AddPage(_           {_                  createPageMessage: 'Loading',_                      focusItem: A.one('#_156_addLayoutName'),_                       namespace: '_156_',_                    nodeList: A.one('#_156_templateList'),_
              nodeSelector: '.lfr-page-template',_                    parentLayoutId: 0,_                 refresh: true,_                     selected: !A.one('#_156_addPageFm').ancestor().hasClass('hide'),_                       toggleOnCancel: false_          }_      );_})();(function() {_
              A.one('#Z4nX').delegate(_                                       'click',_                               function(event) {_                                              var btnNavbar = event.currentTarget;__                                          var navId = btnNavbar.attr('data-navId');__
                                              var navbarCollapse = A.one('#' + navId + 'NavbarCollapse');__                                           if (navbarCollapse) {_                                                  var handle = Liferay.Data['Z4nXHandle'];__
              if (navbarCollapse.hasClass('open') && handle) {_                                                       handle.detach();__                                                              handle = null;_                                                 }_
              else {_                                                         handle = navbarCollapse.on(_                                                                    'mousedownoutside',_                                                                    function(event) {_
                                                      if (!btnNavbar.contains(event.target)) {_                                                                               Liferay.Data['Z4nXHandle'] = null;__                                                                                    handle.detac
      h();__                                                                                  navbarCollapse.removeClass('open');_                                                                            }_                                                                      }_
                                      );_                                                     }__                                             navbarCollapse.toggleClass('open');__                                                   Liferay.Data['Z4nXHandle'] = handle;_
      }_                                      },_                                     '.btn-navbar'_                  );_                     })();(function() {_     var togglerDelegate;__  Liferay.component(_             '_156_regularlayoutsAdminLookAndFeelColorsPanel',_              function() {_
              if (!togglerDelegate) {_                                togglerDelegate = new A.TogglerDelegate(_                                       {_                                              animated: true,_                                                closeAllOnExpand: false,_
                              container: '#regularlayoutsAdminLookAndFeelColorsPanel',_                                       content: '.toggler-content',_                                           header: '.toggler-header',_                                             on: {_
                      'toggler:expandedChange': function(event) {_                                                    var header = event.target.get('header');__                                                              var persistId = header.getData('persist-id');__
                      if (persistId && !event.silent) {_                                                              var data = {};__                                                                        data[persistId] = event.newVal ? 'open' : 'closed';__
                      Liferay.Store(data);_                                                           }_                                              }_                                              },_                                             transition: {_
      duration: .3_                                           }_                                      }_                      );_                     }__                     return togglerDelegate;_                }_      );__    Liferay.component('_156_regularlayoutsAdminLookAndFeelColorsPanel');_})();(f
      unction() {_    var togglerDelegate;__  Liferay.component(_             '_156_regularlayoutsAdminLookAndFeelSettingsPanel',_            function() {_                   if (!togglerDelegate) {_                                togglerDelegate = new A.TogglerDelegate(_
      {_                                              animated: true,_                                        closeAllOnExpand: false,_                                               container: '#regularlayoutsAdminLookAndFeelSettingsPanel',_                                             content: '.toggler-c
      ontent',_                                               header: '.toggler-header',_                                     on: {_                                                  'toggler:expandedChange': function(event) {_                                                            var header = event.t
      arget.get('header');__                                                          var persistId = header.getData('persist-id');__                                                         if (persistId && !event.silent) {_                                                                      var data = {
      };__                                                                    data[persistId] = event.newVal ? 'open' : 'closed';__                                                                   Liferay.Store(data);_                                                           }_
                              }_                                              },_                                     transition: {_                                                  duration: .3_                                           }_                                      }_
      );_                     }__                     return togglerDelegate;_                }_      );__    Liferay.component('_156_regularlayoutsAdminLookAndFeelSettingsPanel');_})();(function() {_              var availableThemes = A.one('#regularavailableThemes');_                var colorSchemePanel
       = A.one('#regularlayoutsAdminLookAndFeelColorsPanel');_                var lookAndFeelForm = A.one('#regularLookAndFeel');__           var toggleDisabled = function(disabled) {_                      colorSchemePanel.all('input[name=_156_regularColorSchemeId]').set('disabled', disabled);_
      };__            if (colorSchemePanel) {_                        if (availableThemes) {_                 availableThemes.all('input[name=_156_regularThemeId]').on(_                                     'change',_                                      function() {_
      toggleDisabled(true);_                                  }_                              );_             }__                     lookAndFeelForm.one('#_156_regularSelTheme').on(_                               'change',_                              function() {_                                   togg
      leDisabled(false);_                             }_                      );_             }_      })();(function() {_             if (window.parent) {_                   var installMoreLink = A.one('#_156_installMore');__                     if (installMoreLink) {_                         installMoreL
      ink.on(_                                        'click',_                                       function(event) {_                                              event.preventDefault();__                                               window.parent.location = installMoreLink.attr('href');_
                      }_                              );_                     }_              }_      })();(function() {_     var deleteLogoLink = A.one('#_156_deleteLogoLink');_    var useLogoInput = A.one('#_156_useLogo');_     var logoContainer = A.one('#_156_logoContainer');_      var logoFileNameInpu
      t = A.one('#_156_logoFileName');__      var changeLogo = function(event) {_             var changeLogo = (event.type == 'change');__            if (useLogoInput) {_                    useLogoInput.val(changeLogo);_          }__             if (logoContainer) {_                   logoContainer.hide()
      ;_              }_      };__    if (deleteLogoLink) {_          deleteLogoLink.on('click', changeLogo);_        }__     if (logoFileNameInput) {_               logoFileNameInput.on('change', changeLogo);_    }_})();(function() {_   var config = {_         dialog: {_                      width: 820_
              }_      };__    var saveInstance = A.one('#_156_saveInstance');__       if (saveInstance) {_            saveInstance.on(_                       'click',_                       function(event) {_                              config.dialog.title = '\u0044\u0065\u0076\u0069\u0063\u0065\u0020\u0
      046\u0061\u006d\u0069\u006c\u0069\u0065\u0073';__                               config.id = '_156_ruleGroups';_                         config.uri = 'http://localhost:8080/group/control_panel/manage?p_p_auth=s4ADsLyT&p_p_id=178&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&doAsGroupId=10184&referer
      Plid=10187&controlPanelCategory=current_site.pages&_178_groupId=10184&_178_chooseCallback=_156_saveRuleGroupInstance&_178_classPK=10186&_178_className=com.liferay.portal.model.LayoutSet&_178_struts_action=%2Fmobile_device_rules%2Fview';__                          Liferay.Util.openWindow(config);_
                      }_              );_     }__     var managePriorities = A.one('#_156_managePriorities');__       if (managePriorities) {_                managePriorities.on(_                   'click',_                       function(event) {_                              config.dialog.title = '\u005
      2\u0075\u006c\u0065\u0020\u0050\u0072\u0069\u006f\u0072\u0069\u0074\u0069\u0065\u0073';__                       config.id = '_156_ruleGroupsPriorities';_                               config.uri = 'http://localhost:8080/group/control_panel/manage?p_p_auth=s4ADsLyT&p_p_id=178&p_p_lifecycle=0&p_p_stat
      e=pop_up&p_p_mode=view&doAsGroupId=10184&refererPlid=10187&controlPanelCategory=current_site.pages&_178_groupId=10184&_178_saveCallback=_156_saveRuleGroupsPriorities&_178_classPK=10186&_178_className=com.liferay.portal.model.LayoutSet&_178_struts_action=%2Fmobile_device_rules%2Fedit_rule_group_insta
      nce';__                         Liferay.Util.openWindow(config);_                       }_          );_ }_})();(function() {_           new Liferay.SearchContainer(_                   {_                              classNameHover: 'hover',_                               hover: false,_
              id: '_156_mdrRuleGroupInstancesSearchContainer',_                               rowClassNameAlternate: '',_                             rowClassNameAlternateHover: '-hover',_                          rowClassNameBody: '',_                          rowClassNameBodyHover: ''_
      }_              ).render();_    })();(function() {_                             var formNode = A.one('#_156_fm');__                             var tabview = new A.TabView(_                                   {_                                              boundingBox: '#_156_tabsBoundingBox',_
                                      srcNode: '#_156_tabs',_                                         type: 'list'_                                   }_                              ).render();__                           var history = new A.HistoryHash();__                            function selectTabBy
      SectionId(sectionId) {_                                 var instance = this;__                          var tab = A.Widget.getByNode('#' + sectionId + 'Tab');__                                        var tabIndex = tabview.indexOf(tab);__                                  if (tab && (tabIndex > -1))
      {_                                              tabview.selectChild(tabIndex);_                         }__                                     updateRedirectForSectionId(sectionId);__                                        Liferay.fire('formNavigator:reveal' + sectionId);_
      };__                            function updateSectionStatus() {_                                   var tabNode = tabview.get('selection').get('boundingBox');__                                        var sectionId = tabNode.getData('sectionId');__                                 var modifiedSections
      Node = A.one('#_156_modifiedSections');__                                       var modifiedSections = modifiedSectionsNode.val().split(',');__                                 modifiedSections.push(sectionId);_                                      modifiedSections = A.Array.dedupe(modifiedSections);
      _                                       modifiedSectionsNode.val(modifiedSections.join());__                            tabNode.addClass('section-modified');__                                 tabNode.toggleClass(_                                           'section-error',_
                      A.one('#' + sectionId).one('.error-field')_                                     );_                     }__                             function updateRedirectForSectionId(sectionId) {_                                       var redirect = A.one('#_156_redirect');__
                      if (redirect) {_                                                var url = new A.Url(redirect.val() || location.href);__                                         url.setAnchor(null);_                                           url.setParameter('_156_historyKey', sectionId);__
                                      redirect.val(url.toString());_                                  }_                      }__                             tabview.after(_                                 'selectionChange',_                                     function(event) {_
                      var tab = event.newVal__                                                var boundingBox = tab.get('boundingBox');__                                             var sectionId = boundingBox.getData('sectionId');__                                             history.addValue('_156_tab',
       sectionId);_                                   }_                              );__                    A.on(_                                  'history:change',_                                      function(event) {_                                              var state = event.newVal;__
                                      var changed = event.changed._156_tab;__                                 var removed = event.removed._156_tab;__                                         if (event.src === A.HistoryHash.SRC_HASH || event.src === A.HistoryBase.SRC_ADD) {_
                      if (changed) {_                                                         selectTabBySectionId(changed.newVal);_                                                  }_                                                      else if (removed) {_
              tabview.selectChild(0);_                                                        }_                                              else if (state) {_                                                              var sectionId = state._156_tab;__
              if (!sectionId) {_                                                                      sectionId = '_156_' + state.tab;_                                                               }__                                                             selectTabBySectionId(sectionId);_
                                              }_                                              }_                              }_                              );__                            if (formNode) {_                                        formNode.all('.modify-link').on('click', updateSectionStatus
      );__                                    formNode.delegate('change', updateSectionStatus, 'input, select, textarea');_                           }__                             var currentUrl = new A.Url(location.href);__                            var currentAnchor = currentUrl.getAnchor();__
                      if (!currentAnchor) {_                                  currentAnchor = currentUrl.getParameter('_156_historyKey');_                            }__                             if (currentAnchor) {_                                   var locationSectionId = currentAnchor.substring(curr
      entAnchor.indexOf('=') + 1);__                                  if (locationSectionId.indexOf('_156_') === -1) {_                                               locationSectionId = '_156_' + locationSectionId;_                                       }__                                     selectTabByS
      ectionId(locationSectionId);_                           }__                             if (false) {_                                   Liferay.fire('formNavigator:reveal_156_null');_                         }_                      })();(function() {_     Liferay.Form.register(_         {_
              id: '_156_fm'__                 _                               , fieldRules: [__                               __                              ]_                      __                      _                               , onSubmit: function(event) {_                                  even
      t.preventDefault(); _156_saveLayoutset();_                              }_                      _       }_      );_})();(function() {_  var popup;__    var clickHandler = function(event) {_           var dataValue = event.target.ancestor('li').attr('data-value');__               if (dataValue === 'a
      dd-page' || dataValue === 'add-child-page') {_                  var content = A.one('#_156_addLayout');__                       if (!popup) {_                          popup = Liferay.Util.Window.getWindow(_                                 {_                                              dialog: {_
                                                      bodyContent: content.show(),_                                           cssClass: 'lfr-add-dialog',_                                                    width: 600_                                             },_
      title: '\u0041\u0064\u0064\u0020\u0050\u0061\u0067\u0065'_                                      }_                      );_                     }__                     popup.show();__                 var cancelButton = popup.get('contentBox').one('#_156_cancelAddOperation');__                   if (
      cancelButton) {_                                cancelButton.on(_                                   'click',_                                   function(event) {_                                              popup.hide();_                                  }_                              );_
              }__                     Liferay.Util.focusFormField(content.one('input:text'));_            }_          else if (dataValue === 'view-pages') {_                 _                               _                               _                               _                       __
              window.open('http://localhost:8080/group/control_panel/manage?p_p_auth=htRBZ1yn&p_p_id=49&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&doAsGroupId=10184&refererPlid=10187&controlPanelCategory=current_site.pages&_49_groupId=10184&_49_struts_action=%2Fmy_sites%2Fview&_49_privateLayout=fal
      se').focus();_          }_              else if (dataValue === 'import') {_                     _                       _                               _                               _                               _                               _                               _
      __                      Liferay.Util.openWindow(_                               {_                              id: '_156_importDialog',_                                       title: '\u0049\u006d\u0070\u006f\u0072\u0074',_                                 uri: 'http://localhost:8080/group/control_pa
      nel/manage?p_p_auth=EdKtr8Z9&p_p_id=156&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&doAsGroupId=10184&refererPlid=10187&controlPanelCategory=current_site.pages&_156_rootNodeName=Public+Pages&_156_groupId=10184&_156_cmd=validate&_156_struts_action=%2Fgroup_pages%2Fimport_layouts&_156_liveGroupId=1
      0184&_156_privateLayout=false'_                         }_                      );_             }_      else if (dataValue === 'export') {_                     _                               _                               _                               _                               _
                      _                               _                       __                      Liferay.Util.openWindow(_                               {_                                      id: '_156_exportDialog',_                                       title: '\u0045\u0078\u0070\u006f\u0072\u0074
      ',_                                     uri: 'http://localhost:8080/group/control_panel/manage?p_p_auth=EdKtr8Z9&p_p_id=156&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&doAsGroupId=10184&refererPlid=10187&controlPanelCategory=current_site.pages&_156_rootNodeName=Public+Pages&_156_groupId=10184&_15
      6_cmd=export&_156_struts_action=%2Fgroup_pages%2Fexport_layouts&_156_liveGroupId=10184&_156_privateLayout=false'_                               }_                      );_             }_      };__    A.one('#_156_layoutsNav').delegate('click', clickHandler, 'li a');_})();(function() {_          var
      layoutsContainer = A.one('#_156_layoutsContainer');__           layoutsContainer.plug(_             A.Plugin.IO,_                       {_                              autoLoad: false_                        }_              );__            A.one('#_156_layoutsTreeOutput').delegate(_
      'click',_                       function(event) {_                              event.preventDefault();__                               var link = event.currentTarget.one('a');__                              if (link && !event.target.hasClass('tree-hitarea')) {_                                  var
      href = link.attr('href');__                                     var hash = location.hash;__                             var prefix = '#_LFR_FN__156_';_                                 var historyKey = '';__                                  if (hash.indexOf(prefix) != -1) {_
                      historyKey = hash.replace(prefix, '');_                                 }__                             var requestUri = A.Lang.sub(_                                           href,_                                          {_                                                      hist
      oryKey: historyKey_                                             }_                                  );__                                        layoutsContainer.io.set('uri', requestUri);__                                   if (layoutsContainer.ParseContent) {_
      layoutsContainer.ParseContent.get('queue').stop();_                                     }__                             layoutsContainer.io.start();_                           }_                      },_                     '.tree-node-content'_           );_     })();(function() {_     var togglerD
      elegate;__      Liferay.component(_             '_160_controlPanelMenuAddContentPanelContainer',_       function() {_                   if (!togglerDelegate) {_                                togglerDelegate = new A.TogglerDelegate(_                                       {_
                      animated: true,_                                                closeAllOnExpand: true,_                                                container: '#controlPanelMenuAddContentPanelContainer',_                                                content: '.toggler-content',_
                              header: '.toggler-header',_                                             on: {_                                                  'toggler:expandedChange': function(event) {_                                                            var header = event.target.get('header');__
                                                              var persistId = header.getData('persist-id');__                                                         if (persistId && !event.silent) {_                                                                      var data = {};__
                                                      data[persistId] = event.newVal ? 'open' : 'closed';__                                                                   Liferay.Store(data);_                                                           }_
      }_                                              },_                                             transition: {_                                                  duration: .3_                                           }_                                      }_                              );_
              }__                     return togglerDelegate;_                }_      );__    Liferay.component('_160_controlPanelMenuAddContentPanelContainer');_})();(function() {_ Liferay.Util.addInputType();__  Liferay.Portlet.ready(_         function(portletId, node) {_                    Liferay.Util
      .addInputType(node);_           }_      );__    if (A.UA.mobile) {_             Liferay.Util.addInputCancel();_ }_})();(function() {_   new Liferay.Menu();__   var liferayNotices = Liferay.Data.notices;__    for (var i = 1; i < liferayNotices.length; i++) {_              new Liferay.Notice(liferayNo
      tices[i]);_     }__     _               Liferay.Poller.init(_                   {_                      encryptedUserId: 'ZSre28tYsWRdHkXrjR7t6A==',_                           supportsComet: false_                   }_              );_     _})();(function() {Liferay.Menu.register('_145_controlPanelS
      iteSelector');})();(function() {_                               A.Event.defineOutside('touchend');__                            var container = A.one('#_145_adminLinks');__                            container.one('a').on(_                                 'gesturemovestart',_
              function(event) {_                                              var currentTarget = event.currentTarget;__                                              currentTarget.once(_                                                    'gesturemoveend',_
      function(event) {_                                                              var eventOutside = event._event.type + 'outside';__                                                             container.toggleClass('open');__                                                                var menuOpen
       = container.hasClass('open');__                                                                var handle = Liferay.Data['_145_adminLinksHandle'];__                                                           if (menuOpen && !handle) {_
      handle = currentTarget.on(_                                                                         eventOutside,_                                                                              function(event) {_                                                                                      if (
      !event.target.ancestor('#_145_adminLinks')) {_                                                                                  Liferay.Data['_145_adminLinksHandle'] = null;__                                                                                         handle.detach();__
                                                                              container.removeClass('open');_                                                                                 }_                                                                              }_
                                      );_                                                             }_                                                      else if (handle) {_                                                                     handle.detach();__
                              handle = null;_                                                         }__                                                     Liferay.Data['_145_adminLinksHandle'] = handle;_                                                        }_
      );_                                     }_                              );_                     })();(function() {_                             A.Event.defineOutside('touchend');__                            var container = A.one('#_145_mySites');__                               container.one('a').o
      n(_                                     'gesturemovestart',_                                    function(event) {_                                              var currentTarget = event.currentTarget;__                                              currentTarget.once(_
                      'gesturemoveend',_                                                      function(event) {_                                                              var eventOutside = event._event.type + 'outside';__                                                             container.toggleClas
      s('open');__                                                            var menuOpen = container.hasClass('open');__                                                            var handle = Liferay.Data['_145_mySitesHandle'];__                                                              if (menuOpen
       && !handle) {_                                                                 handle = currentTarget.on(_                                                                             eventOutside,_                                                                          function(event) {_
                                                                              if (!event.target.ancestor('#_145_mySites')) {_                                                                                         Liferay.Data['_145_mySitesHandle'] = null;__
                                              handle.detach();__                                                                                      container.removeClass('open');_                                                                                 }_
                                      }_                                                                  );_                                                         }_                                                              else if (handle) {_
              handle.detach();__                                                                      handle = null;_                                                         }__                                                             Liferay.Data['_145_mySitesHandle'] = handle;_
                              }_                                              );_                             }_                              );_                     })();(function() {_                             A.Event.defineOutside('touchend');__                            var container = A.one('#_145
      _userAvatar');__                                container.one('a').on(_                             'gesturemovestart',_                                        function(event) {_                                              var currentTarget = event.currentTarget;__
              currentTarget.once(_                                                    'gesturemoveend',_                                              function(event) {_                                                              var eventOutside = event._event.type + 'outside';__
                                      container.toggleClass('open');__                                                        var menuOpen = container.hasClass('open');__                                                            var handle = Liferay.Data['_145_userAvatarHandle'];__
                                      if (menuOpen && !handle) {_                                                             handle = currentTarget.on(_                                                                             eventOutside,_
              function(event) {_                                                                              if (!event.target.ancestor('#_145_userAvatar')) {_                                                                                              Liferay.Data['_145_userAvatarHandle'] = null;__
                                                                                      handle.detach();__                                                                                      container.removeClass('open');_                                                                                 }_
                                                                              }_                                                              );_                                                             }_                                                              else if (handle) {_
                                                      handle.detach();__                                                              handle = null;_                                                         }__                                                             Liferay.Data['_145_userAvatarHandle'
      ] = handle;_                                                    }_                                      );_                                     }_                              );_                     })();(function() {_                             A.one('#_145_dockbar').delegate(_
                      'click',_                                       function(event) {_                                      var btnNavbar = event.currentTarget;__                                          var navId = btnNavbar.attr('data-navId');__                                             var navbarCo
      llapse = A.one('#' + navId + 'NavbarCollapse');__                                               if (navbarCollapse) {_                                                  var handle = Liferay.Data['_145_dockbarHandle'];__                                                      if (navbarCollapse.hasClass(
      'open') && handle) {_                                                           handle.detach();__                                                      handle = null;_                                                 }_                                                      else {_
                                      handle = navbarCollapse.on(_                                                            'mousedownoutside',_                                                                    function(event) {_
      if (!btnNavbar.contains(event.target)) {_                                                                               Liferay.Data['_145_dockbarHandle'] = null;__                                                                                    handle.detach();__
                                                      navbarCollapse.removeClass('open');_                                                                    }_                                                                      }_                                                              );_
                                              }__                                                     navbarCollapse.toggleClass('open');__                                                   Liferay.Data['_145_dockbarHandle'] = handle;_                                           }_
              },_                                     '.btn-navbar'_                          );_             })();});_// ]]>_ [Sanitized]
      20:04:19,979 ERROR [http-bio-8080-exec-8][MinifierUtil:87] JavaScript Minifier failed for__// <![CDATA[__               Liferay.Portal.Tabs.show("_156_tabs1", ['\u0070\u0075\u0062\u006c\u0069\u0063\u002d\u0070\u0061\u0067\u0065\u0073','\u0070\u0072\u0069\u0076\u0061\u0074\u0065\u002d\u0070\u0061\u00
      67\u0065\u0073'], "\u0070\u0075\u0062\u006c\u0069\u0063\u002d\u0070\u0061\u0067\u0065\u0073");_ _       Liferay.provide(_                       window,_                        '_156_regularselectColorScheme',_                       function(id) {_                         var A = AUI();__
                      var colorSchemeInput = A.one(id);__                             if (!colorSchemeInput.get('disabled')) {_                                       colorSchemeInput.set('checked', true);_                         }_                      },_                     ['aui-base']_           );__
                      Liferay.provide(_                       window,_                        '_156_regularselectTheme',_                     function(themeId, colorSchemesDisabled) {_                              var A = AUI();__                                A.one('#_156_regular' + themeId).set('checke
      d', true);__                            var colorSchemePanel = A.one('#regularlayoutsAdminLookAndFeelColorsPanel');__                           if (colorSchemePanel) {_                                        colorSchemePanel.all('input[name=_156_regularColorSchemeId]').set('disabled', colorSchemesDi
      sabled);_                               }_                      },_                     ['aui-base']_           );_     _       Liferay.provide(_               window,_                '_156_processDialog',_          function(dialog) {_                     var A = AUI();__                        if (
      dialog) {_                              if (Liferay.Util.getTop() == window) {_                         dialog.plug(A.LoadingMask).render();_                           }_                              else {_                                 dialog.hide();_                         }_
      }_              },_             ['aui-loading-mask-deprecated']_        );__    function _156_saveRuleGroupsPriorities(dialog) {_               _156_processDialog(dialog);_    }__     Liferay.provide(_               window,_                '_156_saveRuleGroupInstance',_          function(ruleGroupId
      , ruleGroupName, dialog) {_                     var A = AUI();__                        _156_processDialog(dialog);__                   Liferay.Service(_                               '/mdrrulegroupinstance/add-rule-group-instance',_                               {_
      groupId: 10184,_                                        className: 'com.liferay.portal.model.LayoutSet',_                                       classPK: 10186,_                                        ruleGroupId: ruleGroupId,_                                      serviceContext: A.JSON.stringify(_
                                              {_                                                      scopeGroupId: themeDisplay.getScopeGroupId(),_                                                  userId: themeDisplay.getUserId()_                                               }_
              )_                              },_                             function(response, xhr) {_                              window.location.reload();_                              }_                      );_             },_             ['aui-loading-mask-deprecated']_        );__    function _15
      6_mobileDeviceActionHandler(href) {_            if (false) {_                   _156_mobileDeviceOpenWindow(_                           {_                                      uri: href_                              }_                      );_             }_              else {_                 loca
      tion.href = href;_              }_      }__     function _156_mobileDeviceOpenWindow(config) {_     var data = AUI().mix(_                      config,_                        {_                              dialog: {_                                      width: 820_                             },_
                              title: Liferay.Language.get('javax.portlet.title.178')_                 }_      );__            Liferay.Util.openWindow(data);_ }__     function _156_saveLayoutset(action) {_          document._156_fm.encoding = 'multipart/form-data';__            if (action) {_
      document._156_fm._156_cmd.value = action;_              }_              else {_                 document._156_fm._156_cmd.value = 'update';_            }__             submitForm(document._156_fm);_  }__     function _156_updateLogo() {_           document._156_fm.encoding = 'multipart/form-data';_
              document._156_fm._156_cmd.value = 'logo';__             submitForm(document._156_fm);_  }__ function _156_updateRobots() {_             document._156_fm._156_cmd.value = 'robots';__           submitForm(document._156_fm);_  }__     Liferay.provide(_               window,_                '_15
      6_removePage',_         function(box) {_                        var A = AUI();__                    var selectEl = A.one(box);__                        var currentValue = selectEl.val() || null;__                    Liferay.Util.removeItem(box);_          },_             ['aui-base']_   );__    Life
      ray.provide(_           window,_                '_156_updateDisplayOrder',_             function() {_                   document._156_fm._156_cmd.value = 'display_order';_                     document._156_fm._156_layoutIds.value = Liferay.Util.listSelect(document._156_fm._156_layoutIdsBox);__
              submitForm(document._156_fm);_          },_             ['liferay-util-list-fields']_   );__    Liferay.provide(_               window,_                '_156_updateStaging',_          function() {_                   var A = AUI();__                        var selectEl = A.one('#_156_stagingT
      ype');__                        var currentValue = selectEl.val() || null;__                    var ok = false;__                       if (currentValue == 0) {_                               ok = confirm('\u0041\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0073\u0075\u0072\u0065\u0020\u0079\u006f\u00
      75\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0064\u0065\u0061\u0063\u0074\u0069\u0076\u0061\u0074\u0065\u0020\u0073\u0074\u0061\u0067\u0069\u006e\u0067\u0020\u0066\u006f\u0072\u0020\u004c\u0069\u0066\u0065\u0072\u0061\u0079\u003f');_                  }_                      else if (cur
      rentValue == 1) {_                              ok = confirm('\u0041\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0073\u0075\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0061\u0063\u0074\u0069\u0076\u0061\u0074\u0065\u0020\u006c\u006f\u0063\u0061\u006c\u00
      20\u0073\u0074\u0061\u0067\u0069\u006e\u0067\u0020\u0066\u006f\u0072\u0020\u004c\u0069\u0066\u0065\u0072\u0061\u0079\u003f');_                  }_                      else if (currentValue == 2) {_                          ok = confirm('\u0041\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0073\u0075\u
      0072\u0065\u0020\u0079\u006f\u0075\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0061\u0063\u0074\u0069\u0076\u0061\u0074\u0065\u0020\u0072\u0065\u006d\u006f\u0074\u0065\u0020\u0073\u0074\u0061\u0067\u0069\u006e\u0067\u0020\u0066\u006f\u0072\u0020\u004c\u0069\u0066\u0065\u0072\u0061\u0079\u
      003f');_                        }__                     if (ok) {_                              document._156_fm._156_cmd.value = 'staging';__                          submitForm(document._156_fm);_                  }_              },_             ['aui-base']_   );__                    Liferay.Port
      let.onLoad(_                            {_                                      canEditTitle: true,_                                    columnPos: 0,_                                  isStatic: 'end',_                                       namespacedId: 'p_p_id_156_',_
      portletId: '156',_                                      refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d10178\x26p_p_id\x3d156\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dmaximized\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x
      26p_p_isolated\x3d1\x26currentURL\x3d\x252Fgroup\x252Fcontrol_panel\x252Fmanage\x253Fp_p_id\x253D156\x2526p_p_lifecycle\x253D0\x2526p_p_state\x253Dmaximized\x2526p_p_mode\x253Dview\x2526doAsGroupId\x253D10184\x2526refererPlid\x253D10187\x2526controlPanelCategory\x253Dcurrent_site\x2epages\x26referer
      Plid\x3d10187\x26controlPanelCategory\x3dcurrent_site\x2epages\x26doAsGroupId\x3d10184'_                        }_                      );_             _                       Liferay.Portlet.onLoad(_                                {_                                      canEditTitle: true,_
                              columnPos: 0,_                                  isStatic: 'end',_                               namespacedId: 'p_p_id_160_',_                                   portletId: '160',_                                      refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d
      10178\x26p_p_id\x3d160\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fgroup\x252Fcontrol_panel\x252Fmanage\x253Fp_p_id\x253D156
      \x2526p_p_lifecycle\x253D0\x2526p_p_state\x253Dmaximized\x2526p_p_mode\x253Dview\x2526doAsGroupId\x253D10184\x2526refererPlid\x253D10187\x2526controlPanelCategory\x253Dcurrent_site\x2epages\x26refererPlid\x3d10187\x26controlPanelCategory\x3dcurrent_site\x2epages\x26doAsGroupId\x3d10184'_
                      }_                      );_             _                                           Liferay.delegateClick('_145_yvwr', Liferay.Util.openInDialog);_                                     _                       Liferay.Portlet.onLoad(_                                {_
                      canEditTitle: true,_                                    columnPos: 0,_                          isStatic: 'end',_                                       namespacedId: 'p_p_id_145_',_                                   portletId: '145',_                                      refreshURL:
      '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d10178\x26p_p_id\x3d145\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fgroup\x25
      2Fcontrol_panel\x252Fmanage\x253Fp_p_id\x253D156\x2526p_p_lifecycle\x253D0\x2526p_p_state\x253Dmaximized\x2526p_p_mode\x253Dview\x2526doAsGroupId\x253D10184\x2526refererPlid\x253D10187\x2526controlPanelCategory\x253Dcurrent_site\x2epages\x26refererPlid\x3d10187\x26controlPanelCategory\x3dcurrent_sit
      e\x2epages\x26doAsGroupId\x3d10184'_                            }_                      );_         AUI().use('aui-base', 'aui-char-counter', 'aui-event-input', 'aui-io-plugin-deprecated', 'aui-io-request', 'aui-tabview', 'aui-toggler', 'aui-tree-view', 'aui-url', 'dataschema-xml', 'datatype-xml', '
      event-move', 'event-outside', 'history', 'io-form', 'liferay-dockbar-add-page', 'liferay-form', 'liferay-history-manager', 'liferay-input-localized', 'liferay-menu', 'liferay-notice', 'liferay-poller', 'liferay-search-container', 'liferay-store', 'liferay-util-window', function(A) {(function() {_
      var Lang = A.Lang;_     var AArray = A.Array;__ var Util = Liferay.Util;__      var GET_LAYOUTS_URL = themeDisplay.getPathMain() + '/layouts_admin/get_layouts';__      var LAYOUT_URL = 'http://localhost:8080/group/control_panel/manage?p_p_auth=EdKtr8Z9&p_p_id=156&p_p_lifecycle=2&p_p_state=maximized&
      p_p_mode=view&p_p_cacheability=cacheLevelPage&doAsGroupId=10184&refererPlid=10187&controlPanelCategory=current_site.pages&_156_treeId=layoutsTree&_156_groupId=10184&_156_tabs1=public-pages&_156_viewLayout=true&_156_struts_action=%2Fgroup_pages%2Fedit_layouts&_156_selPlid={selPlid}&_156_historyKey={h
      istoryKey}';_   var STR_CHILDREN = 'children';__        var TREE_CSS_CLASSES = {_               pages: {_                       iconCheck: 'tree-icon icon-check',_                     iconCollapsed: 'icon-file',_                    iconExpanded: 'icon-file',_                     iconHitAreaCollapsed
      : 'tree-hitarea icon-plus',_                    iconHitAreaExpanded: 'tree-hitarea icon-minus',_                iconLeaf: 'icon-leaf',_                 iconLoading: 'icon-refresh',_                   iconUncheck: 'icon-check'_              }_      };__    __      var TreeUtil = {_               CHEC
      KED_NODES: [],_         DEFAULT_PARENT_LAYOUT_ID: 0,_           PAGINATION_LIMIT: 20,_          PREFIX_GROUP_ID: '_groupId_',_          PREFIX_LAYOUT: '_layout_',_             PREFIX_LAYOUT_ID: '_layoutId_',_                PREFIX_PLID: '_plid_',__                afterRenderTree: function(event) {_
                      var rootNode = event.target.item(0);__                  var loadingEl = A.one('#_156_treeLoadingwtmd');__                       loadingEl.hide();__                     _                               _                               _                                       rootNode.exp
      and();_                         _                       __                      TreeUtil.restoreSelectedNode(rootNode);__                       rootNode.eachChildren(TreeUtil.restoreSelectedNode);_           },__            createLabel: function(data) {_                  return '<span class="' + dat
      a.cssClass + '" title="' + data.title + '">' + data.label + '</span>';_         },__            createListItemId: function(groupId, layoutId, plid) {_                  return 'layoutsTree' + TreeUtil.PREFIX_LAYOUT_ID + layoutId + TreeUtil.PREFIX_PLID + plid + TreeUtil.PREFIX_GROUP_ID + groupId;_
              },__            createLinkId: function(friendlyURL) {_                  return 'layoutsTree' + TreeUtil.PREFIX_LAYOUT + friendlyURL.substring(1);_              },__            createLink: function(data) {_                   var className = 'layout-tree';__                        if (data.css
      Class) {_                               className += ' ' + data.cssClass;_                      }__             if (false && !data.contentDisplayPage) {_                               className += ' layout-page-invalid';_                   }__                     var href = Lang.sub(_
              LAYOUT_URL,_                            {_                                      historyKey: data.historyKey,_                                   selPlid: data.plid_                             }_                      );__                    return '<a class="' + className + '" data-uuid="' +
      data.uuid + '" href="' + href + '" id="' + data.id + '" title="' + data.title + '">' + data.label + '</a>';_            },__            extractGroupId: function(node) {_                       return node.get('id').match(/groupId_(\d+)/)[1];_               },__            extractLayoutId: function(no
      de) {_                  return node.get('id').match(/layoutId_(\d+)/)[1];_              },__        extractPlid: function(node) {_                      return node.get('id').match(/plid_(\d+)/)[1];_          },__            formatJSONResults: function(json) {_                    var output = [];__
                      A.each(_                                json.layouts,_                          function(node) {_                                       var childLayouts = [];_                                 var cssIcons = {};_                                     var total = 0;__
                      var iconClassName = 'icon-link';__                                      var hasChildren = node.hasChildren;_                                    var nodeChildren = node.children;_                                      var nodeType = node.type;__                                     if (
      (nodeType === 'embedded') ||_                                           (nodeType === 'link_to_layout') ||_                                             (nodeType === 'url')) {__                                               cssIcons.pages: {_                                                      icon
      Collapsed: iconClassName,_                                                      iconExpanded: iconClassName,_                                                   iconLeaf: iconClassName_                                                };_                                     }__
              if (nodeChildren) {_                                            childLayouts = nodeChildren.layouts;_                                           total = nodeChildren.total;_                                    }__                                     var expanded = (total > 0);__
                      var newNode = {_                                                _                                               after: {_                                                               __                                                              childrenChange: function(event) {_
                                                                      var target = event.target;__                                                            target.set('alwaysShowHitArea', event.newVal.length > 0);__                                                                     target.eachChildren(
      TreeUtil.restoreSelectedNode);__                                                                    _                                                           },__                                                            expandedChange: function(event) {_
                              var layoutId = TreeUtil.extractLayoutId(event.target);__                                                                TreeUtil.updateSessionTreeOpenedState('layoutsTree', layoutId, event.newVal);_                                                          }_
                                      },_                                             __                                      alwaysShowHitArea: hasChildren,__                                               __                                              cssClasses: A.merge(TREE_CSS_CLASSES, cssIcons),_
                                              draggable: node.sortable,_                                      expanded: expanded,_                                            id: TreeUtil.createListItemId(node.groupId, node.layoutId, node.plid),_                                         io: {_
                                      cfg: {_                                                         data: function(node) {_                                                                 return {_                                                                               groupId: TreeUtil.extractGro
      upId(node),_                                                                            incomplete: true,_                                                                              p_auth: Liferay.authToken,_                                                                             parentLayout
      Id: TreeUtil.extractLayoutId(node),_                                                                    privateLayout: false,_                                                                          selPlid: '0',_                                                                          treeId: 'lay
      outsTree'_                                                                      };_                                                     },_                                                             method: A.config.io.method,_                                                            on: {_
                                                              success: function(event, id, xhr) {_                                                                    var instance = this;__                                                                          var response;__
                                              try {_                                                                          response = A.JSON.parse(xhr.responseText);_                                                                             }_
                      catch (e) {_                                                                        }__                                                                         if (response) {_                                                                                        instance.get('pagina
      tor').total = response.total;__                                                                         instance.syncUI();_                                                                             }__                                                                             _
                                                                      TreeUtil.updatePagination(instance);_                                                                           _                                                                       }_
              }_                                                      },_                                             formatter: TreeUtil.formatJSONResults,_                                                 url: GET_LAYOUTS_URL_                                           },_
              leaf: !node.parentable,_                                                paginator: {_                                           limit: TreeUtil.PAGINATION_LIMIT,_                                                      offsetParam: 'start',_                                                  star
      t: Math.max(childLayouts.length - TreeUtil.PAGINATION_LIMIT, 0),_                                               total: total_                                           },_                                             type: 'io'_                                     };__
      if (nodeChildren && expanded) {_                                                newNode.children = TreeUtil.formatJSONResults(nodeChildren);_                                   }__                                     var cssClass = '';_                                     var title = '';__
                              newNode.label = Util.escapeHTML(node.name);__                               if (node.layoutRevisionId) {_                                               if (!node.layoutRevisionHead) {_                                                        title = '\u0054\u0068\u0065\u0072\u0
      065\u0020\u0069\u0073\u0020\u006e\u006f\u0074\u0020\u0061\u0020\u0076\u0065\u0072\u0073\u0069\u006f\u006e\u0020\u006f\u0066\u0020\u0074\u0068\u0069\u0073\u0020\u0070\u0061\u0067\u0065\u0020\u006d\u0061\u0072\u006b\u0065\u0064\u0020\u0061\u0073\u0020\u0052\u0065\u0061\u0064\u0079\u0020\u0066\u006f\u0
      072\u0020\u0050\u0075\u0062\u006c\u0069\u0063\u0061\u0074\u0069\u006f\u006e\u002e';_                                    }_                                              else if (node.layoutBranchName) {_                                                      node.layoutBranchName = Util.escapeHTML(node
      .layoutBranchName);__                                                   newNode.label += Lang.sub(' <span class="layout-branch-name" title="\u0054\u0068\u0069\u0073\u0020\u0069\u0073\u0020\u0074\u0068\u0065\u0020\u0070\u0061\u0067\u0065\u0020\u0076\u0061\u0072\u0069\u0061\u0074\u0069\u006f\u006e\u00
      20\u0074\u0068\u0061\u0074\u0020\u0069\u0073\u0020\u006d\u0061\u0072\u006b\u0065\u0064\u0020\u0061\u0073\u0020\u003c\u0065\u006d\u003e\u0072\u0065\u0061\u0064\u0079\u0020\u0066\u006f\u0072\u0020\u0070\u0075\u0062\u006c\u0069\u0063\u0061\u0074\u0069\u006f\u006e\u003c\u002f\u0065\u006d\u003e\u002e">[{
      layoutBranchName}]</span>', node);_                                             }__                                     if (node.incomplete) {_                                                 cssClass = 'incomplete-layout';__                                                       title = '\u0054\u006
      8\u0069\u0073\u0020\u0070\u0061\u0067\u0065\u0020\u0069\u0073\u0020\u006e\u006f\u0074\u0020\u0065\u006e\u0061\u0062\u006c\u0065\u0064\u0020\u0069\u006e\u0020\u0074\u0068\u0069\u0073\u0020\u0053\u0069\u0074\u0065\u0020\u0050\u0061\u0067\u0065\u0073\u0020\u0056\u0061\u0072\u0069\u0061\u0074\u0069\u006
      f\u006e\u002c\u0020\u0062\u0075\u0074\u0020\u0069\u0073\u0020\u0061\u0076\u0061\u0069\u006c\u0061\u0062\u006c\u0065\u0020\u0066\u006f\u0072\u0020\u006f\u0074\u0068\u0065\u0072\u0020\u0070\u0061\u0067\u0065\u0073\u0020\u0076\u0061\u0072\u0069\u0061\u0074\u0069\u006f\u006e\u0073\u002e';_
                              }_                                      }__                                 if (!node.sortable) {_                                              newNode.cssClass = 'lfr-page-locked';_                                  }__                                     if (!false) {_
                                      newNode.label = TreeUtil.createLink(_                                           {_                                                              contentDisplayPage: node.contentDisplayPage,_                                                           cssClass: cssClass,_
                                                                      id: TreeUtil.createLinkId(node.friendlyURL),_                                                           label: newNode.label,_                                                          plid: node.plid,_
                              title: title,_                                                          uuid: node.uuid_                                                        }_                                              );_                                     }_                                      else
       {_                                             newNode.label = TreeUtil.createLabel(_                                          {_                                                              cssClass: cssClass,_                                                            label: newNode.label,_
                                                      title: title_                                           }_                                              );_                                     }__                                     output.push(newNode);_                          }_
      );__                    return output;_         },__            restoreCheckedNode: function(node) {_                   var instance = this;__                  var plid = TreeUtil.extractPlid(node);__                        var tree = node.get('ownerTree');__             var treeNodeTaskSuperClass =
       A.TreeNodeTask.superclass;__                   if (AArray.indexOf(TreeUtil.CHECKED_NODES, plid) > -1) {_                               treeNodeTaskSuperClass.check.call(node, tree);_                 }_                      else {_                         treeNodeTaskSuperClass.uncheck.call(node, tr
      ee);_                   }__                     AArray.each(node.get(STR_CHILDREN), TreeUtil.restoreCheckedNode);_              },__            restoreSelectedNode: function(node) {_                  var plid = TreeUtil.extractPlid(node);__                        if (plid == '0') {_
              node.select();_                 }_                      else {_                         node.unselect();_                       }_              },__            updateLayout: function(data) {_                 A.io.request(_                          themeDisplay.getPathMain() + '/layouts_admin
      /update_page',_                         {_                                      data: A.mix(_                                   data,_                                          {_                                                      p_auth: Liferay.authToken_
      }_                                      )_                              }_                      );_     },__            updateLayoutParent: function(dragPlid, dropPlid, index) {_                      TreeUtil.updateLayout(_                         {_                                      cmd: 'parent
      _layout_id',_                                   parentPlid: dropPlid,_                              plid: dragPlid,_                                    priority: index_                                }_                      );_             }__             _                       , invokeSessionClick
      : function(data, callback) {_                           A.mix(_                                 data,_                                  {_                                              useHttpSession: true_                                   }_                              );__
      A.io.request(_                                  themeDisplay.getPathMain() + '/portal/session_click',_                                  {_                                              after: {_                                                       success: function(event) {_
                                      var responseData = this.get('responseData');__                                                  if (callback && responseData) {_                                                                        callback(responseData);_
                      }_                                                      }_                                      },_                                             data: data_                                     }_                              );_                     },__                    updatePagina
      tion: function(node) {_                         var paginationMap = {};__                           var updatePaginationMap = function(map, curNode) {_                                 if (A.instanceOf(curNode, A.TreeNodeIO)) {_                                             var paginationLimit = TreeUt
      il.PAGINATION_LIMIT;__                                          var layoutId = TreeUtil.extractLayoutId(curNode);__                                             var children = curNode.get(STR_CHILDREN);__                                             map[layoutId] = Math.ceil(children.length / paginati
      onLimit) * paginationLimit;_                                    }_                              }__                     TreeUtil.invokeSessionClick(_                                   {_                                              cmd: 'get',_                                            key: 'layout
      sTree:10184:false:Pagination'_                                  },_                                 function(responseData) {_                                           try {_                                                  paginationMap = A.JSON.parse(responseData);_
              }_                                              catch (e) {_                                    }__                                             updatePaginationMap(paginationMap, node)__                                              node.eachParent(_
              function(parent) {_                                                             updatePaginationMap(paginationMap, parent);_                                                    }_                                              );__                                            TreeUtil.invokeSessi
      onClick(_                                                       {_                                                      'layoutsTree:10184:false:Pagination': A.JSON.stringify(paginationMap)_                                                  }_                                              );_
                              }_                              );_                     },__                updateCheckedNodes: function(node, state) {_                                var plid = TreeUtil.extractPlid(node);__                                var checkedNodes = TreeUtil.CHECKED_NODES;__
                      var index = AArray.indexOf(checkedNodes, plid);__                               if (state) {_                                   if (index == -1) {_                                             checkedNodes.push(plid);_                                       }_
      }_                              else if (index > -1) {_                                 AArray.remove(checkedNodes, index);_                            }_                      },__                    updateSessionTreeCheckedState: function(treeId, nodeId, state) {_                               var
      data = {_                                       cmd: state ? 'layoutCheck' : 'layoutUncheck',_                          plid: nodeId_                           };__                            TreeUtil.updateSessionTreeClick(treeId, data);_                 },__                    updateSessionTreeCli
      ck: function(treeId, data) {_                           data = A.merge(_                                {_                                              groupId: 10184,_                                                privateLayout: false,_                                          recursive: true,_
                                              treeId: treeId_                                 },_                             data_                           );__                            A.io.request(_                                  themeDisplay.getPathMain() + '/portal/session_tree_js_click',_
                              {_                                              data: data_                             }_                              );_                     },__                    updateSessionTreeOpenedState: function(treeId, nodeId, state) {_                                var data = {
      _                                       nodeId: nodeId,_                                        openNode: state_                                };__                            TreeUtil.updateSessionTreeClick(treeId, data);_                 }_              _       };__    var rootLabel = 'Public\x20P
      ages';_ var treeElId = '_156_layoutsTreeOutput';__      var RootNodeType = A.TreeNodeTask;_     var TreeViewType = A.TreeView;__        _               RootNodeType = A.TreeNodeIO;__          _                       TreeViewType = A.TreeViewDD;_           __              _                       root
      Label = TreeUtil.createLink(_                           {_                                      label: Util.escapeHTML(rootLabel),_                                     plid: TreeUtil.DEFAULT_PARENT_LAYOUT_ID_                                }_                      );_             _       __      var
      rootNode = new RootNodeType(_           {_                      _                               after: {_                                       __                                      expandedChange: function(event) {_                                              Liferay.Store('layoutsTreeRootNode',
       event.newVal);_                                        }_                              },_             __                      alwaysShowHitArea: true,__                      __                      __                      children: TreeUtil.formatJSONResults({"total":1,"layouts":[{"groupId":10184,
      "hasChildren":false,"parentLayoutId":0,"contentDisplayPage":false,"parentable":true,"updateable":true,"priority":0,"name":"Welcome","plid":10187,"sortable":true,"friendlyURL":"/home","layoutId":1,"uuid":"574217cd-c7db-4782-bcdb-1194fabedd2e","type":"portlet","privateLayout":false}]}),_
      cssClasses: TREE_CSS_CLASSES,_                  draggable: false,__                     _                       __                                      __                                      expanded: true,_                                _                               _                       __
                      id: TreeUtil.createListItemId(10184, TreeUtil.DEFAULT_PARENT_LAYOUT_ID, 0),_            label: rootLabel,_                      leaf: false,_                   paginator: {_                           limit: TreeUtil.PAGINATION_LIMIT,_                              offsetParam: 'start'
      ,_                              start: Math.max(1 - TreeUtil.PAGINATION_LIMIT, 0),_                     total: 1_                       }_              }_      );__    rootNode.get('contentBox').addClass('lfr-root-node');__ var treeview = new TreeViewType(_               {_                      afte
      r: {_                           render: TreeUtil.afterRenderTree_                       },_             boundingBox: '#' + treeElId,_                   children: [rootNode],_                  io: {_                          cfg: {_                                 data: function(node) {_
                              return {_                                                       groupId: TreeUtil.extractGroupId(node),_                                                        incomplete: true,_                                                      p_auth: Liferay.authToken,_
                                      parentLayoutId: TreeUtil.extractLayoutId(node),_                                                privateLayout: false,_                                                  selPlid: '0',_                                                  treeId: 'layoutsTree'_
                              };_                                     },_                                 method: A.config.io.method,_                                        on: {_                                          success: function(event, id, xhr) {_
      var instance = this;__                                                  var response;__                                         try {_                                                          response = A.JSON.parse(xhr.responseText);_                                                     }_
                                              catch (e) {_                                                }__                                                 if (response) {_                                                                instance.get('paginator').total = response.total;__
                                              instance.syncUI();_                                             }__                                                     _                                                               TreeUtil.updatePagination(instance);_
              _                                               }_                                      }_                      },_                             formatter: TreeUtil.formatJSONResults,_                         url: GET_LAYOUTS_URL_                   },_                     on: {_
              __                              'drop:hit': function(event) {_                              var dropNode = event.drop.get('node').get('parentNode');__                                  var dropTreeNode = dropNode.getData('tree-node');__                                     if (!dropTreeNode.ge
      t('draggable')) {_                                              event.halt();_                          }_                              },_                             dropAppend: function(event) {_                                  var tree = event.tree;__                                        var
      index = tree.dragNode.get('parentNode').getChildrenLength() - 1;__                                  TreeUtil.updateLayoutParent(_                                               TreeUtil.extractPlid(tree.dragNode),_                                           TreeUtil.extractPlid(tree.dropNode),_
                                      index_                                  );_                         },_                         dropInsert: function(event) {_                                  var tree = event.tree;__                                        var index = tree.dragNode.get('parentNode').
      indexOf(tree.dragNode);__                                       TreeUtil.updateLayoutParent(_                                   TreeUtil.extractPlid(tree.dragNode),_                                           TreeUtil.extractPlid(tree.dropNode.get('parentNode')),_
      index_                                  );_                             }_                      },_             type: 'pages'_          }_      ).render();__   __      A.one('#' + treeElId).setData('treeInstance', treeview);__      _               var History = Liferay.HistoryManager;__         var
      DEFAULT_PLID = '0';__           var HISTORY_SELECTED_PLID = '_156_selPlid';__           var layoutsContainer = A.one('#_156_layoutsContainer');__               treeview.after(_                        'lastSelectedChange',_                  function(event) {_                              var node = e
      vent.newVal;__                          var plid = TreeUtil.extractPlid(node);__                        var currentValue = History.get(HISTORY_SELECTED_PLID);__                                if (plid != currentValue) {_                                    if ((plid == DEFAULT_PLID) && Lang.isValue(c
      urrentValue)) {_                                                plid = null;_                           }__                                     History.add(_                                           {_                                                      '_156_selPlid': plid_
                      }_                                      );_                             }_              }_              );__            function compareItemId(item, id) {_                     return (TreeUtil.extractPlid(item) == id);_             }__             function findNodeByPlid(node, plid)
      {_                      var foundItem = null;__                 if (node) {_                        if (compareItemId(node, plid)) {_                                   foundItem = node;_                              }_                      }__                     if (!foundItem) {_
              var children = (node || treeview).get(STR_CHILDREN);__                          var length = children.length;__                         for (var i = 0; i < length; i++) {_                                     var item = children[i];__                                       if (item.isLeaf()) {
      _                                               if (compareItemId(item, plid)) {_                                               foundItem = item;_                                              }_                                      }_                                      else {_
                      foundItem = findNodeByPlid(item, plid);_                                        }__                             if (foundItem) {_                                               break;_                                 }_                              }_                      }__
              return foundItem;_              }__             History.after(_                 'stateChange',_                 function(event) {_                              var nodePlid = event.newVal[HISTORY_SELECTED_PLID];__                           if (Lang.isValue(nodePlid)) {_
              var node = findNodeByPlid(null, nodePlid);__                                    if (node) {_                                            var lastSelected = treeview.get('lastSelected');__                                              if (lastSelected) {_
              lastSelected.unselect();_                                               }__                                     node.select();__                                                var io = layoutsContainer.io;__                                         var uri = Lang.sub(_
                              LAYOUT_URL,_                                                    {_                                                      historyKey: '',_                                                                selPlid: nodePlid_                                                      }_
                                              );__                                            io.set('uri', uri);__                                           io.start();_                                    }_                              }_                      }_              );_     _})();(function() {_
                      new A.CharCounter(_                     {_                              input: '#_156_addLayoutName',_                          maxLength: 4000_                        }_              );_     })();(function() {_             var defaultLanguageId = themeDisplay.getDefaultLanguageId();
      __              var available = {};__           __                      available['zh_CN'] = 'Chinese (China)';__               __                      available['en_US'] = 'English (United States)';__               __                      available['fr_CA'] = 'French (Canada)';__               __
                      available['de_DE'] = 'German (Germany)';__              __                      available['hu_HU'] = 'Hungarian (Hungary)';__           __                      available['pt_BR'] = 'Portuguese (Brazil)';__           __                      available['es_ES'] = 'Spanish (Spain)';__
              __              var availableLanguageIds = A.Array.dedupe(_                     [defaultLanguageId].concat(A.Object.keys(available))_           );__            Liferay.InputLocalized.register(_                       '_156_addLayoutName',_                  {_                              boun
      dingBox: '#_156_addLayoutNameBoundingBox',_                             columns: 20,_                   contentBox: '#_156_addLayoutNameContentBox',__                          __                              inputPlaceholder: '#_156_addLayoutName',_                               items: availableLang
      uageIds,_                               lazy: true,_                            name: '_156_name_',_                            namespace: '_156_addLayoutName_',_                              toggleSelection: false,_                                translatedLanguages: 'en_US'_                   }_
              );_     })();(function() {_     var panelSelectedPortletsEl = A.one('#_156_panelSelectedPortlets');__   var selectedPortlets = A.Array.hash(panelSelectedPortletsEl.val().split(','));__        var TreeUtil = {_               formatJSONResults: function(json) {_                    var output =
       [];__                  A.each(_                                json.children.list,_                    function(item, index, collection) {_                                    var childPortlets = [];_                                        var total = 0;__                                        var
      nodeChildren = item.children;_                                  var plid = item.objId;__                                var checked = plid && (plid in selectedPortlets);__                                     if (nodeChildren) {_                                            childPortlets = nodeChildren
      .list;_                                         total = childPortlets.length;_                          }__                                     var newNode = {_                                                after: {_                                                       checkedChange: function(even
      t) {_                                                           if (plid) {_                                                            if (event.newVal) {_                                                                            selectedPortlets[plid] = true;_
                              }_                                                                      else if (selectedPortlets[plid]) {_                                                                             delete selectedPortlets[plid];_
      }__                                                                     panelSelectedPortletsEl.val(A.Object.keys(selectedPortlets));_                                                          }_                                                      }_                                              },_
                                              alwaysShowHitArea: total,_                                      checked: checked,_                                              draggable: false,_                                              expanded: false,_                                               id:
      item.id,_                                               label: item.name,_                                      leaf: item.leaf,_                                               type: 'task'_                                   }__                                     if (nodeChildren) {_
                              newNode.children = TreeUtil.formatJSONResults(item);_                           }__                                     output.push(newNode);_                          }_                      );__                    return output;_         }_      };__    var initPanelSelectP
      ortlets = function(event) {__           __              var portletList = {"javaClass":"com.liferay.portal.kernel.util.TreeView","serializable":{"list":{"javaClass":"java.util.ArrayList","list":[{"id":1,"parentId":0,"ls":"","name":"Application","javaClass":"com.liferay.portal.kernel.util.TreeNodeVie
      w","img":"","objId":"","children":{"javaClass":"java.util.ArrayList","list":[{"id":2,"parentId":1,"ls":"0","name":"Collaboration","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.collaboration","children":{"javaClass":"java.util.ArrayList","list":[{"id":3,"p
      arentId":2,"ls":"0","name":"Blogs","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"33","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":4,"parentId":2,"ls":"0","name":"Blogs Aggregator","javaClass":"com.liferay.po
      rtal.kernel.util.TreeNodeView","img":"","objId":"115","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":5,"parentId":2,"ls":"0","name":"Message Boards","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"19","children"
      :{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":6,"parentId":2,"ls":"0","name":"Recent Bloggers","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"114","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"hr
      ef":"javascript:;","depth":2},{"id":7,"parentId":2,"ls":"1","name":"Wiki","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"36","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth"
      :1},{"id":8,"parentId":1,"ls":"0","name":"Community","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.community","children":{"javaClass":"java.util.ArrayList","list":[{"id":9,"parentId":8,"ls":"0","name":"Bookmarks","javaClass":"com.liferay.portal.kernel.uti
      l.TreeNodeView","img":"","objId":"28","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":10,"parentId":8,"ls":"0","name":"Friends Directory","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"186","children":{"javaClas
      s":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":11,"parentId":8,"ls":"0","name":"Invitation","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"100","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript
      :;","depth":2},{"id":12,"parentId":8,"ls":"0","name":"My Sites","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"29","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":13,"parentId":8,"ls":"0","name":"My Sites Direct
      ory","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"188","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":14,"parentId":8,"ls":"0","name":"Page Comments","javaClass":"com.liferay.portal.kernel.util.TreeNodeView",
      "img":"","objId":"107","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":15,"parentId":8,"ls":"0","name":"Page Flags","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"143","children":{"javaClass":"java.util.ArrayLis
      t","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":16,"parentId":8,"ls":"0","name":"Page Ratings","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"108","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id"
      :17,"parentId":8,"ls":"0","name":"Portal Directory","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"11","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":18,"parentId":8,"ls":"1","name":"Site Members Directory","ja
      vaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"187","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth":1},{"id":19,"parentId":1,"ls":"0","name":"Content Management","javaClass":"
      com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.cms","children":{"javaClass":"java.util.ArrayList","list":[{"id":20,"parentId":19,"ls":"0","name":"Documents and Media","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"20","children":{"javaClass
      ":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":21,"parentId":19,"ls":"0","name":"Recent Downloads","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"64","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javas
      cript:;","depth":2},{"id":22,"parentId":19,"ls":"1","name":"Web Content Search","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"77","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","
      depth":1},{"id":23,"parentId":1,"ls":"0","name":"Entertainment","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.entertainment","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":false,"href":"javascript:;","depth":1},{"id":24,"parentId":1,"ls":
      "0","name":"Finance","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.finance","children":{"javaClass":"java.util.ArrayList","list":[{"id":25,"parentId":24,"ls":"0","name":"Currency Converter","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"
      ","objId":"16","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":26,"parentId":24,"ls":"1","name":"Loan Calculator","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"61","children":{"javaClass":"java.util.ArrayList",
      "list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth":1},{"id":27,"parentId":1,"ls":"0","name":"News","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.news","children":{"javaClass":"java.util.ArrayList","list":[
      {"id":28,"parentId":27,"ls":"0","name":"Alerts","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"83","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":29,"parentId":27,"ls":"1","name":"Announcements","javaClass":"co
      m.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"84","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth":1},{"id":30,"parentId":1,"ls":"0","name":"Sample","javaClass":"com.liferay.portal.kernel
      .util.TreeNodeView","img":"","objId":"root//category.sample","children":{"javaClass":"java.util.ArrayList","list":[{"id":31,"parentId":30,"ls":"0","name":"Hello World","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"47","children":{"javaClass":"java.util.ArrayList","list"
      :[]},"leaf":true,"href":"javascript:;","depth":2},{"id":32,"parentId":30,"ls":"1","name":"Hello Velocity","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"50","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":fal
      se,"href":"javascript:;","depth":1},{"id":33,"parentId":1,"ls":"0","name":"Shopping","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.shopping","children":{"javaClass":"java.util.ArrayList","list":[{"id":34,"parentId":33,"ls":"0","name":"Amazon Rankings","ja
      vaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"67","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":35,"parentId":33,"ls":"1","name":"Shopping","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","obj
      Id":"34","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth":1},{"id":36,"parentId":1,"ls":"0","name":"Social","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.soc
      ial","children":{"javaClass":"java.util.ArrayList","list":[{"id":37,"parentId":36,"ls":"0","name":"Activities","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"116","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":
      38,"parentId":36,"ls":"0","name":"Group Statistics","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"181","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":39,"parentId":36,"ls":"0","name":"Requests","javaClass":"co
      m.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"121","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":40,"parentId":36,"ls":"1","name":"User Statistics","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":
      "180","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth":1},{"id":41,"parentId":1,"ls":"0","name":"Tools","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.tools",
      "children":{"javaClass":"java.util.ArrayList","list":[{"id":42,"parentId":41,"ls":"0","name":"Dictionary","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"23","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":43,"pa
      rentId":41,"ls":"0","name":"Language","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"82","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":44,"parentId":41,"ls":"0","name":"Network Utilities","javaClass":"com.life
      ray.portal.kernel.util.TreeNodeView","img":"","objId":"30","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":45,"parentId":41,"ls":"0","name":"Password Generator","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"70"
      ,"children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":46,"parentId":41,"ls":"0","name":"Search","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"3","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"
      href":"javascript:;","depth":2},{"id":47,"parentId":41,"ls":"0","name":"Sign In","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"58","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":48,"parentId":41,"ls":"0","name
      ":"Translator","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"26","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":49,"parentId":41,"ls":"1","name":"Unit Converter","javaClass":"com.liferay.portal.kernel.util.Tre
      eNodeView","img":"","objId":"27","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth":1},{"id":50,"parentId":1,"ls":"0","name":"Undefined","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"",
      "objId":"root//category.undefined","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":false,"href":"javascript:;","depth":1},{"id":51,"parentId":1,"ls":"0","name":"Wiki","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.wiki","children":{"javaCla
      ss":"java.util.ArrayList","list":[{"id":52,"parentId":51,"ls":"1","name":"Wiki","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"36","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","
      depth":1}]},"leaf":false,"href":"javascript:;","depth":0}]},"depth":1}}.serializable.list.list[0];__            var rootNode = {_                       alwaysShowHitArea: true,_                       children: TreeUtil.formatJSONResults(portletList),_                     draggable: false,_
              expanded: true,_                        id: '_156_selectPortletsRootNode',_                 label: portletList.name,_                   leaf: false,_                   type: 'task'_           };__            var treeview = new A.TreeView(_                 {_                              afte
      r: {_                                   render: function() {_                                       A.one('#_156_selectPortletsTreeLoading').hide();_                                   }_                              },_                             boundingBox: '#_156_selectPortletsTree',_
                      children: [rootNode],_                          type: 'file'_                   }_      ).render();__           initPanelSelectPortlets = A.Lang.emptyFn;_      };__    _               initPanelSelectPortlets();_     __      Liferay.on(_            '_156_toggleLayoutTypeFields',_
      function(event) {_                      if (event.type == 'panel') {_                           initPanelSelectPortlets();_                     }_              }_      );_})();(function() {_  Liferay.Form.register(_         {_                      id: '_156_addPageFm'__                  _
                      , fieldRules: [__                                       __                                              __                                                      {_                                                              body: '',_
              custom: false,_                                                         errorMessage: '',_                                                      fieldName: '_156_name',_                                                                validatorName: 'required'_
                      }__                                     __                              ]_              __                      _                               , onSubmit: function(event) {_                                  event.preventDefault()_                         }_                      _
              }_      );_})();(function() {_  new Liferay.Dockbar.AddPage(_           {_                  createPageMessage: 'Loading',_                      focusItem: A.one('#_156_addLayoutName'),_                       namespace: '_156_',_                    nodeList: A.one('#_156_templateList'),_
              nodeSelector: '.lfr-page-template',_                    parentLayoutId: 0,_                 refresh: true,_                     selected: !A.one('#_156_addPageFm').ancestor().hasClass('hide'),_                       toggleOnCancel: false_          }_      );_})();(function() {_
              A.one('#Vm3y').delegate(_                                       'click',_                               function(event) {_                                              var btnNavbar = event.currentTarget;__                                          var navId = btnNavbar.attr('data-navId');__
                                              var navbarCollapse = A.one('#' + navId + 'NavbarCollapse');__                                           if (navbarCollapse) {_                                                  var handle = Liferay.Data['Vm3yHandle'];__
              if (navbarCollapse.hasClass('open') && handle) {_                                                       handle.detach();__                                                              handle = null;_                                                 }_
              else {_                                                         handle = navbarCollapse.on(_                                                                    'mousedownoutside',_                                                                    function(event) {_
                                                      if (!btnNavbar.contains(event.target)) {_                                                                               Liferay.Data['Vm3yHandle'] = null;__                                                                                    handle.detac
      h();__                                                                                  navbarCollapse.removeClass('open');_                                                                            }_                                                                      }_
                                      );_                                                     }__                                             navbarCollapse.toggleClass('open');__                                                   Liferay.Data['Vm3yHandle'] = handle;_
      }_                                      },_                                     '.btn-navbar'_                  );_                     })();(function() {_     var togglerDelegate;__  Liferay.component(_             '_156_regularlayoutsAdminLookAndFeelColorsPanel',_              function() {_
              if (!togglerDelegate) {_                                togglerDelegate = new A.TogglerDelegate(_                                       {_                                              animated: true,_                                                closeAllOnExpand: false,_
                              container: '#regularlayoutsAdminLookAndFeelColorsPanel',_                                       content: '.toggler-content',_                                           header: '.toggler-header',_                                             on: {_
                      'toggler:expandedChange': function(event) {_                                                    var header = event.target.get('header');__                                                              var persistId = header.getData('persist-id');__
                      if (persistId && !event.silent) {_                                                              var data = {};__                                                                        data[persistId] = event.newVal ? 'open' : 'closed';__
                      Liferay.Store(data);_                                                           }_                                              }_                                              },_                                             transition: {_
      duration: .3_                                           }_                                      }_                      );_                     }__                     return togglerDelegate;_                }_      );__    Liferay.component('_156_regularlayoutsAdminLookAndFeelColorsPanel');_})();(f
      unction() {_    var togglerDelegate;__  Liferay.component(_             '_156_regularlayoutsAdminLookAndFeelSettingsPanel',_            function() {_                   if (!togglerDelegate) {_                                togglerDelegate = new A.TogglerDelegate(_
      {_                                              animated: true,_                                        closeAllOnExpand: false,_                                               container: '#regularlayoutsAdminLookAndFeelSettingsPanel',_                                             content: '.toggler-c
      ontent',_                                               header: '.toggler-header',_                                     on: {_                                                  'toggler:expandedChange': function(event) {_                                                            var header = event.t
      arget.get('header');__                                                          var persistId = header.getData('persist-id');__                                                         if (persistId && !event.silent) {_                                                                      var data = {
      };__                                                                    data[persistId] = event.newVal ? 'open' : 'closed';__                                                                   Liferay.Store(data);_                                                           }_
                              }_                                              },_                                     transition: {_                                                  duration: .3_                                           }_                                      }_
      );_                     }__                     return togglerDelegate;_                }_      );__    Liferay.component('_156_regularlayoutsAdminLookAndFeelSettingsPanel');_})();(function() {_              var availableThemes = A.one('#regularavailableThemes');_                var colorSchemePanel
       = A.one('#regularlayoutsAdminLookAndFeelColorsPanel');_                var lookAndFeelForm = A.one('#regularLookAndFeel');__           var toggleDisabled = function(disabled) {_                      colorSchemePanel.all('input[name=_156_regularColorSchemeId]').set('disabled', disabled);_
      };__            if (colorSchemePanel) {_                        if (availableThemes) {_                 availableThemes.all('input[name=_156_regularThemeId]').on(_                                     'change',_                                      function() {_
      toggleDisabled(true);_                                  }_                              );_             }__                     lookAndFeelForm.one('#_156_regularSelTheme').on(_                               'change',_                              function() {_                                   togg
      leDisabled(false);_                             }_                      );_             }_      })();(function() {_             if (window.parent) {_                   var installMoreLink = A.one('#_156_installMore');__                     if (installMoreLink) {_                         installMoreL
      ink.on(_                                        'click',_                                       function(event) {_                                              event.preventDefault();__                                               window.parent.location = installMoreLink.attr('href');_
                      }_                              );_                     }_              }_      })();(function() {_     var deleteLogoLink = A.one('#_156_deleteLogoLink');_    var useLogoInput = A.one('#_156_useLogo');_     var logoContainer = A.one('#_156_logoContainer');_      var logoFileNameInpu
      t = A.one('#_156_logoFileName');__      var changeLogo = function(event) {_             var changeLogo = (event.type == 'change');__            if (useLogoInput) {_                    useLogoInput.val(changeLogo);_          }__             if (logoContainer) {_                   logoContainer.hide()
      ;_              }_      };__    if (deleteLogoLink) {_          deleteLogoLink.on('click', changeLogo);_        }__     if (logoFileNameInput) {_               logoFileNameInput.on('change', changeLogo);_    }_})();(function() {_   var config = {_         dialog: {_                      width: 820_
              }_      };__    var saveInstance = A.one('#_156_saveInstance');__       if (saveInstance) {_            saveInstance.on(_                       'click',_                       function(event) {_                              config.dialog.title = '\u0044\u0065\u0076\u0069\u0063\u0065\u0020\u0
      046\u0061\u006d\u0069\u006c\u0069\u0065\u0073';__                               config.id = '_156_ruleGroups';_                         config.uri = 'http://localhost:8080/group/control_panel/manage?p_p_auth=s4ADsLyT&p_p_id=178&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&doAsGroupId=10184&referer
      Plid=10187&controlPanelCategory=current_site.pages&_178_groupId=10184&_178_chooseCallback=_156_saveRuleGroupInstance&_178_classPK=10186&_178_className=com.liferay.portal.model.LayoutSet&_178_struts_action=%2Fmobile_device_rules%2Fview';__                          Liferay.Util.openWindow(config);_
                      }_              );_     }__     var managePriorities = A.one('#_156_managePriorities');__       if (managePriorities) {_                managePriorities.on(_                   'click',_                       function(event) {_                              config.dialog.title = '\u005
      2\u0075\u006c\u0065\u0020\u0050\u0072\u0069\u006f\u0072\u0069\u0074\u0069\u0065\u0073';__                       config.id = '_156_ruleGroupsPriorities';_                               config.uri = 'http://localhost:8080/group/control_panel/manage?p_p_auth=s4ADsLyT&p_p_id=178&p_p_lifecycle=0&p_p_stat
      e=pop_up&p_p_mode=view&doAsGroupId=10184&refererPlid=10187&controlPanelCategory=current_site.pages&_178_groupId=10184&_178_saveCallback=_156_saveRuleGroupsPriorities&_178_classPK=10186&_178_className=com.liferay.portal.model.LayoutSet&_178_struts_action=%2Fmobile_device_rules%2Fedit_rule_group_insta
      nce';__                         Liferay.Util.openWindow(config);_                       }_          );_ }_})();(function() {_           new Liferay.SearchContainer(_                   {_                              classNameHover: 'hover',_                               hover: false,_
              id: '_156_mdrRuleGroupInstancesSearchContainer',_                               rowClassNameAlternate: '',_                             rowClassNameAlternateHover: '-hover',_                          rowClassNameBody: '',_                          rowClassNameBodyHover: ''_
      }_              ).render();_    })();(function() {_                             var formNode = A.one('#_156_fm');__                             var tabview = new A.TabView(_                                   {_                                              boundingBox: '#_156_tabsBoundingBox',_
                                      srcNode: '#_156_tabs',_                                         type: 'list'_                                   }_                              ).render();__                           var history = new A.HistoryHash();__                            function selectTabBy
      SectionId(sectionId) {_                                 var instance = this;__                          var tab = A.Widget.getByNode('#' + sectionId + 'Tab');__                                        var tabIndex = tabview.indexOf(tab);__                                  if (tab && (tabIndex > -1))
      {_                                              tabview.selectChild(tabIndex);_                         }__                                     updateRedirectForSectionId(sectionId);__                                        Liferay.fire('formNavigator:reveal' + sectionId);_
      };__                            function updateSectionStatus() {_                                   var tabNode = tabview.get('selection').get('boundingBox');__                                        var sectionId = tabNode.getData('sectionId');__                                 var modifiedSections
      Node = A.one('#_156_modifiedSections');__                                       var modifiedSections = modifiedSectionsNode.val().split(',');__                                 modifiedSections.push(sectionId);_                                      modifiedSections = A.Array.dedupe(modifiedSections);
      _                                       modifiedSectionsNode.val(modifiedSections.join());__                            tabNode.addClass('section-modified');__                                 tabNode.toggleClass(_                                           'section-error',_
                      A.one('#' + sectionId).one('.error-field')_                                     );_                     }__                             function updateRedirectForSectionId(sectionId) {_                                       var redirect = A.one('#_156_redirect');__
                      if (redirect) {_                                                var url = new A.Url(redirect.val() || location.href);__                                         url.setAnchor(null);_                                           url.setParameter('_156_historyKey', sectionId);__
                                      redirect.val(url.toString());_                                  }_                      }__                             tabview.after(_                                 'selectionChange',_                                     function(event) {_
                      var tab = event.newVal__                                                var boundingBox = tab.get('boundingBox');__                                             var sectionId = boundingBox.getData('sectionId');__                                             history.addValue('_156_tab',
       sectionId);_                                   }_                              );__                    A.on(_                                  'history:change',_                                      function(event) {_                                              var state = event.newVal;__
                                      var changed = event.changed._156_tab;__                                 var removed = event.removed._156_tab;__                                         if (event.src === A.HistoryHash.SRC_HASH || event.src === A.HistoryBase.SRC_ADD) {_
                      if (changed) {_                                                         selectTabBySectionId(changed.newVal);_                                                  }_                                                      else if (removed) {_
              tabview.selectChild(0);_                                                        }_                                              else if (state) {_                                                              var sectionId = state._156_tab;__
              if (!sectionId) {_                                                                      sectionId = '_156_' + state.tab;_                                                               }__                                                             selectTabBySectionId(sectionId);_
                                              }_                                              }_                              }_                              );__                            if (formNode) {_                                        formNode.all('.modify-link').on('click', updateSectionStatus
      );__                                    formNode.delegate('change', updateSectionStatus, 'input, select, textarea');_                           }__                             var currentUrl = new A.Url(location.href);__                            var currentAnchor = currentUrl.getAnchor();__
                      if (!currentAnchor) {_                                  currentAnchor = currentUrl.getParameter('_156_historyKey');_                            }__                             if (currentAnchor) {_                                   var locationSectionId = currentAnchor.substring(curr
      entAnchor.indexOf('=') + 1);__                                  if (locationSectionId.indexOf('_156_') === -1) {_                                               locationSectionId = '_156_' + locationSectionId;_                                       }__                                     selectTabByS
      ectionId(locationSectionId);_                           }__                             if (false) {_                                   Liferay.fire('formNavigator:reveal_156_null');_                         }_                      })();(function() {_     Liferay.Form.register(_         {_
              id: '_156_fm'__                 _                               , fieldRules: [__                               __                              ]_                      __                      _                               , onSubmit: function(event) {_                                  even
      t.preventDefault(); _156_saveLayoutset();_                              }_                      _       }_      );_})();(function() {_  var popup;__    var clickHandler = function(event) {_           var dataValue = event.target.ancestor('li').attr('data-value');__               if (dataValue === 'a
      dd-page' || dataValue === 'add-child-page') {_                  var content = A.one('#_156_addLayout');__                       if (!popup) {_                          popup = Liferay.Util.Window.getWindow(_                                 {_                                              dialog: {_
                                                      bodyContent: content.show(),_                                           cssClass: 'lfr-add-dialog',_                                                    width: 600_                                             },_
      title: '\u0041\u0064\u0064\u0020\u0050\u0061\u0067\u0065'_                                      }_                      );_                     }__                     popup.show();__                 var cancelButton = popup.get('contentBox').one('#_156_cancelAddOperation');__                   if (
      cancelButton) {_                                cancelButton.on(_                                   'click',_                                   function(event) {_                                              popup.hide();_                                  }_                              );_
              }__                     Liferay.Util.focusFormField(content.one('input:text'));_            }_          else if (dataValue === 'view-pages') {_                 _                               _                               _                               _                       __
              window.open('http://localhost:8080/group/control_panel/manage?p_p_auth=htRBZ1yn&p_p_id=49&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&doAsGroupId=10184&refererPlid=10187&controlPanelCategory=current_site.pages&_49_groupId=10184&_49_struts_action=%2Fmy_sites%2Fview&_49_privateLayout=fal
      se').focus();_          }_              else if (dataValue === 'import') {_                     _                       _                               _                               _                               _                               _                               _
      __                      Liferay.Util.openWindow(_                               {_                              id: '_156_importDialog',_                                       title: '\u0049\u006d\u0070\u006f\u0072\u0074',_                                 uri: 'http://localhost:8080/group/control_pa
      nel/manage?p_p_auth=EdKtr8Z9&p_p_id=156&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&doAsGroupId=10184&refererPlid=10187&controlPanelCategory=current_site.pages&_156_rootNodeName=Public+Pages&_156_groupId=10184&_156_cmd=validate&_156_struts_action=%2Fgroup_pages%2Fimport_layouts&_156_liveGroupId=1
      0184&_156_privateLayout=false'_                         }_                      );_             }_      else if (dataValue === 'export') {_                     _                               _                               _                               _                               _
                      _                               _                       __                      Liferay.Util.openWindow(_                               {_                                      id: '_156_exportDialog',_                                       title: '\u0045\u0078\u0070\u006f\u0072\u0074
      ',_                                     uri: 'http://localhost:8080/group/control_panel/manage?p_p_auth=EdKtr8Z9&p_p_id=156&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&doAsGroupId=10184&refererPlid=10187&controlPanelCategory=current_site.pages&_156_rootNodeName=Public+Pages&_156_groupId=10184&_15
      6_cmd=export&_156_struts_action=%2Fgroup_pages%2Fexport_layouts&_156_liveGroupId=10184&_156_privateLayout=false'_                               }_                      );_             }_      };__    A.one('#_156_layoutsNav').delegate('click', clickHandler, 'li a');_})();(function() {_          var
      layoutsContainer = A.one('#_156_layoutsContainer');__           layoutsContainer.plug(_             A.Plugin.IO,_                       {_                              autoLoad: false_                        }_              );__            A.one('#_156_layoutsTreeOutput').delegate(_
      'click',_                       function(event) {_                              event.preventDefault();__                               var link = event.currentTarget.one('a');__                              if (link && !event.target.hasClass('tree-hitarea')) {_                                  var
      href = link.attr('href');__                                     var hash = location.hash;__                             var prefix = '#_LFR_FN__156_';_                                 var historyKey = '';__                                  if (hash.indexOf(prefix) != -1) {_
                      historyKey = hash.replace(prefix, '');_                                 }__                             var requestUri = A.Lang.sub(_                                           href,_                                          {_                                                      hist
      oryKey: historyKey_                                             }_                                  );__                                        layoutsContainer.io.set('uri', requestUri);__                                   if (layoutsContainer.ParseContent) {_
      layoutsContainer.ParseContent.get('queue').stop();_                                     }__                             layoutsContainer.io.start();_                           }_                      },_                     '.tree-node-content'_           );_     })();(function() {_     var togglerD
      elegate;__      Liferay.component(_             '_160_controlPanelMenuAddContentPanelContainer',_       function() {_                   if (!togglerDelegate) {_                                togglerDelegate = new A.TogglerDelegate(_                                       {_
                      animated: true,_                                                closeAllOnExpand: true,_                                                container: '#controlPanelMenuAddContentPanelContainer',_                                                content: '.toggler-content',_
                              header: '.toggler-header',_                                             on: {_                                                  'toggler:expandedChange': function(event) {_                                                            var header = event.target.get('header');__
                                                              var persistId = header.getData('persist-id');__                                                         if (persistId && !event.silent) {_                                                                      var data = {};__
                                                      data[persistId] = event.newVal ? 'open' : 'closed';__                                                                   Liferay.Store(data);_                                                           }_
      }_                                              },_                                             transition: {_                                                  duration: .3_                                           }_                                      }_                              );_
              }__                     return togglerDelegate;_                }_      );__    Liferay.component('_160_controlPanelMenuAddContentPanelContainer');_})();(function() {_ Liferay.Util.addInputType();__  Liferay.Portlet.ready(_         function(portletId, node) {_                    Liferay.Util
      .addInputType(node);_           }_      );__    if (A.UA.mobile) {_             Liferay.Util.addInputCancel();_ }_})();(function() {_   new Liferay.Menu();__   var liferayNotices = Liferay.Data.notices;__    for (var i = 1; i < liferayNotices.length; i++) {_              new Liferay.Notice(liferayNo
      tices[i]);_     }__     _               Liferay.Poller.init(_                   {_                      encryptedUserId: 'ZSre28tYsWRdHkXrjR7t6A==',_                           supportsComet: false_                   }_              );_     _})();(function() {Liferay.Menu.register('_145_controlPanelS
      iteSelector');})();(function() {_                               A.Event.defineOutside('touchend');__                            var container = A.one('#_145_adminLinks');__                            container.one('a').on(_                                 'gesturemovestart',_
              function(event) {_                                              var currentTarget = event.currentTarget;__                                              currentTarget.once(_                                                    'gesturemoveend',_
      function(event) {_                                                              var eventOutside = event._event.type + 'outside';__                                                             container.toggleClass('open');__                                                                var menuOpen
       = container.hasClass('open');__                                                                var handle = Liferay.Data['_145_adminLinksHandle'];__                                                           if (menuOpen && !handle) {_
      handle = currentTarget.on(_                                                                         eventOutside,_                                                                              function(event) {_                                                                                      if (
      !event.target.ancestor('#_145_adminLinks')) {_                                                                                  Liferay.Data['_145_adminLinksHandle'] = null;__                                                                                         handle.detach();__
                                                                              container.removeClass('open');_                                                                                 }_                                                                              }_
                                      );_                                                             }_                                                      else if (handle) {_                                                                     handle.detach();__
                              handle = null;_                                                         }__                                                     Liferay.Data['_145_adminLinksHandle'] = handle;_                                                        }_
      );_                                     }_                              );_                     })();(function() {_                             A.Event.defineOutside('touchend');__                            var container = A.one('#_145_mySites');__                               container.one('a').o
      n(_                                     'gesturemovestart',_                                    function(event) {_                                              var currentTarget = event.currentTarget;__                                              currentTarget.once(_
                      'gesturemoveend',_                                                      function(event) {_                                                              var eventOutside = event._event.type + 'outside';__                                                             container.toggleClas
      s('open');__                                                            var menuOpen = container.hasClass('open');__                                                            var handle = Liferay.Data['_145_mySitesHandle'];__                                                              if (menuOpen
       && !handle) {_                                                                 handle = currentTarget.on(_                                                                             eventOutside,_                                                                          function(event) {_
                                                                              if (!event.target.ancestor('#_145_mySites')) {_                                                                                         Liferay.Data['_145_mySitesHandle'] = null;__
                                              handle.detach();__                                                                                      container.removeClass('open');_                                                                                 }_
                                      }_                                                                  );_                                                         }_                                                              else if (handle) {_
              handle.detach();__                                                                      handle = null;_                                                         }__                                                             Liferay.Data['_145_mySitesHandle'] = handle;_
                              }_                                              );_                             }_                              );_                     })();(function() {_                             A.Event.defineOutside('touchend');__                            var container = A.one('#_145
      _userAvatar');__                                container.one('a').on(_                             'gesturemovestart',_                                        function(event) {_                                              var currentTarget = event.currentTarget;__
              currentTarget.once(_                                                    'gesturemoveend',_                                              function(event) {_                                                              var eventOutside = event._event.type + 'outside';__
                                      container.toggleClass('open');__                                                        var menuOpen = container.hasClass('open');__                                                            var handle = Liferay.Data['_145_userAvatarHandle'];__
                                      if (menuOpen && !handle) {_                                                             handle = currentTarget.on(_                                                                             eventOutside,_
              function(event) {_                                                                              if (!event.target.ancestor('#_145_userAvatar')) {_                                                                                              Liferay.Data['_145_userAvatarHandle'] = null;__
                                                                                      handle.detach();__                                                                                      container.removeClass('open');_                                                                                 }_
                                                                              }_                                                              );_                                                             }_                                                              else if (handle) {_
                                                      handle.detach();__                                                              handle = null;_                                                         }__                                                             Liferay.Data['_145_userAvatarHandle'
      ] = handle;_                                                    }_                                      );_                                     }_                              );_                     })();(function() {_                             A.one('#_145_dockbar').delegate(_
                      'click',_                                       function(event) {_                                      var btnNavbar = event.currentTarget;__                                          var navId = btnNavbar.attr('data-navId');__                                             var navbarCo
      llapse = A.one('#' + navId + 'NavbarCollapse');__                                               if (navbarCollapse) {_                                                  var handle = Liferay.Data['_145_dockbarHandle'];__                                                      if (navbarCollapse.hasClass(
      'open') && handle) {_                                                           handle.detach();__                                                      handle = null;_                                                 }_                                                      else {_
                                      handle = navbarCollapse.on(_                                                            'mousedownoutside',_                                                                    function(event) {_
      if (!btnNavbar.contains(event.target)) {_                                                                               Liferay.Data['_145_dockbarHandle'] = null;__                                                                                    handle.detach();__
                                                      navbarCollapse.removeClass('open');_                                                                    }_                                                                      }_                                                              );_
                                              }__                                                     navbarCollapse.toggleClass('open');__                                                   Liferay.Data['_145_dockbarHandle'] = handle;_                                           }_
              },_                                     '.btn-navbar'_                          );_             })();});_// ]]>_ [Sanitized]
      
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 9 weeks, 1 day ago

                Packages

                Version Package
                6.2.0 CE RC2