bookmarks change view mode

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy
2013-03-08 10:17:19 +01:00
parent 06a4d254c2
commit f207e56b2d
2 changed files with 13 additions and 7 deletions
+8 -5
View File
@@ -422,10 +422,13 @@ function materio_flag_ajax_list($fid, $page = 0){
$debug = false;
$_GET['page'] = $page;
$list_path = 'lists';
$path = $list_path.'/'.$fid;
if($fid = 1){
$list_path = $path = 'bookmarks';
}else{
$list_path = 'lists';
$path = $list_path.'/'.$fid;
}
// check if request is ajax, if not rediret to search_api_page page with right keys
if (!$debug && (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest')) {
@@ -459,7 +462,7 @@ function materio_flag_ajax_list($fid, $page = 0){
menu_set_active_item($path);
$return = menu_execute_active_handler($path, FALSE);
// dsm($return, '$return');
dsm($return, '$return');
if (is_int($return)) {
switch ($return) {