mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
PHRAS-202 #fix deletion of diffusion list in IE
This commit is contained in:
@@ -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 %}
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user