Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/app
diff options
context:
space:
mode:
authorfnuesse <felix.nuesse@t-online.de>2018-12-30 15:53:41 +0300
committerfnuesse <felix.nuesse@t-online.de>2018-12-30 15:53:41 +0300
commit4d6af87c1977a8c17da7ebb73caa310cc2428c8a (patch)
tree00ffe07dc98831bc67adb7cd81feca35645e6e17 /js/app
parent04e16b8f6bed61327f33cd5bf45f5a559921a87d (diff)
Removed unused and deprecated code
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
Diffstat (limited to 'js/app')
-rw-r--r--js/app/controllers/edit_credential.js18
-rw-r--r--js/app/directives/iconpicker.js2
2 files changed, 2 insertions, 18 deletions
diff --git a/js/app/controllers/edit_credential.js b/js/app/controllers/edit_credential.js
index a4d59214..71822d21 100644
--- a/js/app/controllers/edit_credential.js
+++ b/js/app/controllers/edit_credential.js
@@ -356,19 +356,6 @@
$scope.updateExistingListWithCredential(updated_cred);
});
}
- $scope.refreshListWithSaved();
- };
-
- $scope.refreshListWithSaved = function () {
- var current_vault = $rootScope.vaultCache[$scope.active_vault.guid];
- var cv_credentials = current_vault.credentials;
- for (var i = 0; i < cv_credentials.length; i++) {
- if (cv_credentials[i].credential_id === $scope.storedCredential.credential_id) {
- cv_credentials[i] = $scope.storedCredential;
- }
- }
- current_vault.credentials=cv_credentials;
- $rootScope.vaultCache[$scope.active_vault.guid] = current_vault;
};
$scope.updateExistingListWithCredential = function (credential) {
@@ -381,14 +368,13 @@
}
credential.tags_raw = credential.tags;
-
var found=false;
var credList=$rootScope.vaultCache[$scope.active_vault.guid].credentials;
for (var i = 0; i < credList.length; i++) {
- if (credList[i].credential_id === credential.credential_id) {
+ if (credList[i].credential_id === credential.credential_id) {
$rootScope.vaultCache[$scope.active_vault.guid].credentials[i]=credential;
found=true;
- }
+ }
}
if(!found){
diff --git a/js/app/directives/iconpicker.js b/js/app/directives/iconpicker.js
index 0c885845..763ca554 100644
--- a/js/app/directives/iconpicker.js
+++ b/js/app/directives/iconpicker.js
@@ -95,8 +95,6 @@
};
$('#iconPicker-CustomIcon').on('change', function(ev) {
-
- console.log("upload");
scope.customIcon = {};
var f = ev.target.files[0];