Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redundant inclusion of JS/CSS #15

Closed
mxgrn opened this issue Nov 24, 2010 · 1 comment
Closed

Redundant inclusion of JS/CSS #15

mxgrn opened this issue Nov 24, 2010 · 1 comment

Comments

@mxgrn
Copy link

mxgrn commented Nov 24, 2010

If I have a simple component that extends GridPanel, e.g.,

class ExpandableGridPanel < Netzke::Basepack::GridPanel
js_include Netzke::Core.ext_location.join("examples/ux/
RowExpander.js"),
css_include "#{File.dirname(FILE)}/ajaxrowexpander/
RowExpander.css"

[other stuff here...]
end

and then i create a tab panel, e.g,

<%= netzke :tabs,
:class_name => "Basepack::TabPanel",
:items => [
{:class_name => 'ExpandableGridPanel', :model => 'User'},
{:class_name => 'ExpandableGridPanel', :model =>
'Membership'},
{:class_name => 'ExpandableGridPanel', :model => 'Asset'},
[several more like the above...]
],
%>

Then I get the js and css files included numerous times, once for each
time the class is used.

@mxgrn
Copy link
Author

mxgrn commented Sep 5, 2011

@mxgrn mxgrn closed this as completed Sep 5, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant