(deltaspike) branch master updated: migrated js to faces

2023-11-14 Thread tandraschko
This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/deltaspike.git


The following commit(s) were added to refs/heads/master by this push:
 new c3ede074b migrated js to faces
c3ede074b is described below

commit c3ede074b4004245fb82064478deabd30a4b69e0
Author: Thomas Andraschko 
AuthorDate: Tue Nov 14 11:51:40 2023 +0100

migrated js to faces
---
 .../META-INF/resources/deltaspike/windowhandler.js | 14 --
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git 
a/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
 
b/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
index bca8bed27..6271d010b 100644
--- 
a/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
+++ 
b/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
@@ -63,12 +63,14 @@ window.dswh = window.dswh || {
 targetStrategy.init(false);
 
 // JSF ajax callback
-faces.ajax.addOnEvent(function(event) {
-if (event.status === "success") {
-dswh.utils.log('--- #init(true)');
-targetStrategy.init(true);
-}
-});
+if (window.faces) {
+faces.ajax.addOnEvent(function(event) {
+if (event.status === "success") {
+dswh.utils.log('--- #init(true)');
+targetStrategy.init(true);
+}
+});
+}
 
 // PF ajax callback
 if (window.$ && window.PrimeFaces) {



(deltaspike) branch master updated: migrated js to faces

2023-11-14 Thread tandraschko
This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/deltaspike.git


The following commit(s) were added to refs/heads/master by this push:
 new 480ab1f4d migrated js to faces
480ab1f4d is described below

commit 480ab1f4dd68352c03dd2088f2ad0a5dcbcbb218
Author: Thomas Andraschko 
AuthorDate: Tue Nov 14 11:49:30 2023 +0100

migrated js to faces
---
 .../src/main/resources/META-INF/resources/deltaspike/windowhandler.js   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
 
b/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
index 4b110f3df..bca8bed27 100644
--- 
a/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
+++ 
b/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
@@ -63,7 +63,7 @@ window.dswh = window.dswh || {
 targetStrategy.init(false);
 
 // JSF ajax callback
-jsf.ajax.addOnEvent(function(event) {
+faces.ajax.addOnEvent(function(event) {
 if (event.status === "success") {
 dswh.utils.log('--- #init(true)');
 targetStrategy.init(true);