mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-11 05:36:34 +01:00
26 lines
1.1 KiB
HTML
Executable File
26 lines
1.1 KiB
HTML
Executable File
<div class="git_remote_area">
|
|
<div class="content">
|
|
<label>Remote</label>
|
|
Current remotes: <select id="git_remotes"></select>
|
|
<div class="git_remote_info"></div>
|
|
</div>
|
|
<footer>
|
|
<button onclick="codiad.CodeGit.showDialog('overview', codiad.CodeGit.location); return false;">Close</button>
|
|
<button onclick="codiad.CodeGit.removeRemote(); return false;">Remove</button>
|
|
<button onclick="codiad.CodeGit.showDialog('newRemote', codiad.CodeGit.location); return false;">New</button>
|
|
<button onclick="renameRemote(); return false;">Rename</button>
|
|
<button onclick="codiad.CodeGit.fetch(); return false;">Fetch</button>
|
|
<button onclick="checkoutRemote(); return false;">Checkout</button>
|
|
</footer>
|
|
<script>
|
|
codiad.CodeGit.getRemotes();
|
|
function renameRemote() {
|
|
codiad.CodeGit.name = $('#git_remotes').val();
|
|
codiad.CodeGit.showDialog('renameRemote', codiad.CodeGit.location);
|
|
}
|
|
function checkoutRemote() {
|
|
codiad.CodeGit.showDialog('checkoutRemote', codiad.CodeGit.location);
|
|
}
|
|
</script>
|
|
</div>
|