Añade el plugin Redmine Git Server 0.4
This commit is contained in:
parent
525527a55b
commit
4b46a7472e
30 changed files with 485 additions and 0 deletions
15
plugins/redmine_git_server/assets/javascripts/git_server.js
Normal file
15
plugins/redmine_git_server/assets/javascripts/git_server.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
$(() => {
|
||||
$('body.controller-repositories.action-show code.clone-input-group input').click(function() {
|
||||
$(this).select()
|
||||
})
|
||||
$('body.controller-repositories.action-show code.clone-input-group button').click(function() {
|
||||
const $this = $(this)
|
||||
$this.siblings('input').click()
|
||||
document.execCommand("copy")
|
||||
const $flash = $this.parent().siblings('.flash.notice')
|
||||
$flash.show()
|
||||
setTimeout(function() {
|
||||
$flash.hide("fast")
|
||||
}, 1000)
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue