PHRAS-202 #fix deletion of diffusion list in IE

This commit is contained in:
Nicolas Le Goff
2014-07-23 19:42:11 +02:00
parent 8de09ac15a
commit c9adc6fd08
2 changed files with 3 additions and 4 deletions

View File

@@ -25,9 +25,8 @@
</td> </td>
{% if list.getOwner(app['authentication'].getUser(), app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_ADMIN') %} {% if list.getOwner(app['authentication'].getUser(), app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_ADMIN') %}
<td style="text-align:right;white-space:nowrap;width:150px;"> <td style="text-align:right;white-space:nowrap;width:150px;">
<button class="deleter btn btn-inverse"> <button class="deleter btn btn-inverse" data-list-id="{{ list.getId() }}">
{% trans 'Delete' %} {% trans 'Delete' %}
<input type="hidden" name="list_id" value="{{ list.getId() }}"/>
</button> </button>
</td> </td>
{% endif %} {% endif %}

View File

@@ -514,7 +514,7 @@
var options = { var options = {
cancelButton: true, cancelButton: true,
buttons: buttons, buttons: buttons,
size: 'Alert' size: '700x170'
}; };
p4.Dialog.Create(options, 2).setContent(box); p4.Dialog.Create(options, 2).setContent(box);
@@ -626,7 +626,7 @@
$('button.deleter', $container).bind('click', function (event) { $('button.deleter', $container).bind('click', function (event) {
var list_id = $(this).find('input[name=list_id]').val(); var list_id = $(this).data("list-id");
var makeDialog = function (box) { var makeDialog = function (box) {