mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 17:18:51 +02:00
N°1386 - Advanced Search: Navigation in list - Browse this list - new version
This commit is contained in:
@@ -1378,7 +1378,7 @@ abstract class DBObject implements iDisplay
|
||||
|
||||
if ($bClickable && (strlen($sUrl) > 0)) {
|
||||
if ($bInBasket) {
|
||||
$sHLink = "<a class=\"object-ref-link object-in-basket\" data-href=\"$sUrl\">$sIcon$sHtmlLabel</a>";
|
||||
$sHLink = "<a class=\"object-ref-link object-in-basket\" href=\"$sUrl\">$sIcon$sHtmlLabel</a>";
|
||||
} else {
|
||||
$sHLink = "<a class=\"object-ref-link\" href=\"$sUrl\" >$sIcon$sHtmlLabel</a>";
|
||||
}
|
||||
|
||||
@@ -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