From dbdb0b440d971d7b599c03ba16bd1b37c0371423 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 8 Dec 2014 15:57:06 +0000 Subject: [PATCH] missing translation of blur text in textbox --- etemplate/js/et2_widget_textbox.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etemplate/js/et2_widget_textbox.js b/etemplate/js/et2_widget_textbox.js index b321d26679..c46c49ffde 100644 --- a/etemplate/js/et2_widget_textbox.js +++ b/etemplate/js/et2_widget_textbox.js @@ -216,14 +216,14 @@ var et2_textbox = et2_inputWidget.extend([et2_IResizeable], set_blur: function(_value) { if(_value) { - this.input.attr("placeholder", _value + ""); // HTML5 + this.input.attr("placeholder", this.egw().lang(_value) + ""); // HTML5 if(!this.input[0].placeholder) { // Not HTML5 - if(this.input.val() == "") this.input.val(this.options.blur); + if(this.input.val() == "") this.input.val(this.egw().lang(this.options.blur)); this.input.focus(this,function(e) { - if(e.data.input.val() == e.data.options.blur) e.data.input.val(""); + if(e.data.input.val() == e.data.egw().lang(e.data.options.blur)) e.data.input.val(""); }).blur(this, function(e) { - if(e.data.input.val() == "") e.data.input.val(e.data.options.blur); + if(e.data.input.val() == "") e.data.input.val(e.data.egw().lang(e.data.options.blur)); }); } } else {