src/cm/media/js/lib/flexible-js-formatting/clip.js
author gibus
Mon, 21 May 2012 16:50:42 +0200
changeset 439 8994d24e4b2f
parent 0 40c8f766c9b8
permissions -rw-r--r--
Reverts to changeset 435, and just add {% csrf_token %} to template forgot_pw.html, since CSRF protection seems to be only here (surely because of django.contrib.auth.views).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
if (window.clipboardData) {
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     2
    c = window.clipboardData.getData("Text");
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     3
    if (c) {
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     4
        document.write("<p>The contents of your clipboard:</p>");
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     5
        document.write("<blockquote>" + c + "</blockquote>");
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
    }
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     7
}