Linux puskom-ProLiant-DL385-Gen10 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64
/
home
/
puskom
/
mastur
/
backwpup
/
assets
/
js
/
//home/puskom/mastur/backwpup/assets/js/notice.js
( function ( _, $, adminpage ) { var Notice = { dismiss: function ( evt ) { evt.preventDefault(); evt.stopImmediatePropagation(); $.post( $( evt.target ).attr( 'href' ), { isAjax: 1 } ); $( evt.target ).closest( '.notice-inpsyde' ).remove(); }, construct: function () { var $container; _.bindAll( this, 'dismiss', 'init', 'addListeners' ); $container = $( '.notice-inpsyde' ); if ( $container.length === 0 ) { return false; } this.$container = $container; return this; }, addListeners: function () { var $dismisser = this.$container.find( '.dismiss-button' ); $dismisser.length > 0 && $dismisser.on( 'click', this.dismiss ); }, init: function () { this.addListeners(); return this; }, }; var notice = Object.create( Notice ); notice.construct() && notice.init(); }( window._, window.jQuery, window.adminpage ) );