|
|
|
@ -93,16 +93,17 @@ $(document).ready(function() {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
icon = el.parents('[data-pid]').find('.edit-icon');
|
|
|
|
|
icon = el.closest('[data-pid]').find('.edit-icon').first();
|
|
|
|
|
icon.prop('title', el.text()).tooltip('fixTitle').removeClass('hidden');
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$(window).on('action:posts.edited', function(ev, data) {
|
|
|
|
|
var parent = $('[data-pid="' + data.post.pid + '"]'),
|
|
|
|
|
icon = parent.find('.edit-icon'),
|
|
|
|
|
el = parent.find('[component="post/editor"]');
|
|
|
|
|
|
|
|
|
|
var parent = $('[data-pid="' + data.post.pid + '"]');
|
|
|
|
|
var icon = parent.find('.edit-icon').filter(function (index, el) {
|
|
|
|
|
return parseInt($(el).closest('[data-pid]').attr('data-pid'), 10) === parseInt(data.post.pid, 10);
|
|
|
|
|
});
|
|
|
|
|
var el = parent.find('[component="post/editor"]').first();
|
|
|
|
|
icon.prop('title', el.text()).tooltip('fixTitle').removeClass('hidden');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|