- code ในส่วนบรรทัดที่ error ว่าหา find('input') ไม่เจอในไฟล์ script.js
Code: Select all
progress: function (e, data) {
// Calculate the completion percentsage of the upload
var progress = parseInt(data.loaded / data.total * 100, 10);
data.context.find('input').val(progress).change(); //---บรรทัดที่ 263 หา "input" ไม่เจอ
if (progress == 100) {
data.context.removeClass('working');
}
}
- code ส่วนที่แสดงบนหน้าจอ
Code: Select all
var tpl = $('<li class="working"><input type="text" value="0" data-width="48" data-height="48"' +
' data-fgColor="#0788a5" data-readOnly="1" data-bgColor="#fff" /><div class="row"><div class="col-md-4"><p></p></div><div class="col-md-3 aft' + id_upload + '"></div><div class="col-md-3 download' + id_upload + '" style="text-align:left;"></div><div class="col-md-1"><span></span></div></div></li>');
}
tpl.find('input').knob();
// Listen for clicks on the icons.png to remove
tpl.find('span').click(function () {
if (tpl.hasClass('working')) {
jqXHR.abort();
}
tpl.fadeOut(function () {
tpl.remove();
});
});