-
- var defaultOptions = {
- panels: [
- {
- name: 'htmleditor',
- ratio: 0.5
- },
-
- {
- 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="{% url editor_base %}'+fileId+'">' + fileId + '</a></li>');
- });