fix bugs
This commit is contained in:
		
							parent
							
								
									40263d2201
								
							
						
					
					
						commit
						d2696ce618
					
				| 
						 | 
					@ -816,6 +816,11 @@ define([
 | 
				
			||||||
                        this.leftMenu.panelThumbnails.hide();
 | 
					                        this.leftMenu.panelThumbnails.hide();
 | 
				
			||||||
                        this.leftMenu.onBtnMenuClick(this.leftMenu.btnThumbnails);
 | 
					                        this.leftMenu.onBtnMenuClick(this.leftMenu.btnThumbnails);
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					                    else if (this.leftMenu.btnNavigation.isActive()) {
 | 
				
			||||||
 | 
					                        this.leftMenu.btnNavigation.toggle(false);
 | 
				
			||||||
 | 
					                        this.leftMenu.panelNavigation.hide();
 | 
				
			||||||
 | 
					                        this.leftMenu.onBtnMenuClick(this.leftMenu.btnNavigation);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -117,6 +117,7 @@ define([
 | 
				
			||||||
            panelNavigation.btnSettingsMenu.on('item:click',           _.bind(this.onMenuSettingsItemClick, this));
 | 
					            panelNavigation.btnSettingsMenu.on('item:click',           _.bind(this.onMenuSettingsItemClick, this));
 | 
				
			||||||
            panelNavigation.btnSettingsMenu.items[2].menu.on('item:click', _.bind(this.onMenuLevelsItemClick, this));
 | 
					            panelNavigation.btnSettingsMenu.items[2].menu.on('item:click', _.bind(this.onMenuLevelsItemClick, this));
 | 
				
			||||||
            panelNavigation.btnSettingsMenu.items[4].menu.on('item:click', _.bind(this.onMenuFontSizeClick, this));
 | 
					            panelNavigation.btnSettingsMenu.items[4].menu.on('item:click', _.bind(this.onMenuFontSizeClick, this));
 | 
				
			||||||
 | 
					            panelNavigation.btnClose.on('click', _.bind(this.onClickClosePanel, this));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            var viewport = this.getApplication().getController('Viewport').getView('Viewport');
 | 
					            var viewport = this.getApplication().getController('Viewport').getView('Viewport');
 | 
				
			||||||
            viewport.hlayout.on('layout:resizedrag',  function () {
 | 
					            viewport.hlayout.on('layout:resizedrag',  function () {
 | 
				
			||||||
| 
						 | 
					@ -263,6 +264,9 @@ define([
 | 
				
			||||||
                this.panelNavigation.viewNavigationList.collapseAll();
 | 
					                this.panelNavigation.viewNavigationList.collapseAll();
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
					        onClickClosePanel: function() {
 | 
				
			||||||
 | 
					            Common.NotificationCenter.trigger('leftmenu:change', 'hide');
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        onMenuSettingsItemClick: function (menu, item){
 | 
					        onMenuSettingsItemClick: function (menu, item){
 | 
				
			||||||
            switch (item.value){
 | 
					            switch (item.value){
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -154,7 +154,7 @@ define([
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            this.btnNavigation = new Common.UI.Button({
 | 
					            this.btnNavigation = new Common.UI.Button({
 | 
				
			||||||
                el: $markup.elementById('#left-btn-navigation'),
 | 
					                el: $markup.elementById('#left-btn-navigation'),
 | 
				
			||||||
                hint: this.tipNavigation,
 | 
					                hint: this.tipOutline,
 | 
				
			||||||
                enableToggle: true,
 | 
					                enableToggle: true,
 | 
				
			||||||
                disabled: true,
 | 
					                disabled: true,
 | 
				
			||||||
                toggleGroup: 'leftMenuGroup'
 | 
					                toggleGroup: 'leftMenuGroup'
 | 
				
			||||||
| 
						 | 
					@ -501,6 +501,7 @@ define([
 | 
				
			||||||
        txtTrial: 'TRIAL MODE',
 | 
					        txtTrial: 'TRIAL MODE',
 | 
				
			||||||
        txtTrialDev: 'Trial Developer Mode',
 | 
					        txtTrialDev: 'Trial Developer Mode',
 | 
				
			||||||
        tipNavigation: 'Navigation',
 | 
					        tipNavigation: 'Navigation',
 | 
				
			||||||
 | 
					        tipOutline: 'Outline',
 | 
				
			||||||
        txtLimit: 'Limit Access'
 | 
					        txtLimit: 'Limit Access'
 | 
				
			||||||
    }, DE.Views.LeftMenu || {}));
 | 
					    }, DE.Views.LeftMenu || {}));
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -76,14 +76,14 @@ define([
 | 
				
			||||||
                parentEl: $('#navigation-btn-close', this.$el),
 | 
					                parentEl: $('#navigation-btn-close', this.$el),
 | 
				
			||||||
                cls: 'btn-toolbar',
 | 
					                cls: 'btn-toolbar',
 | 
				
			||||||
                iconCls: 'toolbar__icon btn-close',
 | 
					                iconCls: 'toolbar__icon btn-close',
 | 
				
			||||||
                hint: this.textClosePanel
 | 
					                hint: this.txtClosePanel,
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            this.btnSettings = new Common.UI.Button({
 | 
					            this.btnSettings = new Common.UI.Button({
 | 
				
			||||||
                parentEl: $('#navigation-btn-settings', this.$el),
 | 
					                parentEl: $('#navigation-btn-settings', this.$el),
 | 
				
			||||||
                cls: 'btn-toolbar',
 | 
					                cls: 'btn-toolbar',
 | 
				
			||||||
                iconCls: 'toolbar__icon btn-settings',
 | 
					                iconCls: 'toolbar__icon btn-settings',
 | 
				
			||||||
                hint: this.textSort,
 | 
					                hint: this.txtSettings,
 | 
				
			||||||
                menu: new Common.UI.Menu({
 | 
					                menu: new Common.UI.Menu({
 | 
				
			||||||
                    menuAlign: 'tr-br',
 | 
					                    menuAlign: 'tr-br',
 | 
				
			||||||
                    style: 'min-width: auto;',
 | 
					                    style: 'min-width: auto;',
 | 
				
			||||||
| 
						 | 
					@ -282,6 +282,9 @@ define([
 | 
				
			||||||
        txtFontSize: "Font size",
 | 
					        txtFontSize: "Font size",
 | 
				
			||||||
        txtSmall: "Small",
 | 
					        txtSmall: "Small",
 | 
				
			||||||
        txtMedium: "Medium",
 | 
					        txtMedium: "Medium",
 | 
				
			||||||
        txtLarge:"Large"
 | 
					        txtLarge:"Large",
 | 
				
			||||||
 | 
					        txtClosePanel: "Close outline",
 | 
				
			||||||
 | 
					        txtSettings: "Outline settings"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }, DE.Views.Navigation || {}));
 | 
					    }, DE.Views.Navigation || {}));
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
| 
						 | 
					@ -135,7 +135,7 @@ define([
 | 
				
			||||||
                    cls: 'btn-toolbar x-huge icon-top',
 | 
					                    cls: 'btn-toolbar x-huge icon-top',
 | 
				
			||||||
                    iconCls: 'toolbar__icon btn-menu-navigation',
 | 
					                    iconCls: 'toolbar__icon btn-menu-navigation',
 | 
				
			||||||
                    lock: [_set.lostConnect, _set.disableOnStart],
 | 
					                    lock: [_set.lostConnect, _set.disableOnStart],
 | 
				
			||||||
                    caption: this.textNavigation,
 | 
					                    caption: this.textOutline,
 | 
				
			||||||
                    enableToggle: true,
 | 
					                    enableToggle: true,
 | 
				
			||||||
                    dataHint: '1',
 | 
					                    dataHint: '1',
 | 
				
			||||||
                    dataHintDirection: 'bottom',
 | 
					                    dataHintDirection: 'bottom',
 | 
				
			||||||
| 
						 | 
					@ -305,6 +305,7 @@ define([
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            textNavigation: 'Navigation',
 | 
					            textNavigation: 'Navigation',
 | 
				
			||||||
 | 
					            textOutline: 'Outline',
 | 
				
			||||||
            textZoom: 'Zoom',
 | 
					            textZoom: 'Zoom',
 | 
				
			||||||
            textFitToPage: 'Fit To Page',
 | 
					            textFitToPage: 'Fit To Page',
 | 
				
			||||||
            textFitToWidth: 'Fit To Width',
 | 
					            textFitToWidth: 'Fit To Width',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2017,6 +2017,7 @@
 | 
				
			||||||
  "DE.Views.LeftMenu.tipChat": "Chat",
 | 
					  "DE.Views.LeftMenu.tipChat": "Chat",
 | 
				
			||||||
  "DE.Views.LeftMenu.tipComments": "Comments",
 | 
					  "DE.Views.LeftMenu.tipComments": "Comments",
 | 
				
			||||||
  "DE.Views.LeftMenu.tipNavigation": "Navigation",
 | 
					  "DE.Views.LeftMenu.tipNavigation": "Navigation",
 | 
				
			||||||
 | 
					  "DE.Views.LeftMenu.tipOutline": "Outline",
 | 
				
			||||||
  "DE.Views.LeftMenu.tipPlugins": "Plugins",
 | 
					  "DE.Views.LeftMenu.tipPlugins": "Plugins",
 | 
				
			||||||
  "DE.Views.LeftMenu.tipSearch": "Search",
 | 
					  "DE.Views.LeftMenu.tipSearch": "Search",
 | 
				
			||||||
  "DE.Views.LeftMenu.tipSupport": "Feedback & Support",
 | 
					  "DE.Views.LeftMenu.tipSupport": "Feedback & Support",
 | 
				
			||||||
| 
						 | 
					@ -2142,6 +2143,7 @@
 | 
				
			||||||
  "DE.Views.MailMergeSettings.txtUntitled": "Untitled",
 | 
					  "DE.Views.MailMergeSettings.txtUntitled": "Untitled",
 | 
				
			||||||
  "DE.Views.MailMergeSettings.warnProcessMailMerge": "Starting merge failed",
 | 
					  "DE.Views.MailMergeSettings.warnProcessMailMerge": "Starting merge failed",
 | 
				
			||||||
  "DE.Views.Navigation.strNavigate": "Outline",
 | 
					  "DE.Views.Navigation.strNavigate": "Outline",
 | 
				
			||||||
 | 
					  "DE.Views.Navigation.txtClosePanel": "Close outline",
 | 
				
			||||||
  "DE.Views.Navigation.txtCollapse": "Collapse all",
 | 
					  "DE.Views.Navigation.txtCollapse": "Collapse all",
 | 
				
			||||||
  "DE.Views.Navigation.txtDemote": "Demote",
 | 
					  "DE.Views.Navigation.txtDemote": "Demote",
 | 
				
			||||||
  "DE.Views.Navigation.txtEmpty": "There are no headings in the document.<br>Apply a heading style to the text so that it appears in the table of contents.",
 | 
					  "DE.Views.Navigation.txtEmpty": "There are no headings in the document.<br>Apply a heading style to the text so that it appears in the table of contents.",
 | 
				
			||||||
| 
						 | 
					@ -2157,6 +2159,7 @@
 | 
				
			||||||
  "DE.Views.Navigation.txtNewHeading": "New subheading",
 | 
					  "DE.Views.Navigation.txtNewHeading": "New subheading",
 | 
				
			||||||
  "DE.Views.Navigation.txtPromote": "Promote",
 | 
					  "DE.Views.Navigation.txtPromote": "Promote",
 | 
				
			||||||
  "DE.Views.Navigation.txtSelect": "Select content",
 | 
					  "DE.Views.Navigation.txtSelect": "Select content",
 | 
				
			||||||
 | 
					  "DE.Views.Navigation.txtSettings": "Outline settings",
 | 
				
			||||||
  "DE.Views.Navigation.txtSmall": "Small",
 | 
					  "DE.Views.Navigation.txtSmall": "Small",
 | 
				
			||||||
  "DE.Views.Navigation.txtWrapHeadings": "Wrap long headings",
 | 
					  "DE.Views.Navigation.txtWrapHeadings": "Wrap long headings",
 | 
				
			||||||
  "DE.Views.NoteSettingsDialog.textApply": "Apply",
 | 
					  "DE.Views.NoteSettingsDialog.textApply": "Apply",
 | 
				
			||||||
| 
						 | 
					@ -2852,6 +2855,7 @@
 | 
				
			||||||
  "DE.Views.ViewTab.textFitToWidth": "Fit To Width",
 | 
					  "DE.Views.ViewTab.textFitToWidth": "Fit To Width",
 | 
				
			||||||
  "DE.Views.ViewTab.textInterfaceTheme": "Interface theme",
 | 
					  "DE.Views.ViewTab.textInterfaceTheme": "Interface theme",
 | 
				
			||||||
  "DE.Views.ViewTab.textNavigation": "Navigation",
 | 
					  "DE.Views.ViewTab.textNavigation": "Navigation",
 | 
				
			||||||
 | 
					  "DE.Views.ViewTab.textOutline": "Outline",
 | 
				
			||||||
  "DE.Views.ViewTab.textRulers": "Rulers",
 | 
					  "DE.Views.ViewTab.textRulers": "Rulers",
 | 
				
			||||||
  "DE.Views.ViewTab.textStatusBar": "Status Bar",
 | 
					  "DE.Views.ViewTab.textStatusBar": "Status Bar",
 | 
				
			||||||
  "DE.Views.ViewTab.textZoom": "Zoom",
 | 
					  "DE.Views.ViewTab.textZoom": "Zoom",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue