script.js 626 B

12345678910111213141516171819
  1. function addBtnActionJCapture($btn, props, edid) {
  2. $btn.click(function() {
  3. var jCaptureApplet = document.getElementById("jCaptureApplet");
  4. if (jCaptureApplet==null) {
  5. var oNewDiv = document.createElement("div");
  6. oNewDiv.id="jCaptureAppletDiv";
  7. //oNewDiv.style.display='none';
  8. document.body.appendChild(oNewDiv);
  9. jQuery("#jCaptureAppletDiv").load(DOKU_BASE+"lib/plugins/jcapture/applet.php?edid="+edid+"&pageName="+document.forms['dw__editform'].elements['id'].value);
  10. } else {
  11. jCaptureApplet.showCaptureFrame();
  12. }
  13. return false;
  14. });
  15. return true;
  16. }