Subversion Repositories DevTools

Rev

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

Rev 6121 Rev 6131
Line 48... Line 48...
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">
50
<script language="JavaScript">
51
//  Add copy to clipboard icon to every element with a class of 'clip'
51
//  Add copy to clipboard icon to every element with a class of 'clip'
52
$( document ).ready(function() {
52
$( document ).ready(function() {
53
    $('.clip').append('<img title="Copy to clipboard" src="images/CopyToClipboard.ico" height="12px" width="12px" hspace="0px" align="absmiddle" border="0">');
-
 
54
    $('.clip').on("click", function(event){
53
    var myClipHandler = function (event)
-
 
54
    {
-
 
55
        // Get element to clip
-
 
56
        var el = $(this).closest('.clip').eq(0);
55
 
57
 
56
        // Blink the clipboard icon
58
        // Blink the clipboard icon
57
        $(this).hide();
59
        el.hide();
58
        $(this).fadeIn(100, function(){});
60
        el.fadeIn(100, function(){});
59
 
61
 
60
        // Copy to clipboard
62
        // Copy to clipboard
61
        var $temp = $("<input>");
63
        var $temp = $("<input>");
62
        $("body").append($temp);
64
        $("body").append($temp);
63
        $temp.val($.trim(this.innerText)).select();
65
        $temp.val($.trim(el.text())).select();
64
        document.execCommand("copy");
66
        document.execCommand("copy");
65
        $temp.remove();
67
        $temp.remove();
66
     });
68
    }
-
 
69
 
-
 
70
    $('.clip').append(
-
 
71
        $('<img />')
-
 
72
            .attr({
-
 
73
                title : "Copy to clipboard",
-
 
74
                src : "images/CopyToClipboard.ico",
-
 
75
                height : "12px",
-
 
76
                width : "12px",
-
 
77
                hspace : "0px",
-
 
78
                align : "absmiddle",
-
 
79
                border : "0"
-
 
80
                })
-
 
81
            .on("click", myClipHandler)
-
 
82
        )
-
 
83
        .on("dblclick", myClipHandler);
-
 
84
 
67
});
85
});
68
</script>
86
</script>
69
<%
87
<%
70
'----------------------------------------------------------------------------------------------------------------------------------------
88
'----------------------------------------------------------------------------------------------------------------------------------------
71
Function asDepIss ( SSiss_db_id, SScolumn )
89
Function asDepIss ( SSiss_db_id, SScolumn )