mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-20 15:52:24 +02:00
N°1386 - Advanced Search: Navigation in list - Browse this list - new version
This commit is contained in:
@@ -113,13 +113,16 @@ var oTable{{ sListIDForVarSuffix }} = $('#{{ oUIBlock.GetId() }}').DataTable({
|
||||
{% else %}
|
||||
|
||||
$('#{{ oUIBlock.GetId() }}_wrapper').find('.object-in-basket').on('click',
|
||||
function () {
|
||||
console.warn('ici');
|
||||
sUrl = $(this).attr('data-href');
|
||||
function (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
sUrl = $(this).attr('href');
|
||||
$('#basket{{ oUIBlock.GetId() }}').attr('action', sUrl);
|
||||
if (event.ctrlKey)
|
||||
{
|
||||
$('#basket{{ oUIBlock.GetId() }}').attr('target', "_blank");
|
||||
}
|
||||
$('#basket{{ oUIBlock.GetId() }}').submit();
|
||||
|
||||
|
||||
}
|
||||
);
|
||||
{% endif %}
|
||||
@@ -149,13 +152,16 @@ var oTable{{ sListIDForVarSuffix }} = $('#{{ oUIBlock.GetId() }}').DataTable({
|
||||
{% else %}
|
||||
|
||||
$('#{{ oUIBlock.GetId() }}_wrapper').find('.object-in-basket').on('click',
|
||||
function () {
|
||||
console.warn('ici');
|
||||
sUrl = $(this).attr('data-href');
|
||||
function (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
sUrl = $(this).attr('href');
|
||||
$('#basket{{ oUIBlock.GetId() }}').attr('action', sUrl);
|
||||
if (event.ctrlKey)
|
||||
{
|
||||
$('#basket{{ oUIBlock.GetId() }}').attr('target', "_blank");
|
||||
}
|
||||
$('#basket{{ oUIBlock.GetId() }}').submit();
|
||||
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user