diff options
author | Jakob Borg <jakob@nym.se> | 2014-09-05 13:25:53 +0200 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2014-09-05 13:25:53 +0200 |
commit | 8c442b72f325face6a13cb7c79c5960b2ec19283 (patch) | |
tree | 430a4bd90a5564529df12e248d7973f28e3ff247 | |
parent | f8f6791d39a5ac6ac66cca3794d8c58dd72bceff (diff) | |
parent | 0c09f077aa43d6770c3b303210c2538bb7c3bb55 (diff) | |
download | syncthing-8c442b72f325face6a13cb7c79c5960b2ec19283.tar.gz syncthing-8c442b72f325face6a13cb7c79c5960b2ec19283.zip |
Merge remote-tracking branch 'origin/pr/634'
* origin/pr/634:
Removed unused `optionEditor` directive from app.js
Removed unused `clean` filter from app.js.
Removed unused `shortPath` filter from app.js.
Removed unused `short` filter from app.js.
-rw-r--r-- | gui/app.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/gui/app.js b/gui/app.js index 511bddb11..b28b6d0a6 100644 --- a/gui/app.js +++ b/gui/app.js @@ -1043,12 +1043,6 @@ syncthing.filter('metric', function () { }; }); -syncthing.filter('short', function () { - return function (input) { - return input.substr(0, 6); - }; -}); - syncthing.filter('alwaysNumber', function () { return function (input) { if (input === undefined) { @@ -1058,18 +1052,6 @@ syncthing.filter('alwaysNumber', function () { }; }); -syncthing.filter('shortPath', function () { - return function (input) { - if (input === undefined) - return ""; - var parts = input.split(/[\/\\]/); - if (!parts || parts.length <= 3) { - return input; - } - return ".../" + parts.slice(parts.length-2).join("/"); - }; -}); - syncthing.filter('basename', function () { return function (input) { if (input === undefined) @@ -1082,24 +1064,6 @@ syncthing.filter('basename', function () { }; }); -syncthing.filter('clean', function () { - return function (input) { - return encodeURIComponent(input).replace(/%/g, ''); - }; -}); - -syncthing.directive('optionEditor', function () { - return { - restrict: 'C', - replace: true, - transclude: true, - scope: { - setting: '=setting', - }, - template: '<input type="text" ng-model="config.Options[setting.id]"></input>', - }; -}); - syncthing.directive('uniqueRepo', function() { return { require: 'ngModel', |