tdraier     2005/08/30 18:48:26 CEST

  Modified files:
    src/view/jsp         actions.js 
  Log:
  clipboard fix, reload only when finished
  
  Revision  Changes    Path
  1.7       +9 -6      corporate_portal_templates/src/view/jsp/actions.js
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/corporate_portal_templates/src/view/jsp/actions.js.diff?r1=1.6&r2=1.7&f=h
  
  
  
  Index: actions.js
  ===================================================================
  RCS file: 
/home/cvs/repository/corporate_portal_templates/src/view/jsp/actions.js,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- actions.js        26 Aug 2005 13:30:22 -0000      1.6
  +++ actions.js        30 Aug 2005 16:48:26 -0000      1.7
  @@ -669,21 +669,24 @@
   
                if (op == "paste") {
                    req.onreadystatechange = function () {
  -                     window.location.reload();
  -                document.body.style.cursor = "default";
  +                if (req.readyState == 4) {
  +                    document.body.style.cursor = "default";
  +                    window.location.reload();
  +                }
                }
            } else {
                    req.onreadystatechange = function () {
  -                     
document.getElementById('clipboard').innerHTML=objectKey;
  -                document.body.style.cursor = "default";
  -             }
  +                if (req.readyState == 4) {
  +                             
document.getElementById('clipboard').innerHTML=objectKey;
  +                    document.body.style.cursor = "default";
  +                }
  +            }
            }
   
                if (method == "POST") {
                        req.setRequestHeader ("Content-type", 
"application/x-www-form-urlencoded");
                }
                req.send (data);
  -
        } catch (e) {
                alert ("Exception sending the Request: " + e);
        }
  

Reply via email to