Use not minified webodf source. Let Assetic do its job

This commit is contained in:
Victor Dubiniuk 2014-10-15 22:25:08 +03:00
Родитель c7e584f405
Коммит 7f8c119750
2 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -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