diff --git a/js/office.js b/js/office.js index dd5c1537..3b0bb898 100644 --- a/js/office.js +++ b/js/office.js @@ -24,7 +24,6 @@ var officeMain = { OC.addScript('office', 'editor/boot_editor').done(function() { var doclocation = response.genesis_url; - officeMain.doclocation = doclocation; // fade out files menu and add odf menu $('.documentslist').fadeOut('slow').promise().done(function() { @@ -112,7 +111,12 @@ var officeMain = { if (!$('#allsessions').length){ $(document.body).append('
'); } - $('#allsessions').append('
'+s.es_id+ '
'); + $('
'+s.es_id+ '
').appendTo('#allsessions').click( + function(event){ + event.preventDefault(); + officeMain.onView(s); + } + ); }, onClose: function() {