Closed (outdated)
Project:
Select (or other)
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Sep 2014 at 15:11 UTC
Updated:
22 May 2018 at 18:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alex-mo commentedComment #2
legolasboNew features will be developed against the 7.x-3.x branch
Comment #3
rodrigoaguileraYou still have to add some css class and the js is still loaded.
Here's a patch that adds a hook_select_or_other_process_alter the same way that the date module does (eg. http://www.drupalcontrib.org/api/drupal/contributions!date!date.api.php/...)
so you can implement that hook to remove the #attached js.
Comment #5
rodrigoaguileraThat patch was for 2.x.
Here's the one for 3.x.
I didn't found a better way to remove that js.
Comment #6
legolasbo@rodrigoaquilera,
If you want to remove JS you can just use core's hook_js_alter().
Comment #7
rodrigoaguileraI ended up using the hook on the patch for more stuff since some manipulation of the $element are not available in other hooks.
Also allows you to configure it per element but not if there's two select_or_other elements on the page since js will get included.
Comment #8
legolasbo@rodrigoaguilera,
Your request is actually to add a new hook to the module, and while that's in some ways relevant to this issue, should be in it's own feature request. If you could open a new issue for your feature request and state a valid use case for implementing the hook I will consider committing it.
Comment #9
rodrigoaguileraCreated issue: #2557833: Add new hook_select_or_other_process_alter
Now this can continue with the path that allow to have several select_or_other widgets and disable the js only in some.
Comment #10
legolasboIt is unclear to me what the goal of this issue is. Please provide a clear issue summary explaining your use case.
Comment #11
legolasboClosing this since there hasn't been an update in over 6 months.
Comment #12
legolasboClosing this since there hasn't been an update in over 6 months.