Closed (fixed)
Project:
Deep Zoom
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2012 at 00:42 UTC
Updated:
22 Aug 2012 at 06:51 UTC
Hey Guys,
I noticed that the JS for this module was being appended to the page over several lines so i modified the code slightly to do it over one line using a single call to "druapl add js inline" via a variable.
I thought it might also be nice if the settings could be set in an attached js file to allow drupal to aggregate it.
anyway I have created a patch to do the above let me know what you think.
Regards
| Comment | File | Size | Author |
|---|---|---|---|
| jscleanup.patch | 4.16 KB | sduff_07 |
Comments
Comment #1
decipheredHi sduff_07,
Thanks for the patch, I opted for an alternative approach however as it's important that the configuration be configurable, and you're code would means that it's either cacheable or configurable but not both. Instead, I've opted to have the configuration written to code (public://deepzoom/deepzoom_config.js), which makes it both configurable and cacheable.
Committed - http://drupalcode.org/project/deepzoom.git/commitdiff/2f731a362e5acc9c77...
Cheers,
Deciphered.
Comment #2
richardhayward commentedThanks Deciphered!
Comment #3
sduff_07 commentedahh this missing link, just what i was after.
thanks