You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2018/04/06 09:14:32 UTC
[myfaces-tobago] branch master updated: fix input-suggest JS had
problems with line-breaks
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/master by this push:
new f2e7e8b fix input-suggest JS had problems with line-breaks
f2e7e8b is described below
commit f2e7e8b0fc9e16735938d12afd604741aa88e44c
Author: Udo Schnurpfeil <lo...@apache.org>
AuthorDate: Fri Apr 6 11:16:03 2018 +0200
fix input-suggest JS had problems with line-breaks
The fix of TOBAGO-1887 inserts line breaks (or just text nodes)
into the partial response, the JS code need to ignore that.
---
.../tobago/standard/tobago-bootstrap/_version/js/tobago-jsf.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-jsf.js b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-jsf.js
index 1e6d095..79d47f4 100644
--- a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-jsf.js
+++ b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-jsf.js
@@ -4068,6 +4068,7 @@ _MF_SINGLTN(_PFX_UTIL + "_Dom", Object, /** @lends myfaces._impl._util._Dom.prot
*/
outerHTML : function(item, markup, preserveFocus) {
this._assertStdParams(item, markup, "outerHTML");
+ markup = this._Lang.trim(markup);
// we can work on a single element in a cross browser fashion
// regarding the focus thanks to the
// icefaces team for providing the code
@@ -4076,7 +4077,6 @@ _MF_SINGLTN(_PFX_UTIL + "_Dom", Object, /** @lends myfaces._impl._util._Dom.prot
this.cloneAttributes(item, replacingInput);
return item;
} else {
- markup = this._Lang.trim(markup);
if (markup !== "") {
var ret = null;
--
To stop receiving notification emails like this one, please contact
lofwyr@apache.org.