Skip to content

Commit

Permalink
Merge pull request #14 from jamiefaye/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jamiefaye authored Jul 6, 2018
2 parents 85cdc43 + 9d54b76 commit 8246eaa
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DR/FTF/List.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions FTF/src/FileBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ export default class FileBrowser {
this.polling_active = false;
this.wlansd;
this.sortOrder = 1;
this.fieldNum = -1;

this.fieldNum = 0;
let that = this;
this.sortFunction = function(a, b) {
if (!a["fname"]) return 0;
return a["fname"].localeCompare(b["fname"]) * that.sortOrder;
};
}

toggleChecks (e) {
Expand Down
7 changes: 6 additions & 1 deletion waverly/src/FileWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ class FileWidget {
this.polling_active = false;
this.filelist;
this.sortOrder = 1;
this.fieldNum = -1;
this.fieldNum = 0;
let that = this;
this.sortFunction = function(a, b) {
if (!a["fname"]) return 0;
return a["fname"].localeCompare(b["fname"]) * that.sortOrder;
};
if (params) {
this.params = params;
} else {
Expand Down
7 changes: 6 additions & 1 deletion xmlView/src/FileWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ class FileWidget {
this.polling_active = false;
this.filelist;
this.sortOrder = 1;
this.fieldNum = -1;
this.fieldNum = 0;
let that = this;
this.sortFunction = function(a, b) {
if (!a["fname"]) return 0;
return a["fname"].localeCompare(b["fname"]) * that.sortOrder;
};
if (params) {
this.params = params;
} else {
Expand Down

0 comments on commit 8246eaa

Please sign in to comment.