Skip to content

Commit

Permalink
3.9.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Olivares committed Jun 15, 2021
1 parent bdb72dd commit d521d83
Show file tree
Hide file tree
Showing 208 changed files with 14,084 additions and 13,288 deletions.
2 changes: 1 addition & 1 deletion assets/css/main.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added assets/images/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 10 additions & 12 deletions assets/js/notice.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
( function ( _, $, adminpage ) {

var PromoterNotice = {
var Notice = {

dismiss: function ( evt ) {
evt.preventDefault();
evt.stopImmediatePropagation();

$.post( $( evt.target ).attr( 'href' ), { isAjax: 1 } );
this.container.remove();
$( evt.target ).closest( '.notice-inpsyde' ).remove();
},

construct: function () {

var container;
var $container;

_.bindAll(
this,
Expand All @@ -21,22 +21,20 @@
'addListeners'
);

container = document.querySelector( '#backwpup_notice_promoter_notice', {
useCapture: true
} );
$container = $( '.notice-inpsyde' );

if ( !container ) {
if ( $container.length === 0 ) {
return false;
}

this.container = container;
this.$container = $container;

return this;
},

addListeners: function () {
var dismisser = this.container.querySelector( '#backwpup_notice_promoter_dismiss' );
dismisser && dismisser.addEventListener( 'click', this.dismiss );
var $dismisser = this.$container.find( '.dismiss-button' );
$dismisser.length > 0 && $dismisser.on( 'click', this.dismiss );
},

init: function () {
Expand All @@ -47,7 +45,7 @@
};

if ( adminpage === 'toplevel_page_backwpup' ) {
var promoterNotice = Object.create( PromoterNotice );
promoterNotice.construct() && promoterNotice.init();
var notice = Object.create( Notice );
notice.construct() && notice.init();
}
}( window._, window.jQuery, window.adminpage ) );
2 changes: 1 addition & 1 deletion assets/js/notice.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion assets/js/page_edit_jobtype_dbdump.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ jQuery(document).ready(function ($) {
dbhost:$('#dbdumpdbhost').val(),
dbuser:$('#dbdumpdbuser').val(),
dbpassword:$('#dbdumpdbpassword').val(),
dbname:$('input[name="dbselected"]').val(),
wpdbsettings:$('#dbdumpwpdbsettings:checked').val(),
_ajax_nonce:$('#backwpupajaxnonce').val()

Expand Down
2 changes: 1 addition & 1 deletion assets/js/page_edit_jobtype_dbdump.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions assets/js/page_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jQuery( document ).ready( function ( $ ) {
if ( anchor.val() === '#backwpup-tab-license' ) {
$( '#submit' ).hide();
$( '#default_settings' ).hide();
$( 'input[name="license_submit"]' ).attr( 'type', 'submit' );
}

tab_wrapper_a.removeClass( 'nav-tab-active' );
Expand All @@ -45,9 +46,11 @@ jQuery( document ).ready( function ( $ ) {
} else if ( clickedid === '#backwpup-tab-license' ) {
$( '#submit' ).hide();
$( '#default_settings' ).hide();
$( 'input[name="license_submit"]' ).attr( 'type', 'submit' );
} else {
$( '#submit' ).show();
$( '#default_settings' ).show();
$( 'input[name="license_submit"]' ).attr( 'type', 'button' );
}
window.location.hash = clickedid;
window.scrollTo( 0, 0 );
Expand Down
Loading

0 comments on commit d521d83

Please sign in to comment.