Commit 1f7fcaed by David Baumgold

Separate Mako logic and JS logic

parent cffa0133
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
<script type="text/javascript"> <script type="text/javascript">
var $newUserForm; var $newUserForm;
var addUserPostbackUrl = "${add_user_postback_url}"; var addUserPostbackUrl = "${add_user_postback_url}";
var removeUserPostbackUrl = "${remove_user_postback_url}";
function showNewUserForm(e) { function showNewUserForm(e) {
e.preventDefault(); e.preventDefault();
...@@ -119,7 +120,7 @@ ...@@ -119,7 +120,7 @@
$('.remove-user').click(function() { $('.remove-user').click(function() {
$.ajax({ $.ajax({
url: '${remove_user_postback_url}', url: removeUserPostbackUrl,
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
contentType: 'application/json', contentType: 'application/json',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment