moove tab create
This commit is contained in:
parent
c4a1999368
commit
5aa980df91
|
@ -130,7 +130,8 @@ define([
|
|||
'add:slide' : this.onAddSlide.bind(this),
|
||||
'change:slide' : this.onChangeSlide.bind(this),
|
||||
'change:compact' : this.onClickChangeCompact,
|
||||
'add:chart' : this.onSelectChart
|
||||
'add:chart' : this.onSelectChart,
|
||||
'transit:settab' : this.setTrantitTab
|
||||
},
|
||||
'FileMenu': {
|
||||
'menu:hide': this.onFileMenu.bind(this, 'hide'),
|
||||
|
@ -2385,7 +2386,14 @@ define([
|
|||
this.toolbar.createDelayedElements();
|
||||
this.attachUIEvents(this.toolbar);
|
||||
},
|
||||
|
||||
setTrantitTab:function (){
|
||||
var tab = {action: 'transit', caption: this.toolbar.textTabTransitions};
|
||||
var $panel = this.getApplication().getController('Transitions').createToolbarPanel();
|
||||
if ( $panel ) {
|
||||
this.toolbar.addTab(tab, $panel, 3);
|
||||
this.toolbar.setVisible('transit', true);
|
||||
}
|
||||
},
|
||||
onAppShowed: function (config) {
|
||||
var me = this;
|
||||
|
||||
|
@ -2403,15 +2411,15 @@ define([
|
|||
var tab = {action: 'review', caption: me.toolbar.textTabCollaboration};
|
||||
var $panel = me.getApplication().getController('Common.Controllers.ReviewChanges').createToolbarPanel();
|
||||
if ( $panel ) {
|
||||
me.toolbar.addTab(tab, $panel, 3);
|
||||
me.toolbar.addTab(tab, $panel, 4);
|
||||
me.toolbar.setVisible('review', config.isEdit || config.canViewReview || config.canCoAuthoring && config.canComments);
|
||||
}
|
||||
var tab = {action: 'transit', caption: me.toolbar.textTabTransitions};
|
||||
/*var tab = {action: 'transit', caption: me.toolbar.textTabTransitions};
|
||||
var $panel = me.getApplication().getController('Transitions').createToolbarPanel();
|
||||
if ( $panel ) {
|
||||
me.toolbar.addTab(tab, $panel, 3);
|
||||
me.toolbar.setVisible('transit', true);
|
||||
}
|
||||
}*/
|
||||
if ( config.isEdit ) {
|
||||
me.toolbar.setMode(config);
|
||||
|
||||
|
|
|
@ -142,6 +142,7 @@
|
|||
<span class="btn-slot text x-huge" id="slot-btn-insvideo"></span>
|
||||
</div>
|
||||
</section>
|
||||
<!-- <section id="transitions-panel" class="panel" data-tab="transit"> </section>-->
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
|
@ -1,4 +1,4 @@
|
|||
<section id="transitions-panel" class="panel" data-tab="transit">
|
||||
<section id="transitions-panel" class="panel" data-tab="transit">
|
||||
<div class="group flex small" id="transit-field-effects" style=" width: 63%; min-width: 300px; " ></div>
|
||||
|
||||
<div class="group small">
|
||||
|
|
|
@ -987,6 +987,7 @@ define([
|
|||
me.isCompactView = mode.compactview;
|
||||
if ( mode.isEdit ) {
|
||||
me.$el.html(me.rendererComponents(me.$layout));
|
||||
|
||||
} else {
|
||||
me.$layout.find('.canedit').hide();
|
||||
me.$layout.addClass('folded');
|
||||
|
@ -1005,6 +1006,7 @@ define([
|
|||
if ( mode.isEdit ) {
|
||||
me.setTab('home');
|
||||
me.processPanelVisible();
|
||||
this.fireEvent('transit:settab',[this]);
|
||||
}
|
||||
|
||||
if ( me.isCompactView )
|
||||
|
|
|
@ -261,7 +261,7 @@ define([
|
|||
});
|
||||
|
||||
this.chStartOnClick = new Common.UI.CheckBox({
|
||||
el: this.$el.findById('#transit-checkbox-slidenum'),
|
||||
el: this.$el.find('#transit-checkbox-slidenum'),
|
||||
labelText: this.strStartOnClick
|
||||
});
|
||||
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
input {
|
||||
text-align: left;
|
||||
}
|
||||
.dropdown-menu li a{
|
||||
padding: 7px 20px;
|
||||
|
||||
}
|
||||
|
||||
.item {
|
||||
background: transparent;
|
||||
|
|
Loading…
Reference in a new issue