Skip to content

Commit

Permalink
move the media search formlet up
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Chris--S committed Aug 3, 2013
1 parent 354c39f commit 89274c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions inc/media.php
Expand Up @@ -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();
Expand All @@ -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);
}

/**
Expand Down

0 comments on commit 89274c0

Please sign in to comment.