Commit b17b391e authored by Alexey.Musinov's avatar Alexey.Musinov

добавлен тест для десктопного приложения

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47132 954022d7-b5bf-4e40-9824-e11837661b57
parent 329472ae
......@@ -490,17 +490,34 @@
var bChartEditor = !!getURLParameter("charteditor");
var sUserNameAndId = "user_" + Math.floor ((Math.random() * 100) + 1);
api.asc_LoadDocument({
"Id" : getURLParameter("key") ? decodeURIComponent(getURLParameter("key")) : "9876543210",
"Url" : getURLParameter("url") ? decodeURIComponent(getURLParameter("url")) : undefined,
"Title" : getURLParameter("title") ? decodeURIComponent(getURLParameter("title")).replace(new RegExp("\\+",'g')," ") : undefined,
"Format" : getURLParameter("filetype") ? decodeURIComponent(getURLParameter("filetype")) : undefined,
"VKey" : getURLParameter("vkey") ? decodeURIComponent(getURLParameter("vkey")) : undefined,
"Origin" : (sProtocol.search(/\w+/) >= 0 ? sProtocol + "//" : "") + sHost,
"UserId" : sUserNameAndId,
"UserName" : sUserNameAndId,
"ChartEditor" : bChartEditor
});
var offLineApp = 0; // 1; // NOTE: ONLY FOR TEST DESKTOP APPLICATION
if (!offLineApp) {
api.asc_LoadDocument({
"Id" : getURLParameter("key") ? decodeURIComponent(getURLParameter("key")) : "9876543210",
"Url" : getURLParameter("url") ? decodeURIComponent(getURLParameter("url")) : undefined,
"Title" : getURLParameter("title") ? decodeURIComponent(getURLParameter("title")).replace(new RegExp("\\+",'g')," ") : undefined,
"Format" : getURLParameter("filetype") ? decodeURIComponent(getURLParameter("filetype")) : undefined,
"VKey" : getURLParameter("vkey") ? decodeURIComponent(getURLParameter("vkey")) : undefined,
"Origin" : (sProtocol.search(/\w+/) >= 0 ? sProtocol + "//" : "") + sHost,
"UserId" : sUserNameAndId,
"UserName" : sUserNameAndId,
"ChartEditor" : bChartEditor
});
} else {
api.asc_LoadDocument({
"Id" : getURLParameter("key") ? decodeURIComponent(getURLParameter("key")) : "9876543210",
"Url" : decodeURIComponent("file:///X:/AVS/Sources/TeamlabOffice/trunk/OfficeWeb/Excel/offlinedocs/test-native/"),
"Title" : getURLParameter("title") ? decodeURIComponent(getURLParameter("title")).replace(new RegExp("\\+",'g')," ") : undefined,
"Format" : getURLParameter("filetype") ? decodeURIComponent(getURLParameter("filetype")) : undefined,
"VKey" : getURLParameter("vkey") ? decodeURIComponent(getURLParameter("vkey")) : undefined,
"Origin" : (sProtocol.search(/\w+/) >= 0 ? sProtocol + "//" : "") + sHost,
"UserId" : sUserNameAndId,
"UserName" : sUserNameAndId,
"ChartEditor" : bChartEditor,
"OfflineApp" : true
});
}
$("#enableKE").data("state", true).click(function(){
var $this = $(this), s = $this.data("state");
......
This diff is collapsed.
Excel/offlinedocs/test-native/media/image1.jpg

232 KB

<?xml version="1.0" encoding="utf-8"?><media><image md5="876AD77946A99D9A4C6B47959053CD05" filename="image1.jpg" /></media>
\ No newline at end of file
File added
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment