equal
deleted
inserted
replaced
30 <script type="text/javascript"> |
30 <script type="text/javascript"> |
31 <!-- |
31 <!-- |
32 |
32 |
33 |
33 |
34 $(document).ready(function(){ |
34 $(document).ready(function(){ |
35 old_state = $("#id_workspace_role_model").attr('value'); |
35 old_state = $("#id_workspace_role_model").val(); |
36 |
36 |
37 $("#id_workspace_role_model").change(function (e) { |
37 $("#id_workspace_role_model").change(function (e) { |
38 question = "{% blocktrans %}Are you sure you want to change the role model? All roles (except managers) will be resetted!{% endblocktrans %}"; |
38 question = "{% blocktrans %}Are you sure you want to change the role model? All roles (except managers) will be resetted!{% endblocktrans %}"; |
39 if (!confirm(question)) { |
39 if (!confirm(question)) { |
40 $("#id_workspace_role_model").attr('value',old_state); |
40 $("#id_workspace_role_model").val(old_state); |
41 } |
41 } |
42 }); |
42 }); |
43 |
43 |
44 $("#cancel_button").click(function (e) { |
44 $("#cancel_button").click(function (e) { |
45 window.location = "{% url index %}"; |
45 window.location = "{% url index %}"; |