jStorage Library
Component ID
2066395
Component name
jStorage Library
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
1803
Component created
Component changed
Component body
Summary
A Drupal module to provide the jstorage script as a library. Using this module means you do not have to include the jstorage file more than once in any Drupal installation. See https://drupal.org/node/1342220 for more info on libraries.
Installation
- Download and unzip this module into your modules directory.
- Download jStorage https://github.com/andris9/jStorage to
sites/all/libraries/jstorageso that the js file is located here:sites/all/libraries/jstorage/jstorage.min.js - Goto Administer > Site Building > Modules and enable this module.
- Goto Reports > Status reports and look for the line that starts with jStorage to make sure the library is detected correctly.
If you have a dependency on this module and you need a Drupal 8 version, please let me know by commenting on (or creating) the issue called “Drupal 8 Portâ€. I will prioritize those modules that have the most votes for Drupal 8 first over others.
Usage
When you want to use jstorage on a page you must include this line of code:
libraries_load('jstorage');
