Skip to content

Commit

Permalink
Sort sliders by descending priority
Browse files Browse the repository at this point in the history
  • Loading branch information
azheng249 committed Dec 20, 2017
1 parent 52bd8c7 commit 071bfcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/models/model-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
this.zobjectData = [];
this.sliderData = [];



$.ajax({
url: this.settingsParams.endpoint + 'zobjects',
type: 'GET',
Expand All @@ -79,6 +81,8 @@
cache: true,
data: {
zobject_type : 'slider',
sort: "priority",
order: "desc",
app_key : this.settingsParams.app_key
},
success: function() {
Expand Down

0 comments on commit 071bfcd

Please sign in to comment.