@@ -247,7 +247,7 @@
'orderable': false,
'className': 'dt-body-center',
'render': function (data, type, full, meta) {
- return '

';
+ return '
 + ')
';
}
}],
"language": {
@@ -486,7 +486,6 @@
type: "POST",
url: url,
data: formData,
- async: false,
cache: false,
contentType: false,
processData: false,
diff --git a/SolarPower/Views/Shared/_Layout.cshtml b/SolarPower/Views/Shared/_Layout.cshtml
index c133257..2279c3b 100644
--- a/SolarPower/Views/Shared/_Layout.cshtml
+++ b/SolarPower/Views/Shared/_Layout.cshtml
@@ -762,7 +762,7 @@
diff --git a/SolarPower/Views/User/Index.cshtml b/SolarPower/Views/User/Index.cshtml
index 15cdde6..7fe9b55 100644
--- a/SolarPower/Views/User/Index.cshtml
+++ b/SolarPower/Views/User/Index.cshtml
@@ -113,7 +113,7 @@
return;
}
- $("#company-logo").attr("src", rel.data.logo);
+ $("#company-logo").attr("src", rel.data.logo + "?v=" + Date.now());
$("#company-name").html(rel.data.name);
$("#company-modal").modal();
@@ -399,7 +399,6 @@
"order": [[5, "desc"]],
"columns": [{
"data": null,
- "target": 0
}, {
"data": "companyName"
}, {
@@ -413,8 +412,16 @@
}, {
"data": null,
"defaultContent": '
'
- }
- ],
+ }],
+ "columnDefs": [{
+ 'targets': 0,
+ 'searchable': false,
+ 'orderable': false,
+ 'className': 'dt-body-center',
+ "createdCell": function (td, cellData, rowData, row, col) {
+ $(td).html(row + 1)
+ }
+ }],
"language": {
"emptyTable": "無資料...",
"processing": "處理中...",