From 258a739f54ebcf27185e608ae5c47088374268a2 Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 14 Aug 2017 11:21:24 -0600 Subject: [PATCH] Fix url widget detached node implementation to use row's statustext if provided, original statustext otherwise --- api/js/etemplate/et2_widget_url.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/api/js/etemplate/et2_widget_url.js b/api/js/etemplate/et2_widget_url.js index c3f8af35fd..bc8a28cfb0 100644 --- a/api/js/etemplate/et2_widget_url.js +++ b/api/js/etemplate/et2_widget_url.js @@ -398,7 +398,7 @@ var et2_url_ro = (function(){ "use strict"; return et2_valueWidget.extend([et2_I */ getDetachedAttributes: function(_attrs) { - _attrs.push("value", "class"); + _attrs.push("value", "class", "statustext"); }, getDetachedNodes: function() @@ -418,10 +418,9 @@ var et2_url_ro = (function(){ "use strict"; return et2_valueWidget.extend([et2_I { _nodes[0].setAttribute("class", _values["class"]); } - if(this.options.statustext) - { - this.span.attr('title',this.options.statustext); - } + + // Set to original status text if not set for this row + this.span.attr('title',_values.statustext ? _values.statustext : this.options.statustext); } });}).call(this); et2_register_widget(et2_url_ro, ["url_ro", "url-email_ro", "url-phone_ro"]);