Subversion Repositories DevTools

Rev

Rev 6370 | Rev 6440 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6370 Rev 6427
Line 45... Line 45...
45
<!-- Local Java Script -->
45
<!-- Local Java Script -->
46
<script language="JavaScript">
46
<script language="JavaScript">
47
//  Local Tips
47
//  Local Tips
48
formTips.tips.following       = stdTip(200, 'Following', 'The user may \'follow\' a package in one or more Projects.<p>When the package is released the user will be notified by email.' );
48
formTips.tips.following       = stdTip(200, 'Following', 'The user may \'follow\' a package in one or more Projects.<p>When the package is released the user will be notified by email.' );
49
</script>
49
</script>
50
<script language="JavaScript">
-
 
51
//  Add copy to clipboard icon to every element with a class of 'clip'
-
 
52
$( document ).ready(function() {
-
 
53
    var myClipHandler = function (event)
-
 
54
    {
-
 
55
        // Get element to clip
-
 
56
        var el = $(this).closest('.clip').eq(0);
-
 
57
 
-
 
58
        // Copy to clipboard
-
 
59
        var $temp = $("<input>");
-
 
60
        $("body").append($temp);
-
 
61
        $temp.val($.trim(el.text())).select();
-
 
62
        document.execCommand("copy");
-
 
63
        $temp.remove();
-
 
64
 
-
 
65
        // Highlight (the text that has been selected
-
 
66
        //  Appears to be no nice way to do this :(
-
 
67
        var doc = document, range, selection;    
-
 
68
        if (doc.body.createTextRange) {
-
 
69
            range = document.body.createTextRange();
-
 
70
            range.moveToElementText(el[0]);
-
 
71
            range.select();
-
 
72
        } else if (window.getSelection) {
-
 
73
            selection = window.getSelection();        
-
 
74
            range = document.createRange();
-
 
75
            range.selectNodeContents(el[0]);
-
 
76
            selection.removeAllRanges();
-
 
77
            selection.addRange(range);
-
 
78
        }
-
 
79
 
-
 
80
    }
-
 
81
 
-
 
82
    $('.clip').append(
-
 
83
        $('<img />')
-
 
84
            .attr({
-
 
85
                title : "Copy to clipboard",
-
 
86
                src : "images/CopyToClipboard.ico",
-
 
87
                height : "12px",
-
 
88
                width : "12px",
-
 
89
                hspace : "0px",
-
 
90
                align : "absmiddle",
-
 
91
                border : "0"
-
 
92
                })
-
 
93
            .on("click", myClipHandler)
-
 
94
        )
-
 
95
        .on("dblclick", myClipHandler);
-
 
96
 
-
 
97
});
-
 
98
</script>
-
 
99
<%
50
<%
100
'----------------------------------------------------------------------------------------------------------------------------------------
51
'----------------------------------------------------------------------------------------------------------------------------------------
101
Function asDepIss ( SSiss_db_id, SScolumn )
52
Function asDepIss ( SSiss_db_id, SScolumn )
102
   If NOT depIssDict.Exists (SSiss_db_id) Then Exit Function
53
   If NOT depIssDict.Exists (SSiss_db_id) Then Exit Function
103
 
54