root / drupal7 / sites / all / themes / bootstrap / js / misc / tabledrag.js @ 749b8a23
1 | caf16a48 | Assos Assos | (function ($) { |
---|---|---|---|
2 | |||
3 | /**
|
||
4 | * Add an asterisk or other marker to the changed row.
|
||
5 | */
|
||
6 | Drupal.tableDrag.prototype.row.prototype.markChanged = function () { |
||
7 | var $cell = $('td:first', this.element); |
||
8 | // Find the first appropriate place to insert the marker.
|
||
9 | var $target = $($cell.find('.file-size').get(0) || $cell.find('.file').get(0) || $cell.find('.tabledrag-handle').get(0)); |
||
10 | if (!$cell.find('.tabledrag-changed').length) { |
||
11 | $target.after(' ' + Drupal.theme('tableDragChangedMarker') + ' '); |
||
12 | } |
||
13 | }; |
||
14 | |||
15 | })(jQuery); |