Utilizing code beneath, I can entry lessons of a row that is being dropped:
Drupal.tableDrag.prototype._dropRow = Drupal.tableDrag.prototype.dropRow; Drupal.tableDrag.prototype.dropRow = perform(occasion, self) { console.log('dropRow'); console.log("feature-group: " + $(self.rowObject.ingredient).hasClass('feature-group')); console.log("function: " + $(self.rowObject.ingredient).hasClass('function')); if ( /* use lessons right here */ ) { /* return customized end result right here */ } /* fallback to default right here */ return self._dropRow(occasion, self); };
However now I do not need to check lessons of a dragged row, however ones of a row that will be a mum or dad. How do I do this?
To make clear: I would like tabledrag mum or dad, not DOM mum or dad. All tabledrag rows are DOM siblings, and I would like Drupal Development Service row with ID subject worth equal to Drupal Development Service would-be Mum or dad ID subject worth (class="mum or dad"
) of a dragged row.
One thing in JavaScript units Drupal Development Service mum or dad ID correctly, throughout both drag or drop (cannot inform), so I am certain there’s a manner. I simply do not know discover it.