JSortableList is altering all text fields found in the table.. which is
unnecessary and quite restrictive.
Of course it would be better to use the following selector
".text-area-order" but as there are some locations (ie. com_menus,
com_categories, ..) without the class, and maybe others in 3rd party
components, the easiet way is maybe to search for: [type=text]:hidden
At least, this allows us to have "visible" text fields without
alteration of their value.
Thanks,
Sebastien
Open the following file
/administrator/components/com_content/views/articles/tmpl/default.php
Then add a text input after line 211
< td >< input type="text" id="plop" name="plop" value="x" class="input-mini" / >< /td >
From the Article Manager, select "Ordering ascending"
Reorder using the drag & drop grip icon
==> without fix: you'll see that the "x" values are altered...
==> with fix: you'll see that the "x" values are not altered... (after refresh, reorder is still saved = OK)
Regards,
Sebastien
please add the testing description .... where and how people can test your suggestion, and what expect in result, thanks!