|
|
@ -127,8 +127,9 @@ var odfViewer = {
|
|
|
|
$.ajax({type: 'GET',
|
|
|
|
$.ajax({type: 'GET',
|
|
|
|
url: OC.filePath('richdocuments', 'ajax', 'generate.php'),
|
|
|
|
url: OC.filePath('richdocuments', 'ajax', 'generate.php'),
|
|
|
|
data: {id: context.$file.attr('data-id')},
|
|
|
|
data: {id: context.$file.attr('data-id')},
|
|
|
|
async: false, success: function(result) {
|
|
|
|
async: false,
|
|
|
|
if(result.status=="success"){
|
|
|
|
success: function(result) {
|
|
|
|
|
|
|
|
if(result.status==='success'){
|
|
|
|
var $chatroom = $('<div />');
|
|
|
|
var $chatroom = $('<div />');
|
|
|
|
$chatroom.attr('id','chatroom');
|
|
|
|
$chatroom.attr('id','chatroom');
|
|
|
|
$chatroom.data('chatroom-password',result.password);
|
|
|
|
$chatroom.data('chatroom-password',result.password);
|
|
|
|