Use tabs instead of spaces
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -23,22 +23,22 @@
|
|||||||
import app from '../app/App.js';
|
import app from '../app/App.js';
|
||||||
|
|
||||||
/* global oc_defaults OC */
|
/* global oc_defaults OC */
|
||||||
app.controller('ColorPickerController', ['$scope', function($scope) {
|
app.controller('ColorPickerController', ['$scope', function ($scope) {
|
||||||
$scope.hashedColor = '';
|
$scope.hashedColor = '';
|
||||||
|
|
||||||
$scope.setColor = function(object,color) {
|
$scope.setColor = function (object, color) {
|
||||||
object.color = color;
|
object.color = color;
|
||||||
object.hashedColor = '#' + color;
|
object.hashedColor = '#' + color;
|
||||||
|
|
||||||
return object;
|
return object;
|
||||||
}
|
};
|
||||||
|
|
||||||
$scope.setHashedColor = function(object) {
|
$scope.setHashedColor = function (object) {
|
||||||
object.color = object.hashedColor.substr(1);
|
object.color = object.hashedColor.substr(1);
|
||||||
return object;
|
return object;
|
||||||
}
|
};
|
||||||
|
|
||||||
$scope.getCustomBackground = function(color) {
|
$scope.getCustomBackground = function (color) {
|
||||||
return { 'background-color': color };
|
return {'background-color': color};
|
||||||
};
|
};
|
||||||
}]);
|
}]);
|
||||||
|
|||||||
Reference in New Issue
Block a user