- $('#file-list-reset-button').click(function(event)
- {
- $('#file-list').filterItems();
- event.preventDefault();
- });
+ {
+ name: 'gallery',
+ ratio: 0.5
+ }
+ ],
+ recentFiles: [],
+ lastUpdate: 0
+ };
+
+ var options = null;
+ try {
+ var cookie = $.cookie('options');
+ options = $.secureEvalJSON(cookie);
+ if (!options) {
+ options = defaultOptions;
+ }
+ } catch (e) {
+ options = defaultOptions;
+ };
+
+ $.each(options.recentFiles, function(index) {
+ var fileId = options.recentFiles[index].fileId;
+ $('#recent-file-list ul').append('<li><a href="/editor/' + fileId + '/">' + fileId + '</a></li>');
+ });