@add: Displays remote URL for SSH and/or HTTP(s).

This commit is contained in:
Hologos
2016-09-21 15:46:56 +02:00
parent a708d27d6e
commit ecc8e97117
13 changed files with 256 additions and 4 deletions

View File

@@ -25,6 +25,48 @@ $(function () {
$('#md-content').html(converter.makeHtml($('#md-content').text()));
}
var clonePopup = $('#clone-popup')
var cloneButtonShow = $('#clone-button-show');
var cloneButtonHide = $('#clone-button-hide');
var cloneButtonSSH = $('#clone-button-ssh');
var cloneButtonHTTP = $('#clone-button-http');
var cloneInputSSH = $('#clone-input-ssh');
var cloneInputHTTP = $('#clone-input-http');
cloneButtonShow.click(function()
{
clonePopup.fadeIn();
});
cloneButtonHide.click(function()
{
clonePopup.fadeOut();
});
cloneButtonSSH.click(function()
{
if(cloneButtonSSH.hasClass('active'))
return;
cloneButtonSSH.addClass('active');
cloneInputSSH.show();
cloneButtonHTTP.removeClass('active');
cloneInputHTTP.hide();
});
cloneButtonHTTP.click(function()
{
if(cloneButtonHTTP.hasClass('active'))
return;
cloneButtonHTTP.addClass('active');
cloneInputHTTP.show();
cloneButtonSSH.removeClass('active');
cloneInputSSH.hide();
});
function paginate() {
var $pager = $('.pager');