mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 22:55:35 +00:00
JShint fixes
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
angular.module('app').directive('costList', ['$rootScope', 'lodash', function ($r, _) {
|
||||
angular.module('app').directive('costList', ['$rootScope', function ($r) {
|
||||
return {
|
||||
restrict: 'A',
|
||||
scope: {
|
||||
ship: '='
|
||||
},
|
||||
templateUrl: 'views/costs.html',
|
||||
link: function (scope, element, attributes) {
|
||||
scope.hps = ship.hardpoints;
|
||||
scope.ints = ship.internal;
|
||||
scope.com = ship.common;
|
||||
link: function (scope) {
|
||||
scope.$r = $r;
|
||||
scope.insuranceOptions = {
|
||||
Alpha: 0.975,
|
||||
@@ -20,7 +17,7 @@ angular.module('app').directive('costList', ['$rootScope', 'lodash', function ($
|
||||
scope.toggle = function(item) {
|
||||
item.incCost = !item.incCost;
|
||||
scope.ship.updateTotals();
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
}]);
|
||||
@@ -1,18 +1,18 @@
|
||||
angular.module('app')
|
||||
.directive('powerList', ['$rootScope', 'lodash', function ($r, _) {
|
||||
.directive('powerList', ['$rootScope', function ($r) {
|
||||
return {
|
||||
restrict: 'A',
|
||||
scope: {
|
||||
ship: '=ship'
|
||||
},
|
||||
templateUrl: 'views/power.html',
|
||||
link: function (scope, element, attributes) {
|
||||
link: function (scope) {
|
||||
scope.$r = $r;
|
||||
|
||||
scope.toggle = function(slot) {
|
||||
slot.enabled = !slot.enabled;
|
||||
scope.ship.updateTotals();
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
}]);
|
||||
@@ -1,13 +1,13 @@
|
||||
angular.module('app').directive('shipyardMenu', ['$rootScope', 'lodash', function ($rootScope, _) {
|
||||
angular.module('app').directive('shipyardMenu', function () {
|
||||
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'views/menu.html',
|
||||
link: function (scope, element, attributes) {
|
||||
link: function () {
|
||||
|
||||
// TODO: Saved Ships: load, save, save as, delete, export
|
||||
// TODO: Links: github, forum, etc
|
||||
|
||||
}
|
||||
};
|
||||
}]);
|
||||
});
|
||||
Reference in New Issue
Block a user