Commit 6b9994a550246463fdfc0c85f08231b973b8f226

Authored by Victor Costa
1 parent 7690724a
Exists in master and in 1 other branch dev-fixes

Fix boxes position

src/app/main/main.controller.js
... ... @@ -17,5 +17,10 @@
17 17 vm.owner = profile.community;
18 18 });
19 19 }
  20 +
  21 + vm.boxesOrder = function(box) {
  22 + if(box.position==2) return 0;
  23 + return box.position;
  24 + }
20 25 }
21 26 })();
... ...
src/app/main/main.html
... ... @@ -5,7 +5,7 @@
5 5 </div>
6 6  
7 7 <div class="row">
8   - <ng-include ng-repeat="box in main.owner.boxes | orderBy: 'position'" src="'app/views/profile/box.html'"></ng-include>
  8 + <ng-include ng-repeat="box in main.owner.boxes | orderBy: main.boxesOrder" src="'app/views/profile/box.html'"></ng-include>
9 9 </div>
10 10  
11 11 </div>
... ...