if in developer mode, show fieldname on hover of label

This commit is contained in:
Anand Doshi 2012-12-27 13:52:34 +05:30
parent 01b5a77d9b
commit a86c1972a4

View file

@ -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 = $('<i class="icon icon-warning-sign">').toggle(false)