Do you have any plans to release it for Drupal 7?

CommentFileSizeAuthor
#7 js_injector.zip19.1 KBkreynen

Comments

BenK’s picture

Subscribing

andrewsuth’s picture

Yes, I am planning a Drupal 7 release before the end of February.

f1mishutka’s picture

Any news on this?

andrewsuth’s picture

Firstly, I apologise but I have been busy with projects at the moment and I still need to sort out my GIT access.

The 7.x version of this module has there been postponed until further notice.

marcusx’s picture

subscribe

marcusx’s picture

Title: Any plans for 7.x? » Any plans for 7.x? (JS Injector)

Changed title for understanding in the dashboard what this is about.

kreynen’s picture

StatusFileSize
new19.1 KB

I just took the D7 branch of @eaton's http://drupal.org/project/css_injector, did a find and replace of css to and js, and it worked for JavaScript! Obviously this isn't an upgrade of this module or a replacement for adding js at the theme layer, but it's helpful for development.

klonos’s picture

Title: Any plans for 7.x? (JS Injector) » Port JS injector module to drupal 7
Issue tags: +D7 porting, +port to d7, +d7 ports

Thanx Kevin! I intent to test this soon ...perhaps over this weekend? I'll report back in order to let everyone know how it went.

klonos’s picture

PS: I am letting people over in Custom CSS and JavaScript files project's issue queue know of your effort in hope that we'll get more people to test this: #1141722: Port Custom CSS and JavaScript files module to drupal 7 (check the issue's summary that I updated).

klonos’s picture

Simple test:

1. Loaded some .js file through drupal_add_js in my theme's template.php
2. Made sure that the script did some magic.
3. Removed both the .js file from my theme's directory and drupal_add_js from my theme's template.php
4. Checked that magic previously done to the site was no longer happening.
5. Installed & enabled the module from #7 above.
6. Headed to Configuration -> Development -> JS injector (../admin/config/development/js-injector) and created a "js rule".
7. Checked my server's ../sites/default/files/ and verified that the "js_injector" directory exists.
8. Verified that within the "js_injector" directory there is a "js_injector_1.js" file created.
9. Opened the "js_injector_1.js" file and verified that its contents match what I created.
10. Refreshed browser to see if the js still worked as before (when I added the drupal_add_js in my theme's template.php)...

...what do you know!!! It wooorks!!! Yay ;)

clashar’s picture

+1

ponsich’s picture

Version: 6.x-1.0 » 7.x-1.x-dev
Assigned: Unassigned » kreynen
Category: task » support
Status: Active » Fixed

Thank you.
I create a new branch with your version.
I publish it like a dev revision and i add you as maintener for the project, so free to you to make the release for the stable one.

klonos’s picture

Thanx Nicolas! Finally ;)

btw ...the dev is built but not shown in the project's page though. One has to click the "View all releases" link to find it.

ponsich’s picture

Edit 2:
Done.

klonos’s picture

Thanx.

Status: Fixed » Closed (fixed)
Issue tags: -D7 porting, -port to d7, -d7 ports

Automatically closed -- issue fixed for 2 weeks with no activity.