Completely disable sortable/draggable (Better separation in JS)

Created on 18 November 2013, over 10 years ago
Updated 21 February 2023, over 1 year ago

We are using Homebox in a few ways that are outside of the current user interface and design patterns. For this reason we had the need to completely disable jQuery UI sortable from executing the way it is currently being done in Homebox. Due to a number of technical issues we needed homebox.js not to call sortable at all.

I have built a patch which addresses this and a few other issues.

This patch does the following:
- Adds an administrative fieldset called "user interaction"
- Adds a config checkbox that allows globally for movable to be disabled (this also disables the checkboxes on the layout config page)
- Adds the $page settings for homebox to Drupal.settings.homebox JS settings array
- Moves the call to jQuery ui sortable to a separate function that is called in the attach method

This patch is meant to be a starting point to other functionality that could potentially be broken out into configurable elements to allow developers to override homebox default behaviour.

✨ Feature request
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada arvinsingla

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Please create a new Drupal 8+ (3.0.x) issue, referencing this one, if this is still relevant for Drupal 8+ (3.0.x).

    As this issue was created for Drupal 7 which is close to EOL and won't receive any new features here anymore (unless someone implements them or sponsors development) I'm closing this issue for cleanup now.

    If anyone works on this or has a solution, feel free to reopen! :)
    Thank you.

Production build 0.69.0 2024