Skip to content

Commit

Permalink
Permission editor sets permission_counter to a random number as a qui…
Browse files Browse the repository at this point in the history
…ck solution to allow multiple permission editors on the same page with otherwise conflicting ids.
  • Loading branch information
mikemintz committed Apr 24, 2013
1 parent 73eb698 commit 77d4cf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deme_django/cms/templates/templatetags/privacy_editor.html
@@ -1,5 +1,5 @@
<script>
var permission_counter = 1;
var permission_counter = Math.floor(Math.random() * 100000); // in case there are multiple permission editors
var possible_abilities = {{possible_ability_javascript_array}};
var can_edit_permissions = {{can_edit_permissions}};

Expand Down Expand Up @@ -290,4 +290,4 @@
</div>
<div style="margin-top: 10px;">
Having trouble with permissions? Try reading the <a href="{{permissions_help_url}}">guide to using Permissions</a>
</div>
</div>

0 comments on commit 77d4cf3

Please sign in to comment.