Fixup linter issues
This commit is contained in:
+4
-7
@@ -89,14 +89,14 @@ function prettyByteSize(size, fallback) {
|
||||
|
||||
var i = Math.floor(Math.log(size) / Math.log(1024));
|
||||
return (size / Math.pow(1024, i)).toFixed(2) * 1 + ' ' + ['B', 'kB', 'MB', 'GB', 'TB'][i];
|
||||
};
|
||||
}
|
||||
|
||||
angular.module('Application').filter('prettyByteSize', function () {
|
||||
return function (size, fallback) { return prettyByteSize(size, fallback) || '0 kb'; }
|
||||
return function (size, fallback) { return prettyByteSize(size, fallback) || '0 kb'; };
|
||||
});
|
||||
|
||||
angular.module('Application').filter('prettyDiskSize', function () {
|
||||
return function (size, fallback) { return prettyByteSize(size, fallback) || 'Not available yet'; }
|
||||
return function (size, fallback) { return prettyByteSize(size, fallback) || 'Not available yet'; };
|
||||
});
|
||||
|
||||
angular.module('Application').filter('markdown2html', function () {
|
||||
@@ -131,9 +131,6 @@ angular.module('Application').config(['$translateProvider', function ($translate
|
||||
// This is a copy of the code at https://github.com/angular-translate/angular-translate/blob/master/src/filter/translate.js
|
||||
// If we find out how to get that function handle somehow dynamically we can use that, otherwise the copy is required
|
||||
function translateFilterFactory($parse, $translate) {
|
||||
|
||||
'use strict';
|
||||
|
||||
var translateFilter = function (translationId, interpolateParams, interpolation, forceLanguage) {
|
||||
if (!angular.isObject(interpolateParams)) {
|
||||
var ctx = this || {
|
||||
@@ -360,7 +357,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
// give more info in case the error was a request which failed with empty response body,
|
||||
// this happens mostly if the box crashes
|
||||
if (message === 'Empty message or object') {
|
||||
message = 'Got empty response. Click to check the server logs.'
|
||||
message = 'Got empty response. Click to check the server logs.';
|
||||
action = action || '/logs.html?id=box';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user