commit
26522d4036
|
@ -446,7 +446,8 @@ Common.UI.HintManager = new(function() {
|
||||||
}
|
}
|
||||||
}, 10);
|
}, 10);
|
||||||
} else {
|
} else {
|
||||||
var curLetter = null;
|
var curLetter = null,
|
||||||
|
match = false;
|
||||||
var keyCode = e.keyCode;
|
var keyCode = e.keyCode;
|
||||||
if (keyCode !== 16 && keyCode !== 17 && keyCode !== 18 && keyCode !== 91) {
|
if (keyCode !== 16 && keyCode !== 17 && keyCode !== 18 && keyCode !== 91) {
|
||||||
curLetter = _lang === 'en' ? ((keyCode > 47 && keyCode < 58 || keyCode > 64 && keyCode < 91) ? String.fromCharCode(e.keyCode) : null) : e.key;
|
curLetter = _lang === 'en' ? ((keyCode > 47 && keyCode < 58 || keyCode > 64 && keyCode < 91) ? String.fromCharCode(e.keyCode) : null) : e.key;
|
||||||
|
@ -462,11 +463,18 @@ Common.UI.HintManager = new(function() {
|
||||||
_inputLetters = _inputLetters + curLetter.toUpperCase();
|
_inputLetters = _inputLetters + curLetter.toUpperCase();
|
||||||
for (var i = 0; i < _currentControls.length; i++) {
|
for (var i = 0; i < _currentControls.length; i++) {
|
||||||
var item = _currentControls[i];
|
var item = _currentControls[i];
|
||||||
if (!_isItemDisabled(item) && item.attr('data-hint-title') === _inputLetters) {
|
if (!_isItemDisabled(item)) {
|
||||||
|
var title = item.attr('data-hint-title'),
|
||||||
|
regExp = new RegExp('^' + _inputLetters + '');
|
||||||
|
if (regExp.test(title)) {
|
||||||
|
match = true;
|
||||||
|
}
|
||||||
|
if (title === _inputLetters) {
|
||||||
curr = item;
|
curr = item;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (curr) {
|
if (curr) {
|
||||||
var tag = curr.prop("tagName").toLowerCase();
|
var tag = curr.prop("tagName").toLowerCase();
|
||||||
if (window.SSE && curr.parent().prop('id') === 'statusbar_bottom') {
|
if (window.SSE && curr.parent().prop('id') === 'statusbar_bottom') {
|
||||||
|
@ -501,7 +509,8 @@ Common.UI.HintManager = new(function() {
|
||||||
}
|
}
|
||||||
if (curr.prop('id') === 'btn-goback' || curr.closest('.btn-slot').prop('id') === 'slot-btn-options' ||
|
if (curr.prop('id') === 'btn-goback' || curr.closest('.btn-slot').prop('id') === 'slot-btn-options' ||
|
||||||
curr.closest('.btn-slot').prop('id') === 'slot-btn-mode' || curr.prop('id') === 'btn-favorite' || curr.parent().prop('id') === 'tlb-box-users' ||
|
curr.closest('.btn-slot').prop('id') === 'slot-btn-mode' || curr.prop('id') === 'btn-favorite' || curr.parent().prop('id') === 'tlb-box-users' ||
|
||||||
curr.prop('id') === 'left-btn-thumbs' || curr.hasClass('scroll') || curr.prop('id') === 'left-btn-about') {
|
curr.prop('id') === 'left-btn-thumbs' || curr.hasClass('scroll') || curr.prop('id') === 'left-btn-about' ||
|
||||||
|
curr.prop('id') === 'left-btn-support') {
|
||||||
_resetToDefault();
|
_resetToDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -516,6 +525,9 @@ Common.UI.HintManager = new(function() {
|
||||||
if (curr.parent().prop('id') === 'slot-btn-chat') {
|
if (curr.parent().prop('id') === 'slot-btn-chat') {
|
||||||
_nextLevel(1);
|
_nextLevel(1);
|
||||||
_setCurrentSection(undefined, $('#left-menu.hint-section'));
|
_setCurrentSection(undefined, $('#left-menu.hint-section'));
|
||||||
|
} else if (curr.prop('id') === 'id-right-menu-signature') {
|
||||||
|
_nextLevel(2);
|
||||||
|
_setCurrentSection(curr);
|
||||||
} else {
|
} else {
|
||||||
_nextLevel();
|
_nextLevel();
|
||||||
_setCurrentSection(curr);
|
_setCurrentSection(curr);
|
||||||
|
@ -526,6 +538,8 @@ Common.UI.HintManager = new(function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (!match) {
|
||||||
|
_inputLetters = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1169,7 +1169,7 @@ define([
|
||||||
this.lblApplication = $markup.findById('#id-info-appname');
|
this.lblApplication = $markup.findById('#id-info-appname');
|
||||||
this.tblAuthor = $markup.findById('#id-info-author table');
|
this.tblAuthor = $markup.findById('#id-info-author table');
|
||||||
this.trAuthor = $markup.findById('#id-info-add-author').closest('tr');
|
this.trAuthor = $markup.findById('#id-info-add-author').closest('tr');
|
||||||
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}" ></div><div class="tool close img-commonctrl"></div></td></tr>';
|
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}"></div><div class="tool close img-commonctrl" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div></td></tr>';
|
||||||
|
|
||||||
this.tblAuthor.on('click', function(e) {
|
this.tblAuthor.on('click', function(e) {
|
||||||
var btn = $markup.find(e.target);
|
var btn = $markup.find(e.target);
|
||||||
|
@ -1848,8 +1848,8 @@ define([
|
||||||
'<td colspan="2"><label style="cursor: default;"><%= tipText %></label></td>',
|
'<td colspan="2"><label style="cursor: default;"><%= tipText %></label></td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td><label class="link signature-view-link">' + me.txtView + '</label></td>',
|
'<td><label class="link signature-view-link" data-hint="2" data-hint-direction="bottom" data-hint-offset="medium">' + me.txtView + '</label></td>',
|
||||||
'<td align="right"><label class="link signature-edit-link <% if (!hasSigned) { %>hidden<% } %>">' + me.txtEdit + '</label></td>',
|
'<td align="right"><label class="link signature-edit-link <% if (!hasSigned) { %>hidden<% } %>" data-hint="2" data-hint-direction="bottom" data-hint-offset="medium">' + me.txtEdit + '</label></td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'</table>'
|
'</table>'
|
||||||
].join(''));
|
].join(''));
|
||||||
|
|
|
@ -214,13 +214,19 @@ define([
|
||||||
|
|
||||||
this.chAutofit = new Common.UI.CheckBox({
|
this.chAutofit = new Common.UI.CheckBox({
|
||||||
el: $markup.findById('#form-chb-autofit'),
|
el: $markup.findById('#form-chb-autofit'),
|
||||||
labelText: this.textAutofit
|
labelText: this.textAutofit,
|
||||||
|
dataHint: '1',
|
||||||
|
dataHintDirection: 'left',
|
||||||
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
this.chAutofit.on('change', this.onChAutofit.bind(this));
|
this.chAutofit.on('change', this.onChAutofit.bind(this));
|
||||||
|
|
||||||
this.chMulti = new Common.UI.CheckBox({
|
this.chMulti = new Common.UI.CheckBox({
|
||||||
el: $markup.findById('#form-chb-multiline'),
|
el: $markup.findById('#form-chb-multiline'),
|
||||||
labelText: this.textMulti
|
labelText: this.textMulti,
|
||||||
|
dataHint: '1',
|
||||||
|
dataHintDirection: 'left',
|
||||||
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
this.chMulti.on('change', this.onChMulti.bind(this));
|
this.chMulti.on('change', this.onChMulti.bind(this));
|
||||||
|
|
||||||
|
@ -401,7 +407,10 @@ define([
|
||||||
|
|
||||||
this.chAspect = new Common.UI.CheckBox({
|
this.chAspect = new Common.UI.CheckBox({
|
||||||
el: $markup.findById('#form-chb-aspect'),
|
el: $markup.findById('#form-chb-aspect'),
|
||||||
labelText: this.textAspect
|
labelText: this.textAspect,
|
||||||
|
dataHint: '1',
|
||||||
|
dataHintDirection: 'left',
|
||||||
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
this.chAspect.on('change', this.onChAspect.bind(this));
|
this.chAspect.on('change', this.onChAspect.bind(this));
|
||||||
|
|
||||||
|
@ -413,7 +422,10 @@ define([
|
||||||
data: [{ displayValue: this.textAlways, value: Asc.c_oAscPictureFormScaleFlag.Always },
|
data: [{ displayValue: this.textAlways, value: Asc.c_oAscPictureFormScaleFlag.Always },
|
||||||
{ displayValue: this.textNever, value: Asc.c_oAscPictureFormScaleFlag.Never },
|
{ displayValue: this.textNever, value: Asc.c_oAscPictureFormScaleFlag.Never },
|
||||||
{ displayValue: this.textTooBig, value: Asc.c_oAscPictureFormScaleFlag.Bigger },
|
{ displayValue: this.textTooBig, value: Asc.c_oAscPictureFormScaleFlag.Bigger },
|
||||||
{ displayValue: this.textTooSmall, value: Asc.c_oAscPictureFormScaleFlag.Smaller }]
|
{ displayValue: this.textTooSmall, value: Asc.c_oAscPictureFormScaleFlag.Smaller }],
|
||||||
|
dataHint: '1',
|
||||||
|
dataHintDirection: 'bottom',
|
||||||
|
dataHintOffset: 'big'
|
||||||
});
|
});
|
||||||
this.cmbScale.setValue(Asc.c_oAscPictureFormScaleFlag.Always);
|
this.cmbScale.setValue(Asc.c_oAscPictureFormScaleFlag.Always);
|
||||||
this.lockedControls.push(this.cmbScale);
|
this.lockedControls.push(this.cmbScale);
|
||||||
|
@ -1150,7 +1162,10 @@ define([
|
||||||
this.btnBGColor = new Common.UI.ColorButton({
|
this.btnBGColor = new Common.UI.ColorButton({
|
||||||
parentEl: $('#form-background-color-btn'),
|
parentEl: $('#form-background-color-btn'),
|
||||||
transparent: true,
|
transparent: true,
|
||||||
menu: true
|
menu: true,
|
||||||
|
dataHint: '1',
|
||||||
|
dataHintDirection: 'bottom',
|
||||||
|
dataHintOffset: 'big'
|
||||||
});
|
});
|
||||||
this.lockedControls.push(this.btnBGColor);
|
this.lockedControls.push(this.btnBGColor);
|
||||||
this.btnBGColor.on('color:select', _.bind(this.onColorBGSelect, this));
|
this.btnBGColor.on('color:select', _.bind(this.onColorBGSelect, this));
|
||||||
|
|
|
@ -994,7 +994,7 @@ define([
|
||||||
this.lblApplication = $markup.findById('#id-info-appname');
|
this.lblApplication = $markup.findById('#id-info-appname');
|
||||||
this.tblAuthor = $markup.findById('#id-info-author table');
|
this.tblAuthor = $markup.findById('#id-info-author table');
|
||||||
this.trAuthor = $markup.findById('#id-info-add-author').closest('tr');
|
this.trAuthor = $markup.findById('#id-info-add-author').closest('tr');
|
||||||
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}" ></div><div class="tool close img-commonctrl"></div></td></tr>';
|
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}" ></div><div class="tool close img-commonctrl" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div></td></tr>';
|
||||||
|
|
||||||
this.tblAuthor.on('click', function(e) {
|
this.tblAuthor.on('click', function(e) {
|
||||||
var btn = $markup.find(e.target);
|
var btn = $markup.find(e.target);
|
||||||
|
@ -1584,8 +1584,8 @@ define([
|
||||||
'<td colspan="2"><label style="cursor: default;"><%= tipText %></label></td>',
|
'<td colspan="2"><label style="cursor: default;"><%= tipText %></label></td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td><label class="link signature-view-link">' + me.txtView + '</label></td>',
|
'<td><label class="link signature-view-link" data-hint="2" data-hint-direction="bottom" data-hint-offset="medium">' + me.txtView + '</label></td>',
|
||||||
'<td align="right"><label class="link signature-edit-link <% if (!hasSigned) { %>hidden<% } %>">' + me.txtEdit + '</label></td>',
|
'<td align="right"><label class="link signature-edit-link <% if (!hasSigned) { %>hidden<% } %>" data-hint="2" data-hint-direction="bottom" data-hint-offset="medium">' + me.txtEdit + '</label></td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'</table>'
|
'</table>'
|
||||||
].join(''));
|
].join(''));
|
||||||
|
|
|
@ -1957,7 +1957,7 @@ define([
|
||||||
this.lblApplication = $markup.findById('#id-info-appname');
|
this.lblApplication = $markup.findById('#id-info-appname');
|
||||||
this.tblAuthor = $markup.findById('#id-info-author table');
|
this.tblAuthor = $markup.findById('#id-info-author table');
|
||||||
this.trAuthor = $markup.findById('#id-info-add-author').closest('tr');
|
this.trAuthor = $markup.findById('#id-info-add-author').closest('tr');
|
||||||
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}" ></div><div class="tool close img-commonctrl"></div></td></tr>';
|
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}" ></div><div class="tool close img-commonctrl" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div></td></tr>';
|
||||||
|
|
||||||
this.tblAuthor.on('click', function(e) {
|
this.tblAuthor.on('click', function(e) {
|
||||||
var btn = $markup.find(e.target);
|
var btn = $markup.find(e.target);
|
||||||
|
@ -2546,8 +2546,8 @@ define([
|
||||||
'<td colspan="2"><label style="cursor: default;"><%= tipText %></label></td>',
|
'<td colspan="2"><label style="cursor: default;"><%= tipText %></label></td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td><label class="link signature-view-link">' + me.txtView + '</label></td>',
|
'<td><label class="link signature-view-link" data-hint="2" data-hint-direction="bottom" data-hint-offset="medium">' + me.txtView + '</label></td>',
|
||||||
'<td align="right"><label class="link signature-edit-link <% if (!hasSigned) { %>hidden<% } %>">' + me.txtEdit + '</label></td>',
|
'<td align="right"><label class="link signature-edit-link <% if (!hasSigned) { %>hidden<% } %>" data-hint="2" data-hint-direction="bottom" data-hint-offset="medium">' + me.txtEdit + '</label></td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'</table>'
|
'</table>'
|
||||||
].join(''));
|
].join(''));
|
||||||
|
|
Loading…
Reference in a new issue