diff --git a/js/documents.js b/js/documents.js index 63133565..bb680262 100644 --- a/js/documents.js +++ b/js/documents.js @@ -5,9 +5,7 @@ $.widget('oc.documentGrid', { context : '.documentslist', documents : {}, sessions : {}, - members : {}, - errorMessage : '', - errorHint : '' + members : {} }, _create : function (){ @@ -86,14 +84,14 @@ $.widget('oc.documentGrid', { if (!result || result.status === 'error') { documentsMain.loadError = true; if (result && result.message) { - that.options.errorMessage = result.message; + documentsMain.loadErrorMessage = result.message; } else { - that.options.errorMessage = t('richdocuments', 'Failed to load the document, please contact your administrator.'); + documentsMain.loadErrorMessage = t('richdocuments', 'Failed to load the document, please contact your administrator.'); } if (result && result.hint) { - that.options.errorHint = result.hint; + documentsMain.loadErrorHint = result.hint; } } else { @@ -121,8 +119,8 @@ $.widget('oc.documentGrid', { if (documentsMain.loadError) { $(this.options.context).after('
' + this.options.errorMessage + '
' - + this.options.errorHint + + '
' + documentsMain.loadErrorMessage + '
' + + documentsMain.loadErrorHint + '