Skip to content

Commit

Permalink
Fixing jsf.js -> to faces.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cuioss committed Jun 6, 2024
1 parent c13578e commit de5bf32
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Used for initializing GuardedInput components.
* The implementation assumes JQuery, jsf.js and cui.jsf being present.
* The implementation assumes JQuery, faces.js and cui.jsf being present.
*/
let intitializeHelpTexts = function () {
jQuery('[data-help-input-button]').each(function () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Used for initializing GuardedInput components.
* The implementations assumes JQuery, jsf.js and cui.jsf being present.
* The implementation assumes JQuery, faces.js and cui.jsf being present.
*/
let intitializeInputGuards = function () {
jQuery('[data-input-guard-button]').each(function () {
Expand All @@ -12,7 +12,7 @@ let intitializeInputGuards = function () {
let guardInput = guardButton.closest('.input-group').find('[data-input-guard-value]');

guardInput.val(targetValue);

let updateTarget = guardInput.data('cui-ajax-update');
let processTarget = guardInput.data('cui-ajax-process');
jsf.ajax.request(guardInput.attr('id'), null, {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/**
* Used for initializing bootstraps alert components. The implementations
* assumes JQuery and jsf.js being present
* Used for initializing bootstrap alert components. The implementation
* assumes JQuery and faces.js being present
*/

let intitializeNotificationbox = function() {
jQuery('.alert-dismissible > [data-dismiss="alert"][data-dismiss-listener="true"]').each(function() {
$(this).parent().one('close.bs.alert', function() {
jsf.ajax.request($(this).attr('id'), null, { execute: '@this' });
let intitializeNotificationbox = function () {
jQuery('.alert-dismissible > [data-dismiss="alert"][data-dismiss-listener="true"]').each(function () {
$(this).parent().one('close.bs.alert', function () {
jsf.ajax.request($(this).attr('id'), null, {execute: '@this'});
})
});
};

// Should be loaded at document-ready
jQuery(document).ready(function() {
jQuery(document).ready(function () {
Cui.Core.registerComponentEnabler(intitializeNotificationbox);
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Used for initializing all panel components with asynchronous update support.
* The implementations assumes JQuery and jsf.js being present.
* The implementation assumes JQuery and faces.js being present.
*/

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* Used for initializing bootstraps tooltip components. The implementations
* assumes JQuery and jsf.js being present
* Used for initializing bootstrap tooltip components. The implementation
* assumes JQuery and faces.js being present
*/

let intitializeTooltips = function() {
let intitializeTooltips = function () {
jQuery('[data-toggle="tooltip"]').tooltip();
};

// Should be loaded at document-ready
jQuery(document).ready(function() {
jQuery(document).ready(function () {
Cui.Core.registerComponentEnabler(intitializeTooltips);
});

0 comments on commit de5bf32

Please sign in to comment.