0
我知道這個問題被問了很多次,我怎麼試過所有可能的修復,但沒有爲我工作。Prestashop添加或編輯產品保存按鈕正在連續加載
一切都很好,我沒有做任何更新。我的Prestashop virsion是1.6.1.16
但是昨天,在完成我的主題之後,我決定開始添加新產品,並且這個問題阻止了我。當我打開我表現出這種錯誤控制檯:
products.js:170 Uncaught TypeError: this.current_request.complete is not a function
at ProductTabsManager.displayBulk (products.js:170)
at index.php?controller=AdminProducts&id_product=8&updateproduct&token=42575a03759c92767d819a1e5bed02af:1121
at dispatch (jquery-1.11.0.min.js:3)
at q.handle (jquery-1.11.0.min.js:3)
ProductTabsManager.displayBulk @ products.js:170
(anonymous) @ index.php?controller=AdminProducts&id_product=8&updateproduct&token=42575a03759c92767d819a1e5bed02af:1121
dispatch @ jquery-1.11.0.min.js:3
q.handle @ jquery-1.11.0.min.js:3
上products.js在行170:
if (this.current_request !== undefined)
{
this.current_request.complete(function(request, status) {
var wrong_statuses = new Array('abort', 'error', 'timeout');
var wrong_status_code = new Array(400, 401, 403, 404, 405, 406, 408, 410, 413, 429, 499, 500, 502, 503, 504);
if ((in_array(status, wrong_statuses) || in_array(request.status, wrong_status_code)) && !self.page_reloading) {
var current_tab = '';
if (request.responseText !== 'undefined' && request.responseText && request.responseText.length) {
current_tab = $(request.responseText).filter('.product-tab').attr('id').replace('product-', '');
}
jAlert((current_tab ? 'Tab : ' + current_tab : '') + ' (' + (request.status ? request.status + ' ' : '') + request.statusText + ')\n' + reload_tab_description, reload_tab_title);
self.page_reloading = true;
self.has_error_loading_tabs = true;
clearTimeout(tabs_running_timeout);
return false;
}
else if (!self.has_error_loading_tabs && (self.stack_done.length === self.tabs_to_preload.length)) {
$('[name="submitAddproductAndStay"]').each(function() {
$(this).prop('disabled', false).find('i').removeClass('process-icon-loading').addClass('process-icon-save');
});
$('[name="submitAddproduct"]').each(function() {
$(this).prop('disabled', false).find('i').removeClass('process-icon-loading').addClass('process-icon-save');
});
this.allow_hide_other_languages = true;
clearTimeout(tabs_running_timeout);
return false;
}
return true;
});
}