Details

    • Story Points:
      4
    • Fix Priority:
      4

      Description

      Steps for reproduce:

      1. Start the server.
      2. Admin > Site Administration > Pages.

      The console will throw the error messages:

      09:07:18,884 ERROR [http-bio-8080-exec-8][MinifierUtil:87] 355: 22: missing ; before statement
      09:07:18,886 ERROR [http-bio-8080-exec-8][MinifierUtil:87] 356: 22: syntax error
      09:07:18,887 ERROR [http-bio-8080-exec-8][MinifierUtil:87] 357: 21: syntax error
      09:07:18,889 ERROR [http-bio-8080-exec-8][MinifierUtil:87] 358: 17: syntax error
      09:07:18,895 ERROR [http-bio-8080-exec-8][MinifierUtil:87] 1: 0: Compilation produced 4 syntax errors.
      09:07:18,896 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\u0067\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 colo
      rSchemeInput = 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('checked', true);____                              var colorSchemePanel = A
      .one('#regularlayoutsAdminLookAndFeelColorsPanel');____                         if (colorSchemePanel) {__                                       colorSchemePanel
      .all('input[name=_156_regularColorSchemeId]').set('disabled', colorSchemesDisabled);__                  }__                     },__                    ['aui-ba
      se']__          );__    __      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_saveRuleGr
      oupsPriorities(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 _156_mobileDeviceActionHandler(href) {__               if (fals
      e) {__                  _156_mobileDeviceOpenWindow(__                          {__                             uri: href__                             }__
                      );__            }__             else {__                        location.href = href;__         }__     }____   function _156_mobileDeviceOpenWi
      ndow(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.encodin
      g = '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,__               '_156_removePage',__            function(box) {__               var A = AUI();____                      var sele
      ctEl = A.one(box);____                  var currentValue = selectEl.val() || null;____              Liferay.Util.removeItem(box);__             },__
      ['aui-base']__  );____  Liferay.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_layoutIdsB
      ox);____                        submitForm(document._156_fm);__         },__            ['liferay-util-list-fields']__  );____  Liferay.provide(__
      window,__               '_156_updateStaging',__         function() {__                  var A = AUI();____                      var selectEl = A.one('#_156_stag
      ingType');____                  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\u0075\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\u00
      6f\u0072\u0020\u004c\u0069\u0066\u0065\u0072\u0061\u0079\u003f');__                     }__             else if (currentValue == 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\u
      0020\u0061\u0063\u0074\u0069\u0076\u0061\u0074\u0065\u0020\u006c\u006f\u0063\u0061\u006c\u0020\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\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u
      0020\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\u003f');__                       }____           if (ok) {__                             document._156_fm
      ._156_cmd.value = 'staging';____                                submitForm(document._156_fm);__         }__             },__            ['aui-base']__  );____
                      Liferay.Portlet.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_lifecy
      cle\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\x26p_p_isolat
      ed\x3d1\x26currentURL\x3d\x252Fgroup\x252Fcontrol_panel\x253FrefererPlid\x253D10187\x2526doAsGroupId\x253D10184\x2526controlPanelCategory\x253Dcurrent_site\x2ep
      ages\x2526p_p_id\x253D156\x26refererPlid\x3d10187\x26controlPanelCategory\x3dcurrent_site\x2epages\x26doAsGroupId\x3d10184'__                           }__
                      );__            __                      Liferay.Portlet.onLoad(__                       {__                                     canEditTitle: tr
      ue,__                                   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\x253FrefererPlid\x253D10187\x2526doAsGroupId\x253D10
      184\x2526controlPanelCategory\x253Dcurrent_site\x2epages\x2526p_p_id\x253D156\x26refererPlid\x3d10187\x26controlPanelCategory\x3dcurrent_site\x2epages\x26doAsGr
      oupId\x3d10184'__                               }__                     );__            __                                      Liferay.delegateClick('_145_gghx
      ', Liferay.Util.openInDialog);__                                        __                      Liferay.Portlet.onLoad(__                               {__
                                      canEditTitle: true,__                                   columnPos: 0,__                                 isStatic: 'end',__
                                      namespacedId: 'p_p_id_145_',__                                  portletId: '145',__                                     refreshU
      RL: '\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\x3dvie
      w\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\
      x253FrefererPlid\x253D10187\x2526doAsGroupId\x253D10184\x2526controlPanelCategory\x253Dcurrent_site\x2epages\x2526p_p_id\x253D156\x26refererPlid\x3d10187\x26con
      trolPanelCategory\x3dcurrent_site\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', 'l
      iferay-menu', 'liferay-notice', 'liferay-poller', 'liferay-search-container', 'liferay-session', '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_adm
      in/get_layouts';____    var LAYOUT_URL = 'http://localhost:8080/group/control_panel/manage?p_p_auth=NN74olhR&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={historyKey}';__  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 = {__      CHECKED_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.expand();__                    __                      ____                    TreeUtil
      .restoreSelectedNode(rootNode);____                     rootNode.eachChildren(TreeUtil.restoreSelectedNode);__          },____          createLabel: function(da
      ta) {__                 return '<span class="' + data.cssClass + '" title="' + data.title + '">' + data.label + '</span>';__            },____          createLi
      stItemId: function(groupId, layoutId, plid) {__                 return 'layoutsTree' + TreeUtil.PREFIX_LAYOUT_ID + layoutId + TreeUtil.PREFIX_PLID + plid + Tree
      Util.PREFIX_GROUP_ID + groupId;__               },____          createLinkId: function(friendlyURL) {__                 return 'layoutsTree' + TreeUtil.PREFIX_L
      AYOUT + friendlyURL.substring(1);__             },____          createLink: function(data) {__          var className = 'layout-tree';____
      if (data.cssClass) {__                          className += ' ' + data.cssClass;__                 }____                       if (false && !data.contentDispla
      yPage) {__                              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(node) {__                     return n
      ode.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_l
      ayout') ||__                                            (nodeType === 'url')) {____                                     cssIcons.pages: {__
                                      iconCollapsed: 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.ta
      rget);____                                                                      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: fu
      nction(node) {__                                                                        return {__
              groupId: TreeUtil.extractGroupId(node),__                                                                       incomplete: true,__
                                                              p_auth: Liferay.authToken,__                                                                    parentLa
      youtId: 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);__
                                                                              __                                                              }__
                                              }__                                                     },__                                                    formatte
      r: TreeUtil.formatJSONResults,__                                                        url: GET_LAYOUTS_URL__                                          },__
                                              leaf: !node.parentable,__                                       paginator: {__
              limit: TreeUtil.PAGINATION_LIMIT,__                                                     offsetParam: 'start',__
              start: 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.layout
      RevisionHead) {__                                                       title = '\u0054\u0068\u0065\u0072\u0065\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\u006
      b\u0065\u0064\u0020\u0061\u0073\u0020\u0052\u0065\u0061\u0064\u0079\u0020\u0066\u006f\u0072\u0020\u0050\u0075\u0062\u006c\u0069\u0063\u0061\u0074\u0069\u006f\u0
      06e\u002e';__                                           }__                                         else if (node.layoutBranchName) {__
                              node.layoutBranchName = Util.escapeHTML(node.layoutBranchName);____                                             newNode.label += Lang.su
      b(' <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\u
      0072\u0069\u0061\u0074\u0069\u006f\u006e\u0020\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\u00
      65\u006d\u003e\u002e">[{layoutBranchName}]</span>', node);__                                        }____                                               if (node
      .incomplete) {__                                                        cssClass = 'incomplete-layout';____
      title = '\u0054\u0068\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\u0
      068\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(__                                                  {__                                                     contentDisplayPa
      ge: 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.u
      ncheck.call(node, tree);__                      }____                   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/upd
      ate_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(respons
      eData);__                                                               }__                                             }__
              },__                                            data: data__                                }__                         );__                    },____
                      updatePagination: function(node) {__                            var paginationMap = {};____                             var updatePaginationMap
      = function(map, curNode) {__                                    if (A.instanceOf(curNode, A.TreeNodeIO)) {__                                            var pagi
      nationLimit = TreeUtil.PAGINATION_LIMIT;____                                            var layoutId = TreeUtil.extractLayoutId(curNode);____
                              var children = curNode.get(STR_CHILDREN);____                                   map[layoutId] = Math.ceil(children.length / paginationLi
      mit) * paginationLimit;__                                       }__                             }____                           TreeUtil.invokeSessionClick(__
                                      {__                                             cmd: 'get',__                                   key: 'layoutsTree:10184:false:Pa
      gination'__                                     },__                                    function(responseData) {__
      try {__                                                 paginationMap = A.JSON.parse(responseData);__                                           }__
                                      catch (e) {__                                           }____                                   updatePaginationMap(paginationMa
      p, node)____                                            node.eachParent(__                                              function(parent) {__
                                              updatePaginationMap(paginationMap, parent);__                                           }__
                      );____                                          TreeUtil.invokeSessionClick(__                                          {__
                                              '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);__                    },____                      updateSessionTreeClick: 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\x20Pages';__    var treeElId = '_156_layoutsTreeOutput';____    var RootNodeType
       = A.TreeNodeTask;__    var TreeViewType = A.TreeView;____      __              RootNodeType = A.TreeNodeIO;____                __                      TreeView
      Type = A.TreeViewDD;__          ____            __                      rootLabel = 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":[{"gro
      upId":10184,"hasChildren":false,"parentLayoutId":0,"contentDisplayPage":false,"parentable":true,"updateable":true,"priority":0,"name":"Welcome","plid":10187,"so
      rtable":true,"friendlyURL":"/home","layoutId":1,"uuid":"c5258116-a350-4085-bd5f-33b01952d09c","type":"portlet","privateLayout":false}]}),__
      cssClasses: TREE_CSS_CLASSES,__                 draggable: false,____                   __                      ____                                    ____
                                      expanded: true,__                               __                      __                      ____                    id: Tree
      Util.createListItemId(10184, TreeUtil.DEFAULT_PARENT_LAYOUT_ID, 0),__                   label: rootLabel,__                     leaf: false,__
      paginator: {__                          limit: TreeUtil.PAGINATION_LIMIT,__                         offsetParam: 'start',__                             start: M
      ath.max(1 - TreeUtil.PAGINATION_LIMIT, 0),__                            total: 1__                  }__         }__     );____  rootNode.get('contentBox').addCl
      ass('lfr-root-node');____       var treeview = new TreeViewType(__              {__                 after: {__                          render: TreeUtil.afterRe
      nderTree__                      },__                    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);__
              __                                              }__                                     }__                     },__                            formatte
      r: 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.get('draggable')) {__
                                      event.halt();__                                 }__                     },__                            dropAppend: function(eve
      nt) {__                                 var tree = event.tree;____                                  var index = tree.dragNode.get('parentNode').getChildrenLengt
      h() - 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: 'p
      ages'__         }__     ).render();____ ____    A.one('#' + treeElId).setData('treeInstance', treeview);____    __              var History = Liferay.HistoryMan
      ager;____               var DEFAULT_PLID = '0';____             var HISTORY_SELECTED_PLID = '_156_selPlid';____         var layoutsContainer = A.one('#_156_layo
      utsContainer');____             treeview.after(__                       'lastSelectedChange',__         function(event) {__                             var node
       = event.newVal;____                            var plid = TreeUtil.extractPlid(node);____                      var currentValue = History.get(HISTORY_SELECTED_
      PLID);____                              if (plid != currentValue) {__                               if ((plid == DEFAULT_PLID) && Lang.isValue(currentValue)) {_
      _                                               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(ST
      R_CHILDREN);____                                var length = children.length;____                       for (var i = 0; i < length; i++) {__
                      var item = children[i];____                                     if (item.isLeaf()) {__                                          if (compareItemI
      d(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 St
      ates)';____             ____                    available['fr_CA'] = 'French (Canada)';____         ____                        available['de_DE'] = 'German (Ge
      rmany)';____            ____                    available['hu_HU'] = 'Hungarian (Hungary)';____     ____                        available['pt_BR'] = 'Portuguese
       (Brazil)';____         ____                    available['es_ES'] = 'Spanish (Spain)';____         ____                var availableLanguageIds = A.Array.dedup
      e(__                    [defaultLanguageId].concat(A.Object.keys(available))__          );____      Liferay.InputLocalized.register(__                  '_156_ad
      dLayoutName',__                 {__                             boundingBox: '#_156_addLayoutNameBoundingBox',__                                columns: 20,__
                              contentBox: '#_156_addLayoutNameContentBox',____                            ____                                inputPlaceholder: '#_156
      _addLayoutName',__                              items: availableLanguageIds,__                      lazy: true,__                               name: '_156_name
      _',__                           namespace: '_156_addLayoutName_',__                             toggleSelection: false,__                               translat
      edLanguages: '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, i
      ndex, collection) {__                                   var childPortlets = [];__                               var total = 0;____
              var nodeChildren = item.children;__                                     var plid = item.objId;____                                      var checked = pl
      id && (plid in selectedPortlets);____                                   if (nodeChildren) {__                                   childPortlets = nodeChildren.lis
      t;__                                            total = childPortlets.length;__                         }____                                   var newNode = {_
      _                                               after: {__                                              checkedChange: function(event) {__
                                              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 (node
      Children) {__                                           newNode.children = TreeUtil.formatJSONResults(item);__                                  }____
                              output.push(newNode);__                         }__                     );____                  return output;__                }__
      };____  var initPanelSelectPortlets = 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
      .TreeNodeView","img":"","objId":"","children":{"javaClass":"java.util.ArrayList","list":[{"id":2,"parentId":1,"ls":"0","name":"Collaboration","javaClass":"com.l
      iferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.collaboration","children":{"javaClass":"java.util.ArrayList","list":[{"id":3,"parentId"
      :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.portal.kernel.util.TreeNodeVie
      w","img":"","objId":"115","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":5,"parentId":2,"ls":"0","n
      ame":"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","im
      g":"","objId":"114","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"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.ker
      nel.util.TreeNodeView","img":"","objId":"root//category.community","children":{"javaClass":"java.util.ArrayList","list":[{"id":9,"parentId":8,"ls":"0","name":"B
      ookmarks","javaClass":"com.liferay.portal.kernel.util.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":"","ob
      jId":"186","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":11,"parentId":8,"ls":"0","name":"Invitati
      on","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","chi
      ldren":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":13,"parentId":8,"ls":"0","name":"My Sites Directory","ja
      vaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"188","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javas
      cript:;","depth":2},{"id":14,"parentId":8,"ls":"0","name":"Page Comments","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"107","chil
      dren":{"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.ArrayList","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":{"ja
      vaClass":"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:;","dept
      h":2},{"id":18,"parentId":8,"ls":"1","name":"Site Members Directory","javaClass":"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":"","ob
      jId":"20","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":21,"parentId":19,"ls":"0","name":"Recent D
      ownloads","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"64","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"
      href":"javascript:;","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","javaCl
      ass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.finance","children":{"javaClass":"java.util.ArrayList","list":[{"id":25,"par
      entId":24,"ls":"0","name":"Currency Converter","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"16","children":{"javaClass":"java.uti
      l.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":26,"parentId":24,"ls":"1","name":"Loan Calculator","javaClass":"com.liferay.portal.ke
      rnel.util.TreeNodeView","img":"","objId":"61","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":fal
      se,"href":"javascript:;","depth":1},{"id":27,"parentId":1,"ls":"0","name":"News","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"roo
      t//category.news","children":{"javaClass":"java.util.ArrayList","list":[{"id":28,"parentId":27,"ls":"0","name":"Alerts","javaClass":"com.liferay.portal.kernel.u
      til.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":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"84","children":{"javaClass":"java.util.ArrayLis
      t","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth":1},{"id":30,"parentId":1,"ls":"0","name":"Sample","javaC
      lass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.sample","children":{"javaClass":"java.util.ArrayList","list":[{"id":31,"par
      entId":30,"ls":"0","name":"Hello World","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"47","children":{"javaClass":"java.util.Array
      List","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":32,"parentId":30,"ls":"1","name":"Hello Velocity","javaClass":"com.liferay.portal.kernel.uti
      l.TreeNodeView","img":"","objId":"50","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href
      ":"javascript:;","depth":1},{"id":33,"parentId":1,"ls":"0","name":"Shopping","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//c
      ategory.shopping","children":{"javaClass":"java.util.ArrayList","list":[{"id":34,"parentId":33,"ls":"0","name":"Amazon Rankings","javaClass":"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":"","objId":"34","children":{"javaClass":"java.util.Arra
      yList","list":[]},"leaf":true,"href":"javascript:;","depth":2}]},"leaf":false,"href":"javascript:;","depth":1},{"id":36,"parentId":1,"ls":"0","name":"Social","j
      avaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"root//category.social","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.A
      rrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":38,"parentId":36,"ls":"0","name":"Group Statistics","javaClass":"com.liferay.portal.kern
      el.util.TreeNodeView","img":"","objId":"181","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":39,"par
      entId":36,"ls":"0","name":"Requests","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"121","children":{"javaClass":"java.util.ArrayLi
      st","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//cate
      gory.tools","children":{"javaClass":"java.util.ArrayList","list":[{"id":42,"parentId":41,"ls":"0","name":"Dictionary","javaClass":"com.liferay.portal.kernel.uti
      l.TreeNodeView","img":"","objId":"23","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":43,"parentId":
      41,"ls":"0","name":"Language","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"82","children":{"javaClass":"java.util.ArrayList","lis
      t":[]},"leaf":true,"href":"javascript:;","depth":2},{"id":44,"parentId":41,"ls":"0","name":"Network Utilities","javaClass":"com.liferay.portal.kernel.util.TreeN
      odeView","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","nam
      e":"Sign In","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","img":"","objId":"58","children":{"javaClass":"java.util.ArrayList","list":[]},"leaf":tru
      e,"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 Conver
      ter","javaClass":"com.liferay.portal.kernel.util.TreeNodeView","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.ker
      nel.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","childre
      n":{"javaClass":"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(__                        {__                     after: {__                                      render:
      function() {__                                          A.one('#_156_selectPortletsTreeLoading').hide();__                                      }__
                      },__                            boundingBox: '#_156_selectPortletsTree',__                      children: [rootNode],__
      type: 'file'__                  }__             ).render();____         initPanelSelectPortlets = A.Lang.emptyFn;__     };____  __              initPanelSelectP
      ortlets();__    ____    Liferay.on(__           '_156_toggleLayoutTypeFields',__                function(event) {__                     if (event.type == 'panel
      ') {__                          initPanelSelectPortlets();__                    }__             }__ );__})();(function() {__    Liferay.Form.register(__
              {__                     id: '_156_addPageFm'____                        __                      , fieldRules: [____
      ____                                                    ____                                            {__
              body: '',__                                                             custom: false,__                                                        errorMes
      sage: '',__                                                             fieldName: '_156_name',__                                                       validato
      rName: 'required'__                                                     }____                           ____                            ]__
      ____                    __                              , onSubmit: function(event) {__                         event.preventDefault()__
              }__                     __              }__     );__})();(function() {__        new Liferay.Dockbar.AddPage(__          {__                     createPa
      geMessage: '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__         }__     );__})();(functi
      on() {__                                A.one('#rl8A').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['rl8AHandle'];____
              if (navbarCollapse.hasClass('open') && handle) {__                                                      handle.detach();____
                                      handle = null;__                                                    }__                                                 else {__
                                                                      handle = navbarCollapse.on(__                                                           'mousedo
      wnoutside',__                                                                   function(event) {__
              if (!btnNavbar.contains(event.target)) {__                                                                              Liferay.Data['rl8AHandle'] = nul
      l;____                                                                                  handle.detach();____
                                      navbarCollapse.removeClass('open');__                                                                   }__
                                                      }__                                                     );__
      }____                                                   navbarCollapse.toggleClass('open');____                                         Liferay.Data['rl8AHandle
      '] = handle;__                                          }__                                     },__                                    '.btn-navbar'__
                      );__                    })();(function() {__    var togglerDelegate;____        Liferay.component(__            '_156_regularlayoutsAdminLookAnd
      FeelColorsPanel',__             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');__})();(function() {__      var togglerDelegate;____        Liferay.
      component(__            '_156_regularlayoutsAdminLookAndFeelSettingsPanel',__           function() {__                  if (!togglerDelegate) {__
                      togglerDelegate = new A.TogglerDelegate(__                                      {__                                     animated: true,__
                                              closeAllOnExpand: false,__                                      container: '#regularlayoutsAdminLookAndFeelSettingsPanel
      ',__                                            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_regularlayoutsAdminLookAndFeelSettingsPanel');__
      })();(function() {__            var availableThemes = A.one('#regularavailableThemes');__           var colorSchemePanel = A.one('#regularlayoutsAdminLookAndFee
      lColorsPanel');__               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() {__                                  toggleDisabled(false);__                                }__
              );__            }__     })();(function() {__            if (window.parent) {__              var installMoreLink = A.one('#_156_installMore');____
                      if (installMoreLink) {__                                installMoreLink.on(__                           'click',__
              function(event) {__                                             event.preventDefault();____                                     window.parent.location =
       installMoreLink.attr('href');__                                        }__                         );__                        }__             }__     })();(fu
      nction() {__    var deleteLogoLink = A.one('#_156_deleteLogoLink');__   var useLogoInput = A.one('#_156_useLogo');__    var logoContainer = A.one('#_156_logoCon
      tainer');__     var logoFileNameInput = 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: 8
      20__            }__     };____  var saveInstance = A.one('#_156_saveInstance');____     if (saveInstance) {__           saveInstance.on(__
      'click',__                      function(event) {__                             config.dialog.title = '\u0044\u0065\u0076\u0069\u0063\u0065\u0020\u0046\u0061\u0
      06d\u0069\u006c\u0069\u0065\u0073';____                         config.id = '_156_ruleGroups';__                        config.uri = 'http://localhost:8080/grou
      p/control_panel/manage?p_p_auth=Y0LKqhzs&p_p_id=178&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&doAsGroupId=10184&refererPlid=10187&controlPanelCategory=curr
      ent_site.pages&_178_groupId=10184&_178_chooseCallback=_156_saveRuleGroupInstance&_178_classPK=10186&_178_className=com.liferay.portal.model.LayoutSet&_178_strut
      s_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 = '\u0052\u0075\u006c\u0065\u0020\u0050\u0072\u0069\u006f\u0072\u0069\u0074\
      u0069\u0065\u0073';____                         config.id = '_156_ruleGroupsPriorities';__                      config.uri = 'http://localhost:8080/group/contro
      l_panel/manage?p_p_auth=Y0LKqhzs&p_p_id=178&p_p_lifecycle=0&p_p_state=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_actio
      n=%2Fmobile_device_rules%2Fedit_rule_group_instance';____                               Liferay.Util.openWindow(config);__                      }__
      );__    }__})();(function() {__         new Liferay.SearchContainer(__                  {__                     classNameHover: 'hover',__
              hover: true,__                          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 selectTabBySectionId(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 updateS
      ectionStatus() {__                                      var tabNode = tabview.get('selection').get('boundingBox');____                                  var sect
      ionId = tabNode.getData('sectionId');____                                       var modifiedSectionsNode = 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() || lo
      cation.href);____                                               url.setAnchor(null);__                                  url.setParameter('_156_historyKey', sect
      ionId);____                                             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 currentAncho
      r = currentUrl.getAnchor();____                         if (!currentAnchor) {__                         currentAnchor = currentUrl.getParameter('_156_historyKey
      ');__                           }____                           if (currentAnchor) {__                          var locationSectionId = currentAnchor.substring(
      currentAnchor.indexOf('=') + 1);____                                    if (locationSectionId.indexOf('_156_') === -1) {__
              locationSectionId = '_156_' + locationSectionId;__                                      }____                                   selectTabBySectionId(loc
      ationSectionId);__                              }____                           if (false) {__                          Liferay.fire('formNavigator:reveal_156_n
      ull');__                                }__                     })();(function() {__    Liferay.Form.register(__                {__                     id: '_15
      6_fm'____                       __                              , fieldRules: [____                             ____                            ]__
              ____                    __                              , onSubmit: function(event) {__                         event.preventDefault(); _156_saveLayouts
      et();__                         }__                     __              }__     );__})();(function() {__        var popup;____  var clickHandler = function(even
      t) {__          var dataValue = event.target.ancestor('li').attr('data-value');____             if (dataValue === 'add-page' || dataValue === 'add-child-page')
      {__                     var content = A.one('#_156_addLayout');____                     if (!popup) {__                         popup = Liferay.Util.Window.getW
      indow(__                                        {__                                             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=Ikl1oWII&p_p_id=49&p_p_li
      fecycle=1&p_p_state=maximized&p_p_mode=view&doAsGroupId=10184&refererPlid=10187&controlPanelCategory=current_site.pages&_49_groupId=10184&_49_struts_action=%2Fm
      y_sites%2Fview&_49_privateLayout=false').focus();__             }__             else if (dataValue === 'import') {__                    __
              __                              __                              __                          __                          __
      __                      ____                    Liferay.Util.openWindow(__                          {__                                 id: '_156_importDialog',
      __                                      title: '\u0049\u006d\u0070\u006f\u0072\u0074',__                                uri: 'http://localhost:8080/group/contro
      l_panel/manage?p_p_auth=NN74olhR&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=10184&_156_privat
      eLayout=false'__                                }__                     );__            }__         else if (dataValue === 'export') {__
      __                              __                              __                              __                      __                              __
                              __                      ____                    Liferay.Util.openWindow(__                      {__
      id: '_156_exportDialog',__                                      title: '\u0045\u0078\u0070\u006f\u0072\u0074',__                                        uri: 'ht
      tp://localhost:8080/group/control_panel/manage?p_p_auth=NN74olhR&p_p_id=156&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&doAsGroupId=10184&refererPlid=10187&c
      ontrolPanelCategory=current_site.pages&_156_rootNodeName=Public+Pages&_156_groupId=10184&_156_cmd=export&_156_struts_action=%2Fgroup_pages%2Fexport_layouts&_156
      _liveGroupId=10184&_156_privateLayout=false'__                          }__                     );__            }__     };____  A.one('#_156_layoutsNav').delega
      te('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.preventDef
      ault();____                             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,__                                         {__
                                              historyKey: historyKey__                                        }__                                     );____
                              layoutsContainer.io.set('uri', requestUri);____                             if (layoutsContainer.ParseContent) {__
                              layoutsContainer.ParseContent.get('queue').stop();__                            }____                                   layoutsContainer
      .io.start();__                          }__                     },__                    '.tree-node-content'__          );__    })();(function() {__    var togg
      lerDelegate;____        Liferay.component(__            '_160_controlPanelMenuAddContentPanelContainer',__              function() {__                  if (!tog
      glerDelegate) {__                               togglerDelegate = new A.TogglerDelegate(__                              {__
              animated: true,__                                               closeAllOnExpand: true,__                                       container: '#controlPane
      lMenuAddContentPanelContainer',__                                               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);__
              }__                                                     }__                                     },__                                            transiti
      on: {__                                                 duration: .3__                                  }__                                     }__
                      );__                    }____                   return togglerDelegate;__           }__ );____  Liferay.component('_160_controlPanelMenuAddConte
      ntPanelContainer');__})();(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 Life
      ray.Notice(liferayNotices[i]);__        }____   __              Liferay.Poller.init(__              {__                         encryptedUserId: 'ITmCei+xYifkTY
      rnktWVaA==',__                          supportsComet: false__                  }__             );__    __})();(function() {__                  Liferay.Session
      = new Liferay.SessionBase(__                            {__                                     autoExtend: false,__                                    sessionL
      ength: 30,__                                    redirectOnExpire: false,__                              redirectUrl: 'http\x3a\x2f\x2flocalhost\x3a8080\x2fweb\x
      2fguest',__                                     warningLength: 1__                              }__             );____                  __
              Liferay.Session.plug(Liferay.SessionDisplay);__                 __              })();(function() {Liferay.Menu.register('_145_controlPanelSiteSelector')
      ;})();(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_admin
      LinksHandle'] = 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').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_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.d
      etach();____                                                                    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 navbarCollapse = 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

          Issue Links

            Activity

              People

              • Assignee:
                ginson.ren Ginson Ren
                Reporter:
                ginson.ren Ginson Ren
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 7 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.0 CE RC2