10gen / core-modules-admin

10gen Site Admin Interface

This URL has Read+Write access

core-modules-admin / _imageList.jxp
100644 13 lines (11 sloc) 0.366 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
<% response.setHeader( "Content-Type" , "application/json" ); %>
var tinyMCEImageList = [
<%
    var cursor = db._files.find( ).sort( { filename: 1 } );
 
while ( cursor.hasNext() ){
    var f = cursor.next();
    print( "[ \"" + f.filename + "\" , \"http://static.10gen.com/" + request.getHost() + "/~~/f?id=" + f._id + "\" ] , \n");
}
%>
[ "none" , "none"]
 ];