Javascript API

From OpenKM Documentation
Revision as of 09:20, 27 August 2012 by Jllort (talk | contribs)

Jump to: navigation, search

There're several UI javascript function public exposed. In some OpenKM customization cases is interesting accessing some public UI javascript functions ( take a look at this video [tab embeded web application].

General Functions

  • jsI18n(String) - Returns frontend trasnlation where String is the translation key
  • jsOpenWikiPage(String) - Open wiki page where String is wiki title
  • jsOpenUserTaskInstance(String) -
  • jsOpenPath(String, String) - Open some path in OpenKM UI. First String is folder path, second string is document path.
  • i18n(String) - Returns frontend trasnlation where String is the translation key ( deprecated )
  • openWikiPage(String) - Open wiki page where String is wiki title ( deprecated )
  • openPath(String, String) - Open some path in OpenKM UI. First String is folder path, second string is document path. ( deprecated )

Specific Cryptography Functions

  • cryptographyLoaded() - Hide UI status indicating cryptography applet is yet loaded.
  • digitalSignatureEnded() - Indicates digital signature has finished.
  • digitalSignatureCanceled() - Cancelling digital signature has been canceled.
  • startDigitalSignature() - Start digital signature.