Revision 94cb09ab
Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt
js/kivi.Part.js | ||
---|---|---|
265 | 265 |
}; |
266 | 266 |
|
267 | 267 |
// businessmodel |
268 |
ns.businessmodel_renumber_positions = function() { |
|
269 |
$('.businessmodel_row [name="position"]').each(function(idx, elt) { |
|
270 |
$(elt).html(idx+1); |
|
271 |
}); |
|
272 |
}; |
|
273 |
|
|
268 | 274 |
ns.delete_businessmodel_row = function(clicked) { |
269 | 275 |
var row = $(clicked).closest('tr'); |
270 | 276 |
$(row).remove(); |
277 |
|
|
278 |
ns.businessmodel_renumber_positions(); |
|
271 | 279 |
}; |
272 | 280 |
|
273 | 281 |
ns.add_businessmodel_row = function() { |
... | ... | |
810 | 818 |
kivi.run_once_for('#makemodel_rows', 'makemodel_row_sort_renumber', function(elt) { |
811 | 819 |
$(elt).on('sortstop', kivi.Part.makemodel_renumber_positions); |
812 | 820 |
}); |
821 |
|
|
822 |
kivi.run_once_for('#businessmodel_rows', 'businessmodel_row_sort_renumber', function(elt) { |
|
823 |
$(elt).on('sortstop', kivi.Part.businessmodel_renumber_positions); |
|
824 |
}); |
|
813 | 825 |
}; |
814 | 826 |
|
815 | 827 |
ns.init = function() { |
Auch abrufbar als: Unified diff
kundentyp-spezifische Artikelnummern: Position/Reihenfolge