mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix empty procDocumentAddCart request (2.1.24 regression) #2568
This commit is contained in:
parent
b15fc8deb3
commit
3c44f96f63
2 changed files with 25 additions and 14 deletions
|
|
@ -653,7 +653,7 @@ Rhymix.ajaxForm = function(form, success, error) {
|
|||
* @return void
|
||||
*/
|
||||
Rhymix.checkboxToggleAll = function(name) {
|
||||
if (!window[name]) {
|
||||
if (typeof name === 'undefined') {
|
||||
name='cart';
|
||||
}
|
||||
let options = {
|
||||
|
|
@ -1457,12 +1457,16 @@ function popopen(url, target) {
|
|||
* @return void
|
||||
*/
|
||||
function doAddDocumentCart(obj) {
|
||||
Rhymix.addedDocument.push(obj.value);
|
||||
if (obj && obj.value) {
|
||||
Rhymix.addedDocument.push(obj.value);
|
||||
}
|
||||
setTimeout(function() {
|
||||
exec_json('document.procDocumentAddCart', {
|
||||
srls: Rhymix.addedDocument.join(',')
|
||||
});
|
||||
Rhymix.addedDocument = [];
|
||||
if (Rhymix.addedDocument.length > 0) {
|
||||
exec_json('document.procDocumentAddCart', {
|
||||
srls: Rhymix.addedDocument
|
||||
});
|
||||
Rhymix.addedDocument = [];
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue