114 { |
114 { |
115 'action' : 'duplicator_settings', |
115 'action' : 'duplicator_settings', |
116 'dbhost' : $("input#dbhost").val(), |
116 'dbhost' : $("input#dbhost").val(), |
117 'dbname' : $("input#dbname").val(), |
117 'dbname' : $("input#dbname").val(), |
118 'dbuser' : $("input#dbuser").val(), |
118 'dbuser' : $("input#dbuser").val(), |
119 'nurl' : $("input#nurl").val(), |
119 'url_new' : $("input#url_new").val(), |
120 'dbiconv' : dbiconv, |
120 'dbiconv' : dbiconv, |
121 'email-me' : email_me, |
121 'email-me' : email_me, |
122 'email_others' : email_others, |
122 'email_others' : email_others, |
123 'max_time' : $("input#max_time").val(), |
123 'max_time' : $("input#max_time").val(), |
124 'max_memory' : $("input#max_memory").val(), |
124 'max_memory' : $("input#max_memory").val(), |
275 $("#dialog-options").dialog( {autoOpen:false, height:610, width:750, create:Duplicator._dlgCreate, close:Duplicator._dlgClose }); |
275 $("#dialog-options").dialog( {autoOpen:false, height:610, width:750, create:Duplicator._dlgCreate, close:Duplicator._dlgClose }); |
276 $("#dup-dlg-system-check").dialog({autoOpen:false, height:600, width:700, create:Duplicator._dlgCreate, close:Duplicator._dlgClose, modal: true, buttons: {<?php _e("Cancel", 'wpduplicator') ?>: function() { $(this).dialog("close");}}}); |
276 $("#dup-dlg-system-check").dialog({autoOpen:false, height:600, width:700, create:Duplicator._dlgCreate, close:Duplicator._dlgClose, modal: true, buttons: {<?php _e("Cancel", 'wpduplicator') ?>: function() { $(this).dialog("close");}}}); |
277 $("#dup-dlg-system-error").dialog({autoOpen:false, height:550, width:650, create:Duplicator._dlgCreate, close:Duplicator._dlgClose }); |
277 $("#dup-dlg-system-error").dialog({autoOpen:false, height:550, width:650, create:Duplicator._dlgCreate, close:Duplicator._dlgClose }); |
278 $("#dup-dlg-quick-path").dialog({autoOpen:false, height:355, width:800, create:Duplicator._dlgCreate, close:Duplicator._dlgClose }); |
278 $("#dup-dlg-quick-path").dialog({autoOpen:false, height:355, width:800, create:Duplicator._dlgCreate, close:Duplicator._dlgClose }); |
279 $("#dup-dlg-package-confirm").dialog( |
279 $("#dup-dlg-package-confirm").dialog( |
280 {autoOpen:false, height:285, width:625, create:Duplicator._dlgCreate, close:Duplicator._dlgClose, |
280 {autoOpen:false, height:300, width:625, create:Duplicator._dlgCreate, close:Duplicator._dlgClose, |
281 buttons: { |
281 buttons: { |
282 "<?php _e('Create Package Set', 'wpduplicator') ?>" : function() { |
282 "<?php _e('Create Package Set', 'wpduplicator') ?>" : function() { |
283 $(this).dialog("close"); |
283 $(this).dialog("close"); |
284 Duplicator.processCreateConfirmation(true); |
284 Duplicator.processCreateConfirmation(true); |
285 }, |
285 }, |
303 $('#dir_bypass').animate({ borderColor: "blue", borderWidth: 2 }, 3000); |
303 $('#dir_bypass').animate({ borderColor: "blue", borderWidth: 2 }, 3000); |
304 $('#dir_bypass').animate({ borderColor: "#dfdfdf", borderWidth: 1 }, 100); |
304 $('#dir_bypass').animate({ borderColor: "#dfdfdf", borderWidth: 1 }, 100); |
305 } |
305 } |
306 Duplicator.optionsOpen = function() {$("div#dialog-options").dialog("open");} |
306 Duplicator.optionsOpen = function() {$("div#dialog-options").dialog("open");} |
307 Duplicator.optionsClose = function() {$('div#dialog-options').dialog('close');} |
307 Duplicator.optionsClose = function() {$('div#dialog-options').dialog('close');} |
|
308 Duplicator.optionsAddRootPath = function(obj) { |
|
309 var path = $(obj).text(); |
|
310 var text = $("#dir_bypass").val() + path + ';'; |
|
311 $("#dir_bypass").val(text); |
|
312 } |
|
313 |
308 |
314 |
309 |
315 |
310 /* ============================================================================ |
316 /* ============================================================================ |
311 DIALOG: SYSTEM-CHECKS |
317 DIALOG: SYSTEM-CHECKS |
312 Actions that revolve around the systems check dialog */ |
318 Actions that revolve around the systems check dialog */ |