From a86c1972a4936eabc663a43bd0eaef126720ec52 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 27 Dec 2012 13:52:34 +0530 Subject: [PATCH] if in developer mode, show fieldname on hover of label --- public/js/legacy/widgets/form/fields.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/js/legacy/widgets/form/fields.js b/public/js/legacy/widgets/form/fields.js index 5834bd9e28..44805e782e 100644 --- a/public/js/legacy/widgets/form/fields.js +++ b/public/js/legacy/widgets/form/fields.js @@ -57,7 +57,10 @@ Field.prototype.make_body = function() { // label if(this.with_label) { - this.label_span = $a(this.label_area, 'span', 'small') + this.label_span = $a(this.label_area, 'span', 'small'); + + if(wn.boot && wn.boot.developer_mode) + $(this.label_span).attr("title", this.df.fieldname); // error icon this.label_icon = $('').toggle(false)