Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I just upgraded from 7.x-1.1 to 7.x-1.x-dev and I could swear the Slickgrid module use to work, but now it doesn't. Also no error is being thrown.
http://drupal.org/project/slickgrid
Broken screenshot http://awesomescreenshot.com/0edhv2tf9
Comments
Comment #1
jcisio CreditAttribution: jcisio commentedFrankly I don't know why it breaks. From 1.1 to 1.x-dev I only move from the LABjs version 1.1 to 2.0 with a better queueing system and some optimization.
I was going to test slickgrid, but I looked at the dependency and I told myself: "next time".
So I recommend you to go back to the 1.1 (there is no db change). Or better, test the 1.1 with the labjs.js shipped with the latest 1.x-dev to see if it is labjs.js problem.
Comment #2
bryancasler CreditAttribution: bryancasler commentedThanks jcisio, I'm out of town for the weekend. When I get back home I'll give your suggestions a try.
Comment #3
bryancasler CreditAttribution: bryancasler commentedJust tested the 1.1 version and it didn't work, guess I was mis-remembering.
I tried to exclude all of Slickgrids JS, but I don't think I'm doing it right.
Comment #4
bryancasler CreditAttribution: bryancasler commentedAlternatively, is there a way I can prevent labjs from running on certain pages? This is only effecting two pages on the whole site, so I don't mind using a workaround for the time being.
Comment #5
jcisio CreditAttribution: jcisio commentedAdd a feature request to disable labjs in certain pages. But currently you can do it, by checking the path in a hook_init() then run
defined('LABJS_DISABLE', TRUE);
Comment #6
bryancasler CreditAttribution: bryancasler commentedThanks jcisio! #1243718: Option to include/exclude LabJS on certain pages
Comment #7
jcisio CreditAttribution: jcisio commentedThanks for the issue. There was also an error in the code above. It should be
define('LABJS_DISABLE', TRUE);
(without "d").Comment #8
bryancasler CreditAttribution: bryancasler commentedjcisio, I'm trying to check the path with hook_init, but I can't get it working. Can you point me in the right direction?
Comment #9
jcisio CreditAttribution: jcisio commentedIt should be "define" not "defined".
Comment #10
bryancasler CreditAttribution: bryancasler commentedThis is what I've got so far, but it's not working
labjs_disabler.info
labjs_disabler.module
Comment #11
jcisio CreditAttribution: jcisio commentedIf your module is labjs_disabler, your function should be labjs_disabler_init(). I'm not sure if you define current_path() elsewhere, too, but I think you can check it.
http://api.drupal.org/api/drupal/includes--module.inc/group/hooks/7
Last weekend I was busy with the Taskbar module, hope I'll have some free time implementing the url black list feature this week.
Comment #12
bryancasler CreditAttribution: bryancasler commentedThanks for all the positive feedback jcisio. I've been working with you and some helpers over at stackoverflow
http://drupal.stackexchange.com/questions/9074/how-should-i-use-hook-init
I took your suggestions as well as another on stack over flow to use drupal_get_path_alias() instead, but still no dice. Since you plan on fixing this, I'd probably be wasting more of your time asking you for help than it would take to make the actual fix. So I'll shut up :) I appreciate your help and I look forward to the changes.
Comment #13
jcisio CreditAttribution: jcisio commentedThis is fixed thanks to #1243718: Option to include/exclude LabJS on certain pages.
Comment #14
jcisio CreditAttribution: jcisio commented