sync(dev): fehlende Admin-Theme-Assets vom Live-Stand ergaenzt (nichts ueberschrieben)
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
var carsListInit = function() {
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#carListTable').audarisTools('makeTable', {
|
||||
align: ['left', 'right', 'right', 'right', 'center', 'center', 'right', 'right', 'right'],
|
||||
sortables: [true, true, true, true, true, true, true, false, false],
|
||||
types: [null, null, 'cur', null, 'bool', 'bool'],
|
||||
rowIdentifier: 'id',
|
||||
onRowClick: function(appendDetailsCallback, rowIdentifier) {
|
||||
$.post('/testdata2.php', {
|
||||
id: rowIdentifier
|
||||
}, function(data) {
|
||||
if (typeof appendDetailsCallback == 'function' && data) {
|
||||
var $detailsElement = appendDetailsCallback(data);
|
||||
|
||||
$('.carDetailsButtons', $detailsElement).audarisTools('addButtons', {
|
||||
buttons: [
|
||||
{
|
||||
text: 'Verkaufen',
|
||||
icon: 'key',
|
||||
onClick: function() {
|
||||
alert(rowIdentifier);
|
||||
}
|
||||
},
|
||||
{
|
||||
text: 'Löschen',
|
||||
icon: 'trash',
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
text: 'Kopieren',
|
||||
icon: 'copy'
|
||||
},
|
||||
{
|
||||
text: 'Bearbeiten',
|
||||
icon: 'wrench'
|
||||
},
|
||||
{
|
||||
text: 'Dokumente',
|
||||
icon: 'print'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
$('.carListDetailsData', $detailsElement).audarisTools('dottedList');
|
||||
}
|
||||
});
|
||||
},
|
||||
getData: {
|
||||
source: '/testdata.php',
|
||||
format: 'json',
|
||||
data: {
|
||||
page: 1,
|
||||
limit: 10
|
||||
},
|
||||
colAssign: ['id', 'modell', 'erstzulassung', 'laufleistung', 'leistung_kw', 'bestand', 'iminternet', 'preis', 'intnr'],
|
||||
type: 'POST'
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user