Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shop2.search.getParams = function (folder_id, func) {
- var gr_filter_max_count = shop2.my.gr_filter_max_count;
- var url;
- shop2.trigger("beforeGetFolderCustomFields");
- if (folder_id > 0) {
- url =
- "/my/s3/api/shop2/?cmd=getFolderCustomFields" +
- "&hash=" +
- shop2.apiHash.getFolderCustomFields +
- "&ver_id=" +
- shop2.verId +
- "&folder_id=" +
- folder_id +
- "&" +
- decodeURIComponent(document.location.search).replace(/[^&]*=(&|$)/g,"");
- if (gr_filter_max_count) {
- url = url + `gr_filter_max_count=${gr_filter_max_count}&`;
- };
- $.getJSON(url, function (d, status) {
- shop2.fire("afterGetFolderCustomFields", func, d, status);
- shop2.trigger("afterGetFolderCustomFields", d, status);
- });
- };
- };
Add Comment
Please, Sign In to add comment