Fix #1266 when removing a field, the right panel is not updated

This commit is contained in:
Nicolas Le Goff
2013-07-10 14:05:45 +02:00
parent d2df5e3222
commit 14949cb619
2 changed files with 5 additions and 1 deletions

View File

@@ -217,7 +217,7 @@ define([
_selectModelView: function(index) {
// select previous or next itemview
if (index >= 0) {
AdminFieldApp.fieldListView.itemViews[index].select().animate();
AdminFieldApp.fieldListView.itemViews[index].select().animate().click();
}
},
_toggleLabels: function(event) {

View File

@@ -70,6 +70,10 @@ define([
return this;
},
click: function() {
this.$el.find('.trigger-click').first().trigger('click');
return this;
},
// scroll to current view in item list
animate: function (top) {
top = top || null;