commit
868f90818a
|
@ -327,6 +327,8 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onSelectBookmark: function(listView, itemView, record) {
|
onSelectBookmark: function(listView, itemView, record) {
|
||||||
|
if (!record) return;
|
||||||
|
|
||||||
var value = record.get('value');
|
var value = record.get('value');
|
||||||
this.txtName.setValue(value);
|
this.txtName.setValue(value);
|
||||||
this.btnAdd.setDisabled(false);
|
this.btnAdd.setDisabled(false);
|
||||||
|
|
|
@ -191,11 +191,11 @@ define([
|
||||||
menuStyle: 'min-width: 150px;',
|
menuStyle: 'min-width: 150px;',
|
||||||
editable: false,
|
editable: false,
|
||||||
data: [
|
data: [
|
||||||
{ displayValue: this.textSectEnd, value: Asc.c_oAscFootnotePos.SectEnd },
|
{ displayValue: this.textSectEnd, value: Asc.c_oAscEndnotePos.SectEnd },
|
||||||
{ displayValue: this.textPageBottom, value: Asc.c_oAscFootnotePos.PageBottom }
|
{ 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({
|
this.cmbFormat = new Common.UI.ComboBox({
|
||||||
el: $('#note-settings-combo-format'),
|
el: $('#note-settings-combo-format'),
|
||||||
|
@ -503,6 +503,7 @@ define([
|
||||||
textInsert: 'Insert',
|
textInsert: 'Insert',
|
||||||
textCustom: 'Custom Mark',
|
textCustom: 'Custom Mark',
|
||||||
textSectEnd: 'End of section',
|
textSectEnd: 'End of section',
|
||||||
|
textDocEnd: 'End of document',
|
||||||
textEndnote: 'Endnote'
|
textEndnote: 'Endnote'
|
||||||
|
|
||||||
}, DE.Views.NoteSettingsDialog || {}))
|
}, DE.Views.NoteSettingsDialog || {}))
|
||||||
|
|
|
@ -1926,6 +1926,7 @@
|
||||||
"DE.Views.NoteSettingsDialog.textNumFormat": "Number Format",
|
"DE.Views.NoteSettingsDialog.textNumFormat": "Number Format",
|
||||||
"DE.Views.NoteSettingsDialog.textPageBottom": "Bottom of page",
|
"DE.Views.NoteSettingsDialog.textPageBottom": "Bottom of page",
|
||||||
"DE.Views.NoteSettingsDialog.textSectEnd": "End of section",
|
"DE.Views.NoteSettingsDialog.textSectEnd": "End of section",
|
||||||
|
"DE.Views.NoteSettingsDialog.textDocEnd": "End of document",
|
||||||
"DE.Views.NoteSettingsDialog.textSection": "Current section",
|
"DE.Views.NoteSettingsDialog.textSection": "Current section",
|
||||||
"DE.Views.NoteSettingsDialog.textStart": "Start at",
|
"DE.Views.NoteSettingsDialog.textStart": "Start at",
|
||||||
"DE.Views.NoteSettingsDialog.textTextBottom": "Below text",
|
"DE.Views.NoteSettingsDialog.textTextBottom": "Below text",
|
||||||
|
|
|
@ -1930,6 +1930,7 @@
|
||||||
"DE.Views.NoteSettingsDialog.textStart": "Начать с",
|
"DE.Views.NoteSettingsDialog.textStart": "Начать с",
|
||||||
"DE.Views.NoteSettingsDialog.textTextBottom": "Под текстом",
|
"DE.Views.NoteSettingsDialog.textTextBottom": "Под текстом",
|
||||||
"DE.Views.NoteSettingsDialog.textTitle": "Параметры сносок",
|
"DE.Views.NoteSettingsDialog.textTitle": "Параметры сносок",
|
||||||
|
"DE.Views.NoteSettingsDialog.textDocEnd": "В конце документа",
|
||||||
"DE.Views.NotesRemoveDialog.textEnd": "Удалить все концевые сноски",
|
"DE.Views.NotesRemoveDialog.textEnd": "Удалить все концевые сноски",
|
||||||
"DE.Views.NotesRemoveDialog.textFoot": "Удалить все обычные сноски",
|
"DE.Views.NotesRemoveDialog.textFoot": "Удалить все обычные сноски",
|
||||||
"DE.Views.NotesRemoveDialog.textTitle": "Удалить сноски",
|
"DE.Views.NotesRemoveDialog.textTitle": "Удалить сноски",
|
||||||
|
|
|
@ -367,6 +367,8 @@ define([ 'text!spreadsheeteditor/main/app/template/NameManagerDlg.template',
|
||||||
},
|
},
|
||||||
|
|
||||||
onSelectRangeItem: function(lisvView, itemView, record) {
|
onSelectRangeItem: function(lisvView, itemView, record) {
|
||||||
|
if (!record) return;
|
||||||
|
|
||||||
this.userTipHide();
|
this.userTipHide();
|
||||||
var rawData = {},
|
var rawData = {},
|
||||||
isViewSelect = _.isFunction(record.toJSON);
|
isViewSelect = _.isFunction(record.toJSON);
|
||||||
|
|
|
@ -150,6 +150,11 @@ define([
|
||||||
});
|
});
|
||||||
this.btnDelete.on('click', _.bind(this.onDelete, this));
|
this.btnDelete.on('click', _.bind(this.onDelete, this));
|
||||||
|
|
||||||
|
this.btnOk = new Common.UI.Button({
|
||||||
|
el: this.$window.find('.primary'),
|
||||||
|
disabled: true
|
||||||
|
});
|
||||||
|
|
||||||
this.afterRender();
|
this.afterRender();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -188,6 +193,7 @@ define([
|
||||||
this.btnRename.setDisabled(!val);
|
this.btnRename.setDisabled(!val);
|
||||||
this.btnDuplicate.setDisabled(!val);
|
this.btnDuplicate.setDisabled(!val);
|
||||||
this.btnDelete.setDisabled(!val);
|
this.btnDelete.setDisabled(!val);
|
||||||
|
this.btnOk.setDisabled(!val);
|
||||||
if (val>0) {
|
if (val>0) {
|
||||||
if (selectedItem===undefined || selectedItem===null) selectedItem = 0;
|
if (selectedItem===undefined || selectedItem===null) selectedItem = 0;
|
||||||
if (_.isNumber(selectedItem)) {
|
if (_.isNumber(selectedItem)) {
|
||||||
|
@ -298,6 +304,8 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onSelectItem: function(lisvView, itemView, record) {
|
onSelectItem: function(lisvView, itemView, record) {
|
||||||
|
if (!record) return;
|
||||||
|
|
||||||
this.userTipHide();
|
this.userTipHide();
|
||||||
var rawData = {},
|
var rawData = {},
|
||||||
isViewSelect = _.isFunction(record.toJSON);
|
isViewSelect = _.isFunction(record.toJSON);
|
||||||
|
@ -330,6 +338,16 @@ define([
|
||||||
this.onPrimary();
|
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',
|
txtTitle: 'Sheet View Manager',
|
||||||
textViews: 'Sheet views',
|
textViews: 'Sheet views',
|
||||||
closeButtonText : 'Close',
|
closeButtonText : 'Close',
|
||||||
|
|
Loading…
Reference in a new issue