Remove unused
This commit is contained in:
		
							parent
							
								
									8dfa0e4d3a
								
							
						
					
					
						commit
						cb51144092
					
				| 
						 | 
				
			
			@ -253,15 +253,6 @@ define([
 | 
			
		|||
                }
 | 
			
		||||
            },
 | 
			
		||||
 | 
			
		||||
            showExternalEditor: function () {
 | 
			
		||||
                if ( externalEditor ) {
 | 
			
		||||
                    var value = Common.localStorage.getItem("ui-theme-id", "theme-light");
 | 
			
		||||
                    externalEditor.serviceCommand('theme:change', value);
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                this.diagramEditorView.show();
 | 
			
		||||
            },
 | 
			
		||||
 | 
			
		||||
            warningTitle: 'Warning',
 | 
			
		||||
            warningText: 'The object is disabled because of editing by another user.',
 | 
			
		||||
            textClose: 'Close',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -249,15 +249,6 @@ define([
 | 
			
		|||
                }
 | 
			
		||||
            },
 | 
			
		||||
 | 
			
		||||
            showExternalEditor: function () {
 | 
			
		||||
                if ( externalEditor ) {
 | 
			
		||||
                    var value = Common.localStorage.getItem("ui-theme-id", "theme-light");
 | 
			
		||||
                    externalEditor.serviceCommand('theme:change', value);
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                this.oleEditorView.show();
 | 
			
		||||
            },
 | 
			
		||||
 | 
			
		||||
            warningTitle: 'Warning',
 | 
			
		||||
            warningText: 'The object is disabled because of editing by another user.',
 | 
			
		||||
            textClose: 'Close',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2159,14 +2159,12 @@ define([
 | 
			
		|||
                    chart.changeType(type);
 | 
			
		||||
                Common.NotificationCenter.trigger('edit:complete', this.toolbar);
 | 
			
		||||
            } else {
 | 
			
		||||
                var controller = this.getApplication().getController('Common.Controllers.ExternalDiagramEditor');
 | 
			
		||||
                if (!this.diagramEditor)
 | 
			
		||||
                    this.diagramEditor = controller.getView('Common.Views.ExternalDiagramEditor');
 | 
			
		||||
                    this.diagramEditor = this.getApplication().getController('Common.Controllers.ExternalDiagramEditor').getView('Common.Views.ExternalDiagramEditor');
 | 
			
		||||
 | 
			
		||||
                if (this.diagramEditor && me.api) {
 | 
			
		||||
                    this.diagramEditor.setEditMode(false);
 | 
			
		||||
                    // this.diagramEditor.show();
 | 
			
		||||
                    controller.showExternalEditor();
 | 
			
		||||
                    this.diagramEditor.show();
 | 
			
		||||
 | 
			
		||||
                    chart = me.api.asc_getChartObject(type);
 | 
			
		||||
                    if (chart) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue