|
|
@ -300,12 +300,7 @@ function errorfun(responseText, statusText, xhr, form) {
|
|
|
|
function successfun(responseText, statusText, xhr, form) {
|
|
|
|
function successfun(responseText, statusText, xhr, form) {
|
|
|
|
for (var key in responseText) {
|
|
|
|
for (var key in responseText) {
|
|
|
|
if (responseText[key].name == "ok") {
|
|
|
|
if (responseText[key].name == "ok") {
|
|
|
|
if ($("#rule_check_flag").val() == 1 && $("#auto_update_cache_checkbox").attr("checked")) {
|
|
|
|
$.modaldialog.success(responseText[key].value)
|
|
|
|
$.modaldialog.success(responseText[key].value + "n" + "\u9759\u6001\u9875\u9762\u66f4\u65b0\u4e2d...");
|
|
|
|
|
|
|
|
updateCache($("#auto_update_cache_checkbox").val(), "")
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$.modaldialog.success(responseText[key].value)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (responseText[key].name == "ok_go") {
|
|
|
|
if (responseText[key].name == "ok_go") {
|
|
|
|
$.modaldialog.success('提交成功,正在跳转到下个页面...');
|
|
|
|
$.modaldialog.success('提交成功,正在跳转到下个页面...');
|
|
|
@ -518,12 +513,12 @@ function mobile_friendly(refresh){
|
|
|
|
var ic_url = $("#ic_url").val();
|
|
|
|
var ic_url = $("#ic_url").val();
|
|
|
|
var sitecode = $("#is_sitecode").val();
|
|
|
|
var sitecode = $("#is_sitecode").val();
|
|
|
|
if(refresh){
|
|
|
|
if(refresh){
|
|
|
|
var url = '/info.php/apps/pagespeed/index/run';
|
|
|
|
var url = '/info.php/apps/pagespeed/index/run';
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
var url = '/info.php/apps/pagespeed/index/show_score';
|
|
|
|
var url = '/info.php/apps/pagespeed/index/show_score';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$.post(url, {'psd_URL':ic_url, 'psd_SiteCode':sitecode}, function(data){
|
|
|
|
$.post(url, {'psd_URL':ic_url, 'psd_SiteCode':sitecode}, function(data){
|
|
|
|
var json = eval('(' + data + ')');
|
|
|
|
var json = eval('(' + data + ')');
|
|
|
|
if (json.result == 'ok'){
|
|
|
|
if (json.result == 'ok'){
|
|
|
|
$("#mobile_friendly_status").html(json.data);
|
|
|
|
$("#mobile_friendly_status").html(json.data);
|
|
|
|
} else{
|
|
|
|
} else{
|
|
|
@ -535,16 +530,16 @@ if (json.result == 'ok'){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
$('.ShowMeTheDatePicker_cn').datepicker({
|
|
|
|
$('.ShowMeTheDatePicker_cn').datepicker({
|
|
|
|
dateFormat: 'yy-mm-dd',
|
|
|
|
dateFormat: 'yy-mm-dd',
|
|
|
|
showButtonPanel: false
|
|
|
|
showButtonPanel: false
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$('.ShowMeTheDatePicker').datepicker({
|
|
|
|
$('.ShowMeTheDatePicker').datepicker({
|
|
|
|
showButtonPanel: true
|
|
|
|
showButtonPanel: true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|