The Profile Category Weight module's administrative interface at admin/settings/profile_category_weight could be made more user friendly if it used javascript to allow the categories to be re-orded using drag and drop.

Instead of displaying the current simple weight-based interface, like:

category-name-1
weight-drop-down-1

category-name-2
weight-drop-down-2

...

I think something like:

+ category-name-1
+ category-name-2
...

would be more user friendly. This interface would be similar to how the profile fields are re-ordered within each category on the admin/user/profile page.

p.s. Besides this, this module is great! Thanks!

Comments

lucascaro’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new3.85 KB

Here is my patch for using tabledrag for this setting. Please review.

lucascaro’s picture

Status: Patch (to be ported) » Needs review

updating status, sorry

ilo’s picture

Lucascaro, I've been reviewing and testing the patch and looks fine. I'd say, it can be marked as RTBC. Lack of comments fits pretty well with the rest of the code, so it does not matter that much.

Thanks!!

lucascaro’s picture

glad to hear that, I hope the maintainer likes it as well.

stewart.adam’s picture

Status: Needs review » Needs work

Confirmed working for me too, but why does the patch create new functions that are never used such as _profile_category_weight_settings()?

lucascaro’s picture

sorry about that, that's profile_category_weight_settings being "disabled" by adding a _
it should be safe to delete that function from the patch.