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

Implemented noscript version of visualization view #2

Merged
merged 2 commits into from
Nov 8, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Changelog

6.1-dev - (unreleased)
----------------------
* Feature: Display image when javascript is disabled
[szabozo0 refs #9562]
* Upgrade step: Within "Plone > Site setup > Add-ons" click on
upgrade button available for eea.app.visualization
* Feature: Added utilities to get and convert external URL to
Expand Down
15 changes: 15 additions & 0 deletions eea/app/visualization/browser/css/view.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,18 @@ ul.chart-tabs li:first-of-type a:hover {
clear: both;
visibility: hidden;
}

/* noscript */
.daviz-tab-view-noscript {
display:none;
}

.daviz-tab-view-noscript:target {
display:block;
}

.daviz-tab-norealchart {
border:1px solid red;
color:red;
float:left;
}
2 changes: 2 additions & 0 deletions eea/app/visualization/browser/js/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ jQuery(document).ready(function(){
return false;
});

jQuery(".daviz-tab-view-noscript").removeClass("daviz-tab-view-noscript");

});
4 changes: 3 additions & 1 deletion eea/app/visualization/views/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def tabs(self):
{'name': self.__name__,
'title': self.label,
'css': tabname,
'tabname': tabname
'tabname': tabname,
'fallback-image': self.context.absolute_url() + \
"/++resource++" + self.__name__ + ".preview.png"
},
]

Expand Down