D
cdn с совершенно обычными клиентскими скриптами:
https://cdnjs.com/libraries/riot
Size: a a a
D
FВ
D
FВ
D
KM
J
KM
J
KM
KM
KM
J
FВ
N
$('select[name=is_collection]').each(function(i, obj) {
// console.log("/admin/index.php?route=ozon/index/attributes&category_id=17032406&attrId="+$(obj).data("id")+"&token=<?php echo $token; ?>");
$.ajax({
url: "/admin/index.php?route=ozon/index/attributes&category_id=17032406&attrId="+$(obj).data("id")+"&token=<?php echo $token; ?>",
type: 'GET',
dataType: 'json', // added data type
success: function(res) {
console.log(res);
// alert(res);
}
});
});
});
N
В
В
В
$(document).delegate(".agree", "click", function (e) {
e.preventDefault();
$("#modal-agree").remove();
var element = this;
$.ajax({
url: $(element).attr("href"),
type: "get",
dataType: "html",
success: function (data) {
html = '<div id="modal-agree" class="modal">';
html += ' <div class="modal-dialog">';
html += ' <div class="modal-content">';
html += ' <div class="modal-header">';
html += ' <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>';
html += ' <h4 class="modal-title">' + $(element).text() + "</h4>";
html += " </div>";
html += ' <div class="modal-body">' + data + "</div>";
html += " </div";
html += " </div>";
html += "</div>";
$("body").append(html);
$("#modal-agree").modal("show");
},
});
});