Restore tab default order when no manual change

issue5763
review32401002
This commit is contained in:
Xavier Codinas
2016-08-25 16:23:22 +02:00
parent 31d0c8d333
commit f35ca92d8a
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -1,3 +1,4 @@
* Restore tab default order when no manual change
* Add support for column sorting
* Manage confirm attribute on buttons
* Call autocompletion when setting record value
+1 -1
View File
@@ -627,7 +627,7 @@
this.size_limit = null;
this.limit = attributes.limit || Sao.config.limit;
this.offset = 0;
this.order = attributes.order;
this.order = this.default_order = attributes.order;
var access = Sao.common.MODELACCESS.get(model_name);
if (!(access.write || access.create)) {
this.attributes.readonly = true;
+1 -1
View File
@@ -223,7 +223,7 @@
}
}
});
this.screen.order = null;
this.screen.order = this.screen.default_order;
if (arrow.hasClass(arrow_bottom)) {
arrow.removeClass(arrow_bottom);
arrow.addClass(arrow_top);