Permalink
Browse files

Reformat the shared field when canceling the district details. Fixes #…

  • Loading branch information...
1 parent a71f941 commit 6b3e651b06173c93d67b57d0e0466885c1da418f David Zwarg committed Dec 14, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 django/publicmapping/redistricting/static/js/chooseplan.js
@@ -575,6 +575,12 @@ chooseplan = function(options) {
});
_cancelButton.button().click( function() {
_table.jqGrid('GridToForm', _selectedPlanId, '#plan_form');
+ var shared = $('#is_shared');
+ if (shared.val().contains("unshared")) {
+ shared.val('No');
+ } else {
+ shared.val('Yes');
+ }
editState('view');
return false;
});

0 comments on commit 6b3e651

Please sign in to comment.