mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 21:45:50 +01:00
(refs #39)Small fix for copy button.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
$(function(){
|
||||
// disable Ajax cache
|
||||
$.ajaxSetup({ cache: false });
|
||||
|
||||
$('#repository-url').click(function(){
|
||||
@@ -27,6 +28,7 @@ $(function(){
|
||||
moviePath: moviePath
|
||||
});
|
||||
var title = $('#repository-url-copy').attr('title');
|
||||
$('#repository-url-copy').removeAttr('title')
|
||||
clip.on('complete', function(client, args) {
|
||||
$(clip.htmlBridge).attr('title', 'copied!').tooltip('fixTitle').tooltip('show');
|
||||
$(clip.htmlBridge).attr('title', title).tooltip('fixTitle');
|
||||
@@ -37,5 +39,6 @@ $(function(){
|
||||
});
|
||||
})();
|
||||
|
||||
// syntax highlighting by google-code-prettify
|
||||
prettyPrint();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user