From c07116f6b7517e083a6e423a1de1967916a0af76 Mon Sep 17 00:00:00 2001 From: alec Date: Thu, 12 Apr 2012 10:07:10 +0000 Subject: - Fix "false" placeholder in contact notes textarea git-svn-id: https://svn.roundcube.net/trunk@6066 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 978a31627..eba53bd56 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -4545,10 +4545,13 @@ function rcube_webmail() this.init_edit_field = function(col, elem) { + var label = this.env.coltypes[col].label; + if (!elem) elem = $('.ff_' + col); - elem.placeholder(ref.env.coltypes[col].label); + if (label) + elem.placeholder(label); }; this.insert_edit_field = function(col, section, menu) -- cgit v1.2.3