|
@@ -28,7 +28,7 @@ define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefin |
|
@@ -28,7 +28,7 @@ define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefin |
28
|
{field: 'user_id', title: __('User_id'), visible: false, addClass: "selectpage", extend: "data-source='user/user/index' data-field='nickname'"},
|
28
|
{field: 'user_id', title: __('User_id'), visible: false, addClass: "selectpage", extend: "data-source='user/user/index' data-field='nickname'"},
|
29
|
{field: 'preview', title: __('Preview'), formatter: Controller.api.formatter.thumb, operate: false},
|
29
|
{field: 'preview', title: __('Preview'), formatter: Controller.api.formatter.thumb, operate: false},
|
30
|
{field: 'url', title: __('Url'), formatter: Controller.api.formatter.url, visible: false},
|
30
|
{field: 'url', title: __('Url'), formatter: Controller.api.formatter.url, visible: false},
|
31
|
- {field: 'filename', title: __('Filename'), formatter: Table.api.formatter.search, operate: 'like'},
|
31
|
+ {field: 'filename', title: __('Filename'), formatter: Controller.api.formatter.filename, operate: 'like'},
|
32
|
{
|
32
|
{
|
33
|
field: 'filesize', title: __('Filesize'), operate: 'BETWEEN', sortable: true, formatter: function (value, row, index) {
|
33
|
field: 'filesize', title: __('Filesize'), operate: 'BETWEEN', sortable: true, formatter: function (value, row, index) {
|
34
|
var size = parseFloat(value);
|
34
|
var size = parseFloat(value);
|
|
@@ -103,12 +103,12 @@ define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefin |
|
@@ -103,12 +103,12 @@ define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefin |
103
|
showExport: false,
|
103
|
showExport: false,
|
104
|
columns: [
|
104
|
columns: [
|
105
|
[
|
105
|
[
|
106
|
- {field: 'state', checkbox: multiple, visible: multiple, operate:false},
|
106
|
+ {field: 'state', checkbox: multiple, visible: multiple, operate: false},
|
107
|
{field: 'id', title: __('Id')},
|
107
|
{field: 'id', title: __('Id')},
|
108
|
{field: 'admin_id', title: __('Admin_id'), formatter: Table.api.formatter.search, visible: false},
|
108
|
{field: 'admin_id', title: __('Admin_id'), formatter: Table.api.formatter.search, visible: false},
|
109
|
{field: 'user_id', title: __('User_id'), formatter: Table.api.formatter.search, visible: false},
|
109
|
{field: 'user_id', title: __('User_id'), formatter: Table.api.formatter.search, visible: false},
|
110
|
{field: 'url', title: __('Preview'), formatter: Controller.api.formatter.thumb, operate: false},
|
110
|
{field: 'url', title: __('Preview'), formatter: Controller.api.formatter.thumb, operate: false},
|
111
|
- {field: 'filename', title: __('Filename'), formatter: Table.api.formatter.search, operate: 'like'},
|
111
|
+ {field: 'filename', title: __('Filename'), formatter: Controller.api.formatter.filename, operate: 'like'},
|
112
|
{field: 'imagewidth', title: __('Imagewidth'), operate: false},
|
112
|
{field: 'imagewidth', title: __('Imagewidth'), operate: false},
|
113
|
{field: 'imageheight', title: __('Imageheight'), operate: false},
|
113
|
{field: 'imageheight', title: __('Imageheight'), operate: false},
|
114
|
{
|
114
|
{
|
|
@@ -170,6 +170,9 @@ define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefin |
|
@@ -170,6 +170,9 @@ define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefin |
170
|
url: function (value, row, index) {
|
170
|
url: function (value, row, index) {
|
171
|
return '<a href="' + row.fullurl + '" target="_blank" class="label bg-green">' + row.url + '</a>';
|
171
|
return '<a href="' + row.fullurl + '" target="_blank" class="label bg-green">' + row.url + '</a>';
|
172
|
},
|
172
|
},
|
|
|
173
|
+ filename: function (value, row, index) {
|
|
|
174
|
+ return '<div style="width:200px;margin:0 auto;text-align:center;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;">' + Table.api.formatter.search.call(this, value, row, index) + '</div>';
|
|
|
175
|
+ },
|
173
|
}
|
176
|
}
|
174
|
}
|
177
|
}
|
175
|
|
178
|
|