Resolved few undo action on UI tabs - tabs were not getting activated

during undo-redo action. Also, resolved the focus losing issue, which
closing the subnode editor using undo action.

Also, resolved an issue related to 'beforeopen' failed on server node,
due to api changes on tree events.
This commit is contained in:
Ashesh Vashi
2015-10-30 13:07:09 +05:30
parent 30c560f33b
commit 45596dffa0
5 changed files with 77 additions and 34 deletions

View File

@@ -139,6 +139,7 @@
editorOptions['el'] = $(this.el);
editorOptions['columns_length'] = this.column.collection.length;
editorOptions['el'].attr('tabindex' , 1);
this.listenTo(this.model, "backgrid:edit", function (model, column, cell, editor) {
if (column.get("name") == this.column.get("name"))
@@ -163,6 +164,8 @@
this.$el.empty();
this.$el.html("<i class='fa fa-pencil-square-o'></i>");
this.delegateEvents();
if (this.grabFocus)
this.$el.focus();
return this;
},
exitEditMode: function() {
@@ -173,6 +176,7 @@
this.model.trigger(
"pg-sub-node:closed", this, index
);
this.grabFocus = true;
},
events: {
'click': function(e) {