mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-999 - fix events delegation
This commit is contained in:
@@ -413,13 +413,13 @@
|
|||||||
this.list = null;
|
this.list = null;
|
||||||
this.container = $container;
|
this.container = $container;
|
||||||
|
|
||||||
$('.back_link', this.container).bind('click', function () {
|
$container.on('click', '.back_link', function() {
|
||||||
$('#PushBox').show();
|
$('#PushBox').show();
|
||||||
$('#ListManager').hide();
|
$('#ListManager').hide();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$('a.list_sharer', this.container).off('click').on('click', function () {
|
$container.on('click', 'a.list_sharer', function() {
|
||||||
|
|
||||||
var $this = $(this),
|
var $this = $(this),
|
||||||
options = {
|
options = {
|
||||||
@@ -434,8 +434,7 @@
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$container.on('click', 'a.user_adder', function() {
|
||||||
$('a.user_adder', this.container).bind('click', function () {
|
|
||||||
|
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user