-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brandon Olivares
committed
Nov 16, 2022
1 parent
ae44264
commit ec513ee
Showing
1,680 changed files
with
140,170 additions
and
90,330 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,123 @@ | ||
jQuery(document).ready(function ($) { | ||
$("#dball").click(function () { | ||
$('input[name="tabledb[]"]').prop("checked", true).change(); | ||
}); | ||
|
||
$('#dball').click(function () { | ||
$('input[name="tabledb[]"]').prop("checked", true).change(); | ||
}); | ||
$("#dbnone").click(function () { | ||
$('input[name="tabledb[]"]').prop("checked", false).change(); | ||
}); | ||
|
||
$('#dbnone').click(function () { | ||
$('input[name="tabledb[]"]').prop("checked", false).change(); | ||
}); | ||
$("#dbwp").click(function () { | ||
$('input[name="tabledb[]"]').prop("checked", false).change(); | ||
$('input[name="tabledb[]"][value^="' + $("#dbwp").val() + '"]') | ||
.prop("checked", true) | ||
.change(); | ||
}); | ||
|
||
$('#dbwp').click(function () { | ||
$('input[name="tabledb[]"]').prop("checked", false).change(); | ||
$('input[name="tabledb[]"][value^="' + $('#dbwp').val() + '"]').prop("checked", true).change(); | ||
var dbdumpwpdbsettings = $('input[name="dbdumpwpdbsettings"]'); | ||
if (dbdumpwpdbsettings.length > 0) { | ||
dbdumpwpdbsettings.change(function () { | ||
if (dbdumpwpdbsettings.prop("checked")) { | ||
$("#dbconnection").hide(); | ||
} else { | ||
$("#dbconnection").show(); | ||
} | ||
}); | ||
} | ||
|
||
var dbdumpwpdbsettings = $('input[name="dbdumpwpdbsettings"]'); | ||
if ( dbdumpwpdbsettings.length > 0 ) { | ||
dbdumpwpdbsettings.change(function () { | ||
if ( dbdumpwpdbsettings.prop("checked") ) { | ||
$('#dbconnection').hide(); | ||
} else { | ||
$('#dbconnection').show(); | ||
} | ||
}); | ||
} | ||
var trdbdumpmysqlfolder = $("#trdbdumpmysqlfolder"); | ||
$('input[name="dbdumptype"]').change(function () { | ||
if ($("#iddbdumptype-syssql").prop("checked")) { | ||
trdbdumpmysqlfolder.show(); | ||
} else { | ||
trdbdumpmysqlfolder.hide(); | ||
} | ||
}); | ||
|
||
var trdbdumpmysqlfolder = $('#trdbdumpmysqlfolder'); | ||
if ( trdbdumpmysqlfolder.length > 0 ) { | ||
$('input[name="dbdumptype"]').change(function () { | ||
if ( $('#iddbdumptype-syssql').prop("checked") ) { | ||
trdbdumpmysqlfolder.show(); | ||
} else { | ||
trdbdumpmysqlfolder.hide(); | ||
} | ||
}); | ||
$("a#fix-mysqldump-path").click(function (e) { | ||
e.preventDefault(); | ||
trdbdumpmysqlfolder.show(); | ||
$("input", trdbdumpmysqlfolder).focus(); | ||
}); | ||
|
||
if ( $('#iddbdumptype-syssql').prop("checked") ) { | ||
trdbdumpmysqlfolder.show(); | ||
} else { | ||
trdbdumpmysqlfolder.hide(); | ||
} | ||
} | ||
if ($("#iddbdumptype-syssql").prop("checked")) { | ||
trdbdumpmysqlfolder.show(); | ||
} else { | ||
trdbdumpmysqlfolder.hide(); | ||
} | ||
|
||
function db_tables() { | ||
var data = { | ||
action:'backwpup_jobtype_dbdump', | ||
action2:'tables', | ||
dbname:$('#dbdumpdbname').val(), | ||
dbhost:$('#dbdumpdbhost').val(), | ||
dbuser:$('#dbdumpdbuser').val(), | ||
dbpassword:$('#dbdumpdbpassword').val(), | ||
wpdbsettings:$('#dbdumpwpdbsettings:checked').val(), | ||
jobid:$('#jobid').val(), | ||
_ajax_nonce:$('#backwpupajaxnonce').val() | ||
}; | ||
$.post(ajaxurl, data, function (response) { | ||
$('#dbtables').replaceWith(response); | ||
}); | ||
} | ||
$('#dbdumpdbname').change(function () { | ||
db_tables(); | ||
}); | ||
$('#dbdumpwpdbsettings').change(function () { | ||
db_tables(); | ||
db_databases(); | ||
function db_tables() { | ||
var data = { | ||
action: "backwpup_jobtype_dbdump", | ||
action2: "tables", | ||
dbname: $("#dbdumpdbname").val(), | ||
dbhost: $("#dbdumpdbhost").val(), | ||
dbuser: $("#dbdumpdbuser").val(), | ||
dbpassword: $("#dbdumpdbpassword").val(), | ||
wpdbsettings: $("#dbdumpwpdbsettings:checked").val(), | ||
jobid: $("#jobid").val(), | ||
_ajax_nonce: $("#backwpupajaxnonce").val(), | ||
}; | ||
$.post(ajaxurl, data, function (response) { | ||
$("#dbtables").replaceWith(response); | ||
}); | ||
} | ||
|
||
function db_databases() { | ||
var data = { | ||
action:'backwpup_jobtype_dbdump', | ||
action2:'databases', | ||
dbhost:$('#dbdumpdbhost').val(), | ||
dbuser:$('#dbdumpdbuser').val(), | ||
dbpassword:$('#dbdumpdbpassword').val(), | ||
wpdbsettings:$('#dbdumpwpdbsettings:checked').val(), | ||
_ajax_nonce:$('#backwpupajaxnonce').val() | ||
$("#dbdumpdbname").change(function () { | ||
db_tables(); | ||
}); | ||
$("#dbdumpwpdbsettings").change(function () { | ||
db_tables(); | ||
db_databases(); | ||
db_charsets(); | ||
}); | ||
|
||
}; | ||
$.post(ajaxurl, data, function (response) { | ||
$('#dbdumpdbname').replaceWith(response); | ||
db_tables(); | ||
$('#dbdumpdbname').change(function () { | ||
db_tables(); | ||
}); | ||
}); | ||
} | ||
$('#dbdumpdbhost').change(function () { | ||
db_databases(); | ||
}); | ||
$('#dbdumpdbuser').change(function () { | ||
db_databases(); | ||
function db_databases() { | ||
var data = { | ||
action: "backwpup_jobtype_dbdump", | ||
action2: "databases", | ||
dbhost: $("#dbdumpdbhost").val(), | ||
dbuser: $("#dbdumpdbuser").val(), | ||
dbpassword: $("#dbdumpdbpassword").val(), | ||
wpdbsettings: $("#dbdumpwpdbsettings:checked").val(), | ||
_ajax_nonce: $("#backwpupajaxnonce").val(), | ||
}; | ||
$.post(ajaxurl, data, function (response) { | ||
$("#dbdumpdbname").replaceWith(response); | ||
db_tables(); | ||
$("#dbdumpdbname").change(function () { | ||
db_tables(); | ||
}); | ||
}); | ||
$('#dbdumpdbpassword').change(function () { | ||
db_databases(); | ||
} | ||
|
||
function db_charsets() { | ||
var data = { | ||
action: "backwpup_jobtype_dbdump", | ||
action2: "charsets", | ||
dbhost: $("#dbdumpdbhost").val(), | ||
dbuser: $("#dbdumpdbuser").val(), | ||
dbpassword: $("#dbdumpdbpassword").val(), | ||
wpdbsettings: $("#dbdumpwpdbsettings:checked").val(), | ||
jobid: $("#jobid").val(), | ||
_ajax_nonce: $("#backwpupajaxnonce").val(), | ||
}; | ||
|
||
$.post(ajaxurl, data, function (response) { | ||
$("#dbdumpdbcharset").replaceWith(response); | ||
}); | ||
} | ||
|
||
$("#dbdumpdbhost").change(function () { | ||
db_databases(); | ||
db_charsets(); | ||
}); | ||
$("#dbdumpdbuser").change(function () { | ||
db_databases(); | ||
db_charsets(); | ||
}); | ||
$("#dbdumpdbpassword").change(function () { | ||
db_databases(); | ||
db_charsets(); | ||
}); | ||
}); |
Oops, something went wrong.