mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-07 03:42:13 +02:00
search result to prev if there's no next
This commit is contained in:
parent
29ebb50698
commit
6220338024
13
h-m-m
13
h-m-m
|
@ -1234,7 +1234,8 @@ function search(&$mm)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
next_search_result($mm);
|
if (!next_search_result($mm))
|
||||||
|
previous_search_result($mm);
|
||||||
}
|
}
|
||||||
|
|
||||||
function previous_search_result(&$mm)
|
function previous_search_result(&$mm)
|
||||||
|
@ -1262,10 +1263,7 @@ function previous_search_result(&$mm)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($nid<0)
|
if ($nid<0)
|
||||||
{
|
return false;
|
||||||
display($mm);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$mm['active_node'] = $nid;
|
$mm['active_node'] = $nid;
|
||||||
display($mm);
|
display($mm);
|
||||||
|
@ -1296,10 +1294,7 @@ function next_search_result(&$mm)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($nid<0)
|
if ($nid<0)
|
||||||
{
|
return false;
|
||||||
display($mm);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$mm['active_node'] = $nid;
|
$mm['active_node'] = $nid;
|
||||||
display($mm);
|
display($mm);
|
||||||
|
|
Loading…
Reference in a new issue