REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.35 KB
Close
/home/nshryvcy/himaltourism.com/wp-content/plugins/wpforms-lite/assets/js/integrations/woocommerce/notifications.js
Text
Base64
/* global wpforms_woocommerce_notifications */ /** * WooCommerce Notifications integration script. * * @since 1.8.9 */ const WPFormsWoocommerceNotifications = window.WPFormsWoocommerceNotifications || ( function( document, window, $ ) { /** * Public functions and properties. * * @since 1.8.9 */ const app = { /** * Start the engine. * * @since 1.8.9 */ init() { $( app.ready ); }, /** * Document ready. * * @since 1.8.9 */ ready() { app.events(); }, /** * Events. * * @since 1.8.9 */ events() { $( '#wpforms-woocommerce-close' ).on( 'click', app.dismiss ); }, /** * Hide notification. * * @since 1.8.9 */ dismiss() { const $btn = $( this ); const $notification = $btn.closest( '.wpforms-woocommerce-notification' ); $notification.remove(); const data = { action: 'wpforms_woocommerce_dismiss', nonce: wpforms_woocommerce_notifications.nonce, }; $.post( wpforms_woocommerce_notifications.ajax_url, data, function( res ) { if ( ! res.success ) { // eslint-disable-next-line no-console console.log( res ); } } ).fail( function( xhr ) { // eslint-disable-next-line no-console console.log( xhr.responseText ); } ); }, }; return app; }( document, window, jQuery ) ); // Initialize. WPFormsWoocommerceNotifications.init();
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
notifications.js
1.35 KB
lrw-r--r--
2025-01-05 05:34:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
notifications.min.js
581 B
lrw-r--r--
2025-01-05 05:34:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).