summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-07-02 15:27:46 +0000
committeralecpl <alec@alec.pl>2011-07-02 15:27:46 +0000
commit5b3ac324154b0d29e6e14db2b06fbc3636a3e708 (patch)
tree94fdc54541279065b01dd7f61c061d3e0764bd2e /program/js/app.js
parent4b1d5d6e384fc5bddff8ee1c7cb35b8ea9c84bf3 (diff)
- Added addressbook source selector in contact create form
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index c96c3ebee..53ae463b2 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -637,7 +637,11 @@ function rcube_webmail()
}
// contacts/identities
else {
- if ((input = $("input[name='_name']", form)) &&input.length && input.val() == '') {
+ //
+ if (props == 'reload') {
+ form.action += '?_reload=1';
+ }
+ else if ((input = $("input[name='_name']", form)) &&input.length && input.val() == '') {
alert(this.get_label('nonamewarning'));
input.focus();
break;