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
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2016-12-19 16:42:51 +0300
committerbrantje <brantje@gmail.com>2016-12-19 16:42:51 +0300
commit9f145e31318381c3aa3621d4d2b562421a4452fc (patch)
treeeaefff6c133f0a8afe55b9cc6f0f9b8eb9413052 /js
parentc8749bfc974947d03afc79fad7c6b0502bce468d (diff)
Check if description is not empty
Diffstat (limited to 'js')
-rw-r--r--js/app/controllers/edit_credential.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/app/controllers/edit_credential.js b/js/app/controllers/edit_credential.js
index d4015c7c..73d5ee21 100644
--- a/js/app/controllers/edit_credential.js
+++ b/js/app/controllers/edit_credential.js
@@ -329,7 +329,7 @@
delete _credential.shared_key;
var _useKey = (key != null);
var regex = /(<([^>]+)>)/ig;
- if(_credential.description) {
+ if(_credential.description && _credential.description != "") {
_credential.description = _credential.description.replace(regex, "");
}
CredentialService.updateCredential(_credential, _useKey).then(function () {