Merge pull request #569 from ONLYOFFICE/fix/bugfix

Fix/bugfix
This commit is contained in:
Julia Radzhabova 2020-11-16 23:06:21 +03:00 committed by GitHub
commit 868f90818a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 28 additions and 3 deletions

View file

@ -327,6 +327,8 @@ define([
},
onSelectBookmark: function(listView, itemView, record) {
if (!record) return;
var value = record.get('value');
this.txtName.setValue(value);
this.btnAdd.setDisabled(false);

View file

@ -191,11 +191,11 @@ define([
menuStyle: 'min-width: 150px;',
editable: false,
data: [
{ displayValue: this.textSectEnd, value: Asc.c_oAscFootnotePos.SectEnd },
{ displayValue: this.textPageBottom, value: Asc.c_oAscFootnotePos.PageBottom }
{ displayValue: this.textSectEnd, value: Asc.c_oAscEndnotePos.SectEnd },
{ displayValue: this.textDocEnd, value: Asc.c_oAscEndnotePos.DocEnd }
]
});
this.cmbEndnote.setValue(Asc.c_oAscFootnotePos.PageBottom);
this.cmbEndnote.setValue(Asc.c_oAscEndnotePos.DocEnd);
this.cmbFormat = new Common.UI.ComboBox({
el: $('#note-settings-combo-format'),
@ -503,6 +503,7 @@ define([
textInsert: 'Insert',
textCustom: 'Custom Mark',
textSectEnd: 'End of section',
textDocEnd: 'End of document',
textEndnote: 'Endnote'
}, DE.Views.NoteSettingsDialog || {}))

View file

@ -1926,6 +1926,7 @@
"DE.Views.NoteSettingsDialog.textNumFormat": "Number Format",
"DE.Views.NoteSettingsDialog.textPageBottom": "Bottom of page",
"DE.Views.NoteSettingsDialog.textSectEnd": "End of section",
"DE.Views.NoteSettingsDialog.textDocEnd": "End of document",
"DE.Views.NoteSettingsDialog.textSection": "Current section",
"DE.Views.NoteSettingsDialog.textStart": "Start at",
"DE.Views.NoteSettingsDialog.textTextBottom": "Below text",

View file

@ -1930,6 +1930,7 @@
"DE.Views.NoteSettingsDialog.textStart": "Начать с",
"DE.Views.NoteSettingsDialog.textTextBottom": "Под текстом",
"DE.Views.NoteSettingsDialog.textTitle": "Параметры сносок",
"DE.Views.NoteSettingsDialog.textDocEnd": "В конце документа",
"DE.Views.NotesRemoveDialog.textEnd": "Удалить все концевые сноски",
"DE.Views.NotesRemoveDialog.textFoot": "Удалить все обычные сноски",
"DE.Views.NotesRemoveDialog.textTitle": "Удалить сноски",

View file

@ -367,6 +367,8 @@ define([ 'text!spreadsheeteditor/main/app/template/NameManagerDlg.template',
},
onSelectRangeItem: function(lisvView, itemView, record) {
if (!record) return;
this.userTipHide();
var rawData = {},
isViewSelect = _.isFunction(record.toJSON);

View file

@ -150,6 +150,11 @@ define([
});
this.btnDelete.on('click', _.bind(this.onDelete, this));
this.btnOk = new Common.UI.Button({
el: this.$window.find('.primary'),
disabled: true
});
this.afterRender();
},
@ -188,6 +193,7 @@ define([
this.btnRename.setDisabled(!val);
this.btnDuplicate.setDisabled(!val);
this.btnDelete.setDisabled(!val);
this.btnOk.setDisabled(!val);
if (val>0) {
if (selectedItem===undefined || selectedItem===null) selectedItem = 0;
if (_.isNumber(selectedItem)) {
@ -298,6 +304,8 @@ define([
},
onSelectItem: function(lisvView, itemView, record) {
if (!record) return;
this.userTipHide();
var rawData = {},
isViewSelect = _.isFunction(record.toJSON);
@ -330,6 +338,16 @@ define([
this.onPrimary();
},
onPrimary: function() {
if (this.btnOk.isDisabled()) return false;
if ( this.handler && this.handler.call(this, 'ok', this.getSettings()) )
return;
this.close();
return false;
},
txtTitle: 'Sheet View Manager',
textViews: 'Sheet views',
closeButtonText : 'Close',