mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 05:30:15 +08:00
[desktop] fix bug 68666
This commit is contained in:
@ -617,7 +617,8 @@ define([
|
||||
menu.hide();
|
||||
} else
|
||||
if ( action == 'create:fromtemplate' ) {
|
||||
native.execCommand('create:new', 'template:' + (!!window.SSE ? 'cell' : !!window.PE ? 'slide' : !!window.PDFE ? 'form' : 'word'));
|
||||
native.execCommand('create:new', 'template:' + (!!window.SSE ? 'cell' : !!window.PE ? 'slide' : !!window.PDFE ? 'form' :
|
||||
window.PDFE || config.isPDFForm ? 'form' : 'word'));
|
||||
menu.hide();
|
||||
}
|
||||
},
|
||||
@ -648,7 +649,8 @@ define([
|
||||
} else
|
||||
if ( opts == 'create:new' ) {
|
||||
if (config.createUrl == 'desktop://create.new') {
|
||||
native.execCommand("create:new", !!window.SSE ? 'cell' : !!window.PE ? 'slide' : 'word');
|
||||
native.execCommand("create:new", !!window.SSE ? 'cell' : !!window.PE ? 'slide' :
|
||||
window.PDFE || config.isPDFForm ? 'form' : 'word');
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user