Needs work
Project:
Localization client
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2012 at 17:19 UTC
Updated:
29 Aug 2013 at 13:21 UTC
I was creating a new module when I realized that I couldn't import jquery.hotkeys due to an issue with i10n_client which has already load a jquery.hotkeys.js
Shoudn't we place jquery.hotkeys in the libraries directory?
Comments
Comment #1
droplet commentedDrupal able to load another JS replace the exist one. No conflict at all.
Comment #2
SebCorbin commentedWe need to use libraries module as a non-required dependency.
In the following order:
Verify if function
libraries_load()exists and try to loadjquery.hotkeys.jsTry to load
jquery.hotkeys.jswithin sites/all/librariesLoad our own
jquery.hotkeys.jsas fallbackThe problem won't be solved if other modules are not loading this library from sites/all/libraries though.