[DE PE SSE] Fix alt hints for compact toolbar
This commit is contained in:
parent
18223e75e2
commit
bab6d85c5b
|
@ -3199,6 +3199,7 @@ define([
|
||||||
|
|
||||||
// move 'paste' button to the container instead of 'undo' and 'redo'
|
// move 'paste' button to the container instead of 'undo' and 'redo'
|
||||||
me.toolbar.btnPaste.$el.detach().appendTo($box);
|
me.toolbar.btnPaste.$el.detach().appendTo($box);
|
||||||
|
me.toolbar.btnPaste.$el.find('button').attr('data-hint-direction', 'bottom');
|
||||||
me.toolbar.btnCopy.$el.removeClass('split');
|
me.toolbar.btnCopy.$el.removeClass('split');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,10 @@ define([
|
||||||
id: 'id-toolbar-btn-print',
|
id: 'id-toolbar-btn-print',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-print no-mask',
|
iconCls: 'toolbar__icon btn-print no-mask',
|
||||||
signals: ['disabled']
|
signals: ['disabled'],
|
||||||
|
dataHint: '1',
|
||||||
|
dataHintDirection: 'top',
|
||||||
|
dataHintTitle: 'P'
|
||||||
});
|
});
|
||||||
this.toolbarControls.push(this.btnPrint);
|
this.toolbarControls.push(this.btnPrint);
|
||||||
|
|
||||||
|
@ -133,7 +136,10 @@ define([
|
||||||
id: 'id-toolbar-btn-save',
|
id: 'id-toolbar-btn-save',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon no-mask ' + this.btnSaveCls,
|
iconCls: 'toolbar__icon no-mask ' + this.btnSaveCls,
|
||||||
signals: ['disabled']
|
signals: ['disabled'],
|
||||||
|
dataHint: '1',
|
||||||
|
dataHintDirection: 'bottom',
|
||||||
|
dataHintTitle: 'S'
|
||||||
});
|
});
|
||||||
this.toolbarControls.push(this.btnSave);
|
this.toolbarControls.push(this.btnSave);
|
||||||
this.btnCollabChanges = this.btnSave;
|
this.btnCollabChanges = this.btnSave;
|
||||||
|
@ -142,7 +148,10 @@ define([
|
||||||
id: 'id-toolbar-btn-undo',
|
id: 'id-toolbar-btn-undo',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-undo',
|
iconCls: 'toolbar__icon btn-undo',
|
||||||
signals: ['disabled']
|
signals: ['disabled'],
|
||||||
|
dataHint: '1',
|
||||||
|
dataHintDirection: 'bottom',
|
||||||
|
dataHintTitle: 'Z'
|
||||||
});
|
});
|
||||||
this.toolbarControls.push(this.btnUndo);
|
this.toolbarControls.push(this.btnUndo);
|
||||||
|
|
||||||
|
@ -150,7 +159,10 @@ define([
|
||||||
id: 'id-toolbar-btn-redo',
|
id: 'id-toolbar-btn-redo',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-redo',
|
iconCls: 'toolbar__icon btn-redo',
|
||||||
signals: ['disabled']
|
signals: ['disabled'],
|
||||||
|
dataHint: '1',
|
||||||
|
dataHintDirection: 'bottom',
|
||||||
|
dataHintTitle: 'Y'
|
||||||
});
|
});
|
||||||
this.toolbarControls.push(this.btnRedo);
|
this.toolbarControls.push(this.btnRedo);
|
||||||
|
|
||||||
|
@ -169,8 +181,8 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-paste',
|
iconCls: 'toolbar__icon btn-paste',
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'top',
|
||||||
dataHintTitle: 'P'
|
dataHintTitle: 'V'
|
||||||
});
|
});
|
||||||
this.paragraphControls.push(this.btnPaste);
|
this.paragraphControls.push(this.btnPaste);
|
||||||
|
|
||||||
|
|
|
@ -2444,6 +2444,7 @@ define([
|
||||||
|
|
||||||
// move 'paste' button to the container instead of 'undo' and 'redo'
|
// move 'paste' button to the container instead of 'undo' and 'redo'
|
||||||
me.toolbar.btnPaste.$el.detach().appendTo($box);
|
me.toolbar.btnPaste.$el.detach().appendTo($box);
|
||||||
|
me.toolbar.btnPaste.$el.find('button').attr('data-hint-direction', 'bottom');
|
||||||
me.toolbar.btnCopy.$el.removeClass('split');
|
me.toolbar.btnCopy.$el.removeClass('split');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,10 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-print no-mask',
|
iconCls: 'toolbar__icon btn-print no-mask',
|
||||||
lock: [_set.slideDeleted, _set.noSlides, _set.cantPrint, _set.disableOnStart],
|
lock: [_set.slideDeleted, _set.noSlides, _set.cantPrint, _set.disableOnStart],
|
||||||
signals: ['disabled']
|
signals: ['disabled'],
|
||||||
|
dataHint: '1',
|
||||||
|
dataHintDirection: 'top',
|
||||||
|
dataHintTitle: 'P'
|
||||||
});
|
});
|
||||||
me.slideOnlyControls.push(me.btnPrint);
|
me.slideOnlyControls.push(me.btnPrint);
|
||||||
|
|
||||||
|
@ -195,7 +198,10 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon no-mask ' + me.btnSaveCls,
|
iconCls: 'toolbar__icon no-mask ' + me.btnSaveCls,
|
||||||
lock: [_set.lostConnect],
|
lock: [_set.lostConnect],
|
||||||
signals: ['disabled']
|
signals: ['disabled'],
|
||||||
|
dataHint: '1',
|
||||||
|
dataHintDirection: 'bottom',
|
||||||
|
dataHintTitle: 'S'
|
||||||
});
|
});
|
||||||
me.btnCollabChanges = me.btnSave;
|
me.btnCollabChanges = me.btnSave;
|
||||||
|
|
||||||
|
@ -204,7 +210,10 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-undo',
|
iconCls: 'toolbar__icon btn-undo',
|
||||||
lock: [_set.undoLock, _set.slideDeleted, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.undoLock, _set.slideDeleted, _set.lostConnect, _set.disableOnStart],
|
||||||
signals: ['disabled']
|
signals: ['disabled'],
|
||||||
|
dataHint: '1',
|
||||||
|
dataHintDirection: 'bottom',
|
||||||
|
dataHintTitle: 'Z'
|
||||||
});
|
});
|
||||||
me.slideOnlyControls.push(me.btnUndo);
|
me.slideOnlyControls.push(me.btnUndo);
|
||||||
|
|
||||||
|
@ -213,7 +222,10 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-redo',
|
iconCls: 'toolbar__icon btn-redo',
|
||||||
lock: [_set.redoLock, _set.slideDeleted, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.redoLock, _set.slideDeleted, _set.lostConnect, _set.disableOnStart],
|
||||||
signals: ['disabled']
|
signals: ['disabled'],
|
||||||
|
dataHint: '1',
|
||||||
|
dataHintDirection: 'bottom',
|
||||||
|
dataHintTitle: 'Y'
|
||||||
});
|
});
|
||||||
me.slideOnlyControls.push(me.btnRedo);
|
me.slideOnlyControls.push(me.btnRedo);
|
||||||
|
|
||||||
|
@ -234,8 +246,8 @@ define([
|
||||||
iconCls: 'toolbar__icon btn-paste',
|
iconCls: 'toolbar__icon btn-paste',
|
||||||
lock: [_set.slideDeleted, _set.paragraphLock, _set.lostConnect, _set.noSlides],
|
lock: [_set.slideDeleted, _set.paragraphLock, _set.lostConnect, _set.noSlides],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'top',
|
||||||
dataHintTitle: 'P'
|
dataHintTitle: 'V'
|
||||||
});
|
});
|
||||||
me.paragraphControls.push(me.btnPaste);
|
me.paragraphControls.push(me.btnPaste);
|
||||||
|
|
||||||
|
|
|
@ -3775,6 +3775,7 @@ define([
|
||||||
|
|
||||||
// move 'paste' button to the container instead of 'undo' and 'redo'
|
// move 'paste' button to the container instead of 'undo' and 'redo'
|
||||||
me.toolbar.btnPaste.$el.detach().appendTo($box);
|
me.toolbar.btnPaste.$el.detach().appendTo($box);
|
||||||
|
me.toolbar.btnPaste.$el.find('button').attr('data-hint-direction', 'bottom');
|
||||||
me.toolbar.btnCopy.$el.removeClass('split');
|
me.toolbar.btnCopy.$el.removeClass('split');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -196,9 +196,9 @@ define([
|
||||||
cls : 'btn-toolbar',
|
cls : 'btn-toolbar',
|
||||||
iconCls : 'toolbar__icon btn-paste',
|
iconCls : 'toolbar__icon btn-paste',
|
||||||
lock : [/*_set.editCell,*/ _set.coAuth, _set.lostConnect],
|
lock : [/*_set.editCell,*/ _set.coAuth, _set.lostConnect],
|
||||||
dataHint: '1',
|
dataHint : '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'top',
|
||||||
dataHintTitle: 'P'
|
dataHintTitle: 'V'
|
||||||
});
|
});
|
||||||
|
|
||||||
me.btnUndo = new Common.UI.Button({
|
me.btnUndo = new Common.UI.Button({
|
||||||
|
@ -207,7 +207,10 @@ define([
|
||||||
iconCls : 'toolbar__icon btn-undo',
|
iconCls : 'toolbar__icon btn-undo',
|
||||||
disabled : true,
|
disabled : true,
|
||||||
lock : [_set.lostConnect],
|
lock : [_set.lostConnect],
|
||||||
signals : ['disabled']
|
signals : ['disabled'],
|
||||||
|
dataHint : '1',
|
||||||
|
dataHintDirection: 'bottom',
|
||||||
|
dataHintTitle: 'Z'
|
||||||
});
|
});
|
||||||
|
|
||||||
me.btnRedo = new Common.UI.Button({
|
me.btnRedo = new Common.UI.Button({
|
||||||
|
@ -216,7 +219,10 @@ define([
|
||||||
iconCls : 'toolbar__icon btn-redo',
|
iconCls : 'toolbar__icon btn-redo',
|
||||||
disabled : true,
|
disabled : true,
|
||||||
lock : [_set.lostConnect],
|
lock : [_set.lostConnect],
|
||||||
signals : ['disabled']
|
signals : ['disabled'],
|
||||||
|
dataHint : '1',
|
||||||
|
dataHintDirection: 'bottom',
|
||||||
|
dataHintTitle: 'Y'
|
||||||
});
|
});
|
||||||
|
|
||||||
if ( config.isEditDiagram ) {
|
if ( config.isEditDiagram ) {
|
||||||
|
@ -407,7 +413,10 @@ define([
|
||||||
cls : 'btn-toolbar',
|
cls : 'btn-toolbar',
|
||||||
iconCls : 'toolbar__icon btn-print no-mask',
|
iconCls : 'toolbar__icon btn-print no-mask',
|
||||||
lock : [_set.editCell, _set.cantPrint, _set.disableOnStart],
|
lock : [_set.editCell, _set.cantPrint, _set.disableOnStart],
|
||||||
signals: ['disabled']
|
signals: ['disabled'],
|
||||||
|
dataHint : '1',
|
||||||
|
dataHintDirection: 'top',
|
||||||
|
dataHintTitle: 'P'
|
||||||
});
|
});
|
||||||
|
|
||||||
me.btnSave = new Common.UI.Button({
|
me.btnSave = new Common.UI.Button({
|
||||||
|
@ -415,7 +424,10 @@ define([
|
||||||
cls : 'btn-toolbar',
|
cls : 'btn-toolbar',
|
||||||
iconCls : 'toolbar__icon no-mask ' + me.btnSaveCls,
|
iconCls : 'toolbar__icon no-mask ' + me.btnSaveCls,
|
||||||
lock : [_set.lostConnect],
|
lock : [_set.lostConnect],
|
||||||
signals : ['disabled']
|
signals : ['disabled'],
|
||||||
|
dataHint : '1',
|
||||||
|
dataHintDirection: 'bottom',
|
||||||
|
dataHintTitle: 'S'
|
||||||
});
|
});
|
||||||
me.btnCollabChanges = me.btnSave;
|
me.btnCollabChanges = me.btnSave;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue