Skip to content

Commit

Permalink
[2285] Bind to changes on the data explorer's views
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Murray committed Apr 25, 2012
1 parent 98b3e24 commit 8c267d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/public/scripts/application.js
Expand Up @@ -1408,6 +1408,10 @@ CKAN.DataPreview = function ($, my) {
// Bind changes to the DataExplorer, or the two width and height inputs
// to re-calculate the url.
dataExplorer.state.bind('change', updateLink);
for (var i=0; i<dataExplorer.pageViews.length; i++) {
dataExplorer.pageViews[i].view.state.bind('change', updateLink);
}

iframeWidth.change(updateLink);
iframeHeight.change(updateLink);

Expand Down

0 comments on commit 8c267d2

Please sign in to comment.