Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (this.sortProperty == property) {
- if (this.sortDirection == "ASC") this.sortDirection = "DESC";
- else {
- console.log(this.sortDirection + "heeeehhh");
- this.sortProperty = this.service.defaultOrderProperty;
- if (this.service.defaultOrderDirection == "DESC") {
- console.log("herr");
- this.sortDirection = "ASC";
- }
- else {
- this.sortDirection = this.service.defaultOrderDirection;
- }
- }
- this.sortClicked = true;
- } else {
- console.log(this.sortDirection);
- console.log(this.sortProperty + "this.property" );
- console.log(property + "property");
- this.sortProperty = property;
- this.sortDirection = "ASC";
- }
- this.fetch(this.loadCount, 0, true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement