summaryrefslogtreecommitdiff
path: root/lib/scripts/fileuploaderextended.js
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-08-03 17:19:28 +0200
committerChristopher Smith <chris@jalakai.co.uk>2013-08-03 17:19:28 +0200
commitc84391dcf5eb8a23bcae9e558285975c6b47e7f1 (patch)
tree2ba3fb7a7a2ec80807deb9ae11b4c20e5124a462 /lib/scripts/fileuploaderextended.js
parent00e3e3940de140e6fe6ce3c558c71a47f676b456 (diff)
downloadrpg-c84391dcf5eb8a23bcae9e558285975c6b47e7f1.tar.gz
rpg-c84391dcf5eb8a23bcae9e558285975c6b47e7f1.tar.bz2
show media files in date order (most recent first) after an upload is completed
Diffstat (limited to 'lib/scripts/fileuploaderextended.js')
-rw-r--r--lib/scripts/fileuploaderextended.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/scripts/fileuploaderextended.js b/lib/scripts/fileuploaderextended.js
index 0ba7a0525..f5786c387 100644
--- a/lib/scripts/fileuploaderextended.js
+++ b/lib/scripts/fileuploaderextended.js
@@ -188,6 +188,7 @@ qq.extend(qq.FileUploaderExtended.prototype, {
if (i) action = action.substr(0, i);
var button = '<form method="post" action="' + action + '" id="mediamanager__done_form"><div>';
button += '<input type="hidden" value="' + result.ns + '" name="ns">';
+ button += '<input type="hidden" value="1" name="recent">';
button += '<input class="button" type="submit" value="' + LANG.media_done_btn + '"></div></form>';
jQuery('#mediamanager__uploader').append(button);
}