You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please, folks, think of the developers who are redesigning Dolibarr using Javascript to meet a specific need. Currently, Dolibarr's biggest drawback is that there are very few, if any, id attributes except on inputs.
Maybe I'll do a pull request, but I think it's really important for tables, for example.
At the moment I'm getting by with Jquery by telling it to select the first child, or the td that contains such and such a word. It's not clean, the structure can change with each update and I don't like that.
I'd like each block or even the main ones to be uniquely identified by the id attribute.
Use case
I encountered this problem when I tried to create a Javascript code on the "Subject" line of the Ticket, but no luck: <tr><td class="nowrap">Sujet</td><td class="right"><a class="editfielda reposition" href="/ticket/card.php?action=editsubject&token=11233888ce88c278d00b3c044708e3b6&id=1808"><span class="fas fa-pencil-alt" style=" color: #444; float: right" title="Éditer"></span></a></td></tr>
No unique identifier, could possibly be based on href but again, not clean.
Feature Request
Please, folks, think of the developers who are redesigning Dolibarr using Javascript to meet a specific need. Currently, Dolibarr's biggest drawback is that there are very few, if any, id attributes except on inputs.
Maybe I'll do a pull request, but I think it's really important for tables, for example.
At the moment I'm getting by with Jquery by telling it to select the first child, or the td that contains such and such a word. It's not clean, the structure can change with each update and I don't like that.
I'd like each block or even the main ones to be uniquely identified by the id attribute.
Use case
I encountered this problem when I tried to create a Javascript code on the "Subject" line of the Ticket, but no luck:
<tr><td class="nowrap">Sujet</td><td class="right"><a class="editfielda reposition" href="/ticket/card.php?action=editsubject&token=11233888ce88c278d00b3c044708e3b6&id=1808"><span class="fas fa-pencil-alt" style=" color: #444; float: right" title="Éditer"></span></a></td></tr>
No unique identifier, could possibly be based on href but again, not clean.
Suggested implementation
<tr id="subjectParent"><td class="nowrap" id="subjectTitle">Sujet</td><td class="right" id="subjectField"><a class="editfielda reposition" href="/ticket/card.php?action=editsubject&token=11233888ce88c278d00b3c044708e3b6&id=1808"><span class="fas fa-pencil-alt" style=" color: #444; float: right" title="Éditer"></span></a></td></tr>
Suggested steps
No response
The text was updated successfully, but these errors were encountered: