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 2021/02/03 09:29:19 UTC
[myfaces-tobago] branch tobago-2.x updated: code style (sync with
Tobago 4.x)
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch tobago-2.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/tobago-2.x by this push:
new f86d62f code style (sync with Tobago 4.x)
f86d62f is described below
commit f86d62fe9a0cc2b23a600afe86bdfc70ff08850a
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Tue Feb 2 09:16:35 2021 +0100
code style (sync with Tobago 4.x)
---
.../renderkit/html/standard/standard/script/tobago-deltaspike.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-deltaspike.js b/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-deltaspike.js
index 1a4a52a..94173b3 100644
--- a/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-deltaspike.js
+++ b/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-deltaspike.js
@@ -17,9 +17,10 @@
* under the License.
*/
-jQuery(document).ready(function() {
- if (location.search.match(/.*dswid=(\-?[0-9]+).*/) !== null) {
- var dswid = location.search.replace(/.*dswid=(\-?[0-9]+).*/, "$1");
+jQuery(document).ready(function () {
+ var regexp = /.*dswid=(-?[0-9]+).*/;
+ if (location.search.match(regexp)) {
+ var dswid = location.search.replace(regexp, "$1");
if (dswid) {
dswh.init(dswid, 'LAZY', 10, {
'tokenizedRedirect': false,