From aa44d3abab07205a747874b244e71181e4e7a1b0 Mon Sep 17 00:00:00 2001 From: Klaus Date: Tue, 18 Feb 2014 17:41:59 +0100 Subject: Let user cancel the red_encrypt dialogue If the user press cancel on the prompt also cancel the encryption. Maybe should also add this to passhint promt. --- view/js/crypto.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'view') diff --git a/view/js/crypto.js b/view/js/crypto.js index 2e6402c62..c3a37d177 100644 --- a/view/js/crypto.js +++ b/view/js/crypto.js @@ -1,5 +1,4 @@ - function str_rot13 (str) { // http://kevin.vanzonneveld.net // + original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) @@ -43,7 +42,11 @@ function red_encrypt(alg, elem,text) { // key and hint need to be localised - var enc_key = bin2hex(prompt(aStr['passphrase'])); + var passphrase = prompt(aStr['passphrase']); + // let the user cancel this dialogue + if (passphrase == null) + return false; + var enc_key = bin2hex(passphrase); // If you don't provide a key you get rot13, which doesn't need a key // but consequently isn't secure. -- cgit v1.2.3 From 9a51f8ce650d295e7bc2322b9f2f10b340d8e076 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 18 Feb 2014 14:26:23 -0800 Subject: edit bookmarks --- view/css/mod_mitem.css | 7 +++++++ view/tpl/mitemlist.tpl | 5 +++-- view/tpl/usermenu.tpl | 3 +++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 view/css/mod_mitem.css (limited to 'view') diff --git a/view/css/mod_mitem.css b/view/css/mod_mitem.css new file mode 100644 index 000000000..377d164fe --- /dev/null +++ b/view/css/mod_mitem.css @@ -0,0 +1,7 @@ +.menu-item-list { + list-style-type: none; +} + +.mitem-edit { + margin-right: 15px; +} \ No newline at end of file diff --git a/view/tpl/mitemlist.tpl b/view/tpl/mitemlist.tpl index 057665d49..421b610f1 100644 --- a/view/tpl/mitemlist.tpl +++ b/view/tpl/mitemlist.tpl @@ -4,12 +4,13 @@ {{$edmenu}}
{{$hintnew}} +

{{if $mlist }} -