Skip to content
Snippets Groups Projects
Commit 79dfece1 authored by Michael Sieber's avatar Michael Sieber
Browse files

Loggings entfernt + nur ein result im stateProcess

parent 217b0578
No related branches found
No related tags found
No related merge requests found
import("system.result");
import("Document_lib");
var canOpen = DocumentUtil.canOpenSelectedDocument();
if(canOpen)
result.string("EDITABLE");
var openFileState;
if(DocumentUtil.canOpenSelectedDocument())
openFileState = "EDITABLE";
else
result.string("INVISIBLE");
\ No newline at end of file
openFileState = "INVISIBLE";
result.string(openFileState);
\ No newline at end of file
import("system.result");
import("Document_lib");
var canOpen = DocumentUtil.canOpenSelectedDocument();
if(canOpen)
result.string("EDITABLE");
var openFileState;
if(DocumentUtil.canOpenSelectedDocument())
openFileState = "EDITABLE";
else
result.string("INVISIBLE");
\ No newline at end of file
openFileState = "INVISIBLE";
result.string(openFileState);
\ No newline at end of file
import("system.logging");
import("system.util");
import("system.translate");
import("system.result");
......@@ -84,8 +83,6 @@ DocumentUtil.canOpenSelectedDocument = function()
if(uids.length == 1)
{
logging.log("type: " + rows[0]["TYPE"]);
logging.log("re: " + MimeTypes.canOpenMimeTypeInBrowser(rows[0]["TYPE"]));
return MimeTypes.canOpenMimeTypeInBrowser(rows[0]["TYPE"]);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment