Skip to content
Snippets Groups Projects
Commit 89274c0d authored by Christopher Smith's avatar Christopher Smith
Browse files

move the media search formlet up

Currently the search box is below the media file list, where it is
effectively inaccessible in a namespace with lots of files.  This
change moves the search box above the media file list and below the
upload form.
parent 354c39ff
No related branches found
No related tags found
No related merge requests found
......@@ -586,7 +586,10 @@ function media_filelist($ns,$auth=null,$jump='',$fullscreenview=false,$sort=fals
// FIXME: print permission warning here instead?
echo '<div class="nothing">'.$lang['nothingfound'].'</div>'.NL;
}else{
if (!$fullscreenview) media_uploadform($ns, $auth);
if (!$fullscreenview) {
media_uploadform($ns, $auth);
media_searchform($ns);
}
$dir = utf8_encodeFN(str_replace(':','/',$ns));
$data = array();
......@@ -609,7 +612,6 @@ function media_filelist($ns,$auth=null,$jump='',$fullscreenview=false,$sort=fals
if ($fullscreenview) echo '</ul>'.NL;
}
}
if (!$fullscreenview) media_searchform($ns);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment