Closed (works as designed)
Project:
Framework
Version:
7.x-3.4
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
1 Jul 2011 at 09:11 UTC
Updated:
28 Aug 2011 at 20:50 UTC
I propose to introduce an empty file for scripts, such as custom.js
and in .info file insert scripts[] = custom.js
in custom.js for example in D7:
jQuery.noConflict();
(function($){
$(document).ready(function() {
// Your code hire
//$("a").addClass("myClass");
});
$(window).load(function(){
// or hire
});
})(jQuery);
Comments
Comment #1
andregriffin commentedHm, while a lot of people may end up doing this customization on their own, I'm kind of a stickler for keeping the amount of things rolled into the vanilla Framework down to a minimum. I think most people who do require custom JS are capable enough to add the line to their .info file themselves. Though I think this would be a good thing to include in the readme for those who may need it.
What exactly is the JS doing in your provided example?
Comment #2
andregriffin commented