<div id="editproductdiv" onclick="editproduct();"> </div>
<div id="editproductform" class="modal fade" role="dialog">
<div class="modal-dialog" style="width:1000px;">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Cancellation Reason </h4>
</div>
<div class="modal-body" id="editproduct" style="display:inline-block">
</div>
<div class="modal-footer" style="display:none;">
</div>
</div>
</div>
</div>
<script>
function editproduct() {
$('#editproductform').modal('show');
$.ajax({
url: 'index.php?route=order/order_details/editproduct',
dataType: 'json',
type: 'post',
data: ,
beforeSend:function(){
$("#editproduct").html('loading');
},
success:function(json){
if(json['error']){
// alert(json['error']);
} else {
$("#editproduct").html(json['editproduct']);
}
}
});
}
</script>
Проблема: когда я нажимаю кнопку на странице просмотра, появляется это предупреждение: https://prnt.sc/s8gn6w
Код ошибки:
function (e) {var t, n, r, i = this [0]; {if (arguments.length) возвращает r = g (e), this.each (function (n) {var i; 1 = == this.nodeType && (null == (i = r? e.call (this, n, w (this) .val ()): e)? i = "": "number" == typeof i? i + = "": Array.isArray (i) && (i = w.map (i, function (e) {return null == e? "": E + ""})), (t = w.valHooks [this.type ] || w.valHooks [this.nodeName.toLowerCase ()]) && "set" в t && void 0! == t.set (this, i, "value") || (this.value = i))}) ; if (i) return (t = w.valHooks [i.type] || w.valHooks [i.nodeName.toLowerCase ()]) && "get" в t && void 0! == (n = t.get (i , "значение"))? n: "строка" == typeof (n = i.value)? n.replace (bt, ""): null == n? "": n}}
У меня не было ни одной кнопки оповещения, но это все еще показывает какую-либо идею, почему?