Use not minified webodf source. Let Assetic do its job
This commit is contained in:
Родитель
c7e584f405
Коммит
7f8c119750
|
@ -313,8 +313,7 @@ var documentsMain = {
|
|||
documentsMain.overlay.documentOverlay('show');
|
||||
}
|
||||
|
||||
var webodfSource = (oc_debug === true) ? 'webodf-debug' : 'webodf';
|
||||
OC.addScript('documents', '3rdparty/webodf/' + webodfSource).done(function() {
|
||||
OC.addScript('documents', '3rdparty/webodf/webodf-debug').done(function() {
|
||||
// preload stuff in the background
|
||||
require({}, ["dojo/ready"], function(ready) {
|
||||
ready(function() {
|
||||
|
|
|
@ -53,8 +53,7 @@ var odfViewer = {
|
|||
},
|
||||
|
||||
onView: function(filename) {
|
||||
var webodfSource = (oc_debug === true) ? 'webodf-debug' : 'webodf',
|
||||
attachTo = odfViewer.isDocuments ? '#documents-content' : '#controls',
|
||||
var attachTo = odfViewer.isDocuments ? '#documents-content' : '#controls',
|
||||
attachToolbarTo = odfViewer.isDocuments ? '#content-wrapper' : '#controls';
|
||||
|
||||
if (odfViewer.isDocuments){
|
||||
|
@ -69,7 +68,7 @@ var odfViewer = {
|
|||
|
||||
OC.addStyle('documents', 'viewer/odfviewer');
|
||||
|
||||
OC.addScript('documents', '3rdparty/webodf/' + webodfSource, function() {
|
||||
OC.addScript('documents', '3rdparty/webodf/webodf-debug', function() {
|
||||
FileList.setViewerMode(true);
|
||||
|
||||
// odf action toolbar
|
||||
|
|
Загрузка…
Ссылка в новой задаче