Commit 91690fda authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Implementa Sidebar superpuesto en tamaño reducido

parent 428d1ea5
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -282,12 +282,20 @@ define([

			domClass.add(this.ownerDocumentBody, this.reducedWidthClass);
			domClass.remove(this.ownerDocumentBody, this.uncollapsedSidebarClass);

			this._publish(this.sidebar.getChannel('SHOW'), {
				node: this.domNode
			});
		},

		_unsetReducedWidth: function() {

			domClass.remove(this.ownerDocumentBody, this.reducedWidthClass);
			domClass.add(this.ownerDocumentBody, this.uncollapsedSidebarClass);

			this._publish(this.sidebar.getChannel('SHOW'), {
				node: this.sidebarNode
			});
		},

		_onAppHide: function() {
+6 −4
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ define([
					AVAILABLE_ALLOWED_MODULES: "availableAllowedModules"
				},

				primaryClass: "primary.main-nav",
				'class': "main-nav primarySidebar",
				primaryActiveItem: null,
				suffixI18n: '',
				items: null
@@ -85,6 +85,10 @@ define([

		_afterShow: function() {

			if (this._getPreviouslyShown()) {
				return;
			}

			this._createPrimaryNavMenu();

			if (this.items) {
@@ -136,9 +140,7 @@ define([
				return;
			}

			var primaryNav = 'nav.' + this.primaryClass;

			this.primaryNavNode = put(this.domNode, primaryNav);
			this.primaryNavNode = put(this.domNode, 'nav');
			this.primaryNavMenuNode = put(this.primaryNavNode, "ul");
		},

+2 −2
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ define([
		constructor: function(args) {

			this.config = {
				secondaryClass: 'secondary.main-nav.retiring',
				secondaryClass: 'main-nav.secondarySidebar.retiring',
				secondaryActiveItem: null,
				clickToCloseSecondaryListener: null,
				subitems: 'modules'
@@ -97,7 +97,7 @@ define([

			var secondaryNav = "nav." + this.secondaryClass;

			this.secondaryNavNode = put(document.body, secondaryNav);
			this.secondaryNavNode = put(this.ownerDocumentBody, secondaryNav);
			this.secondaryNavMenuNode = put(this.secondaryNavNode, "ul");
		},

Compare bed64ce1 to c0ad54f7
Original line number Diff line number Diff line
Subproject commit bed64ce1c0219ea2077fc5b5b815a9afcdba0a25
Subproject commit c0ad54f72d44ed5d297ebd67be49de5729edadb3