Use not minified webodf source. Let Assetic do its job

pull/1/head
Victor Dubiniuk 10 years ago
parent c7e584f405
commit 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

Loading…
Cancel
Save