The repository url field became readonly and select by clicking.

This commit is contained in:
takezoe
2013-05-05 14:24:00 +09:00
parent 60d5a6d473
commit 9b383acddd
5 changed files with 14 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
<link href="@path/assets/common/css/gitbucket.css" rel="stylesheet">
<script src="@path/assets/common/js/jquery-1.9.1.js"></script>
<script src="@path/assets/common/js/validation.js"></script>
<script src="@path/assets/common/js/gitbucket.js"></script>
<script src="@path/assets/bootstrap/js/bootstrap.js"></script>
</head>
<body>

View File

@@ -24,7 +24,7 @@
<li class="pull-right">
<div class="input-prepend">
<span class="add-on">HTTP</span>
<input type="text" value="@repository.url" style="width: 350px;">
<input type="text" value="@repository.url" id="repository-url" readonly>
</div>
</li>
</ul>

View File

@@ -7,7 +7,7 @@
<li class="pull-right">
<div class="input-prepend">
<span class="add-on">HTTP</span>
<input type="text" value="@repository.url.replaceFirst("\\.git$", ".wiki.git")" style="width: 350px;">
<input type="text" value="@repository.url.replaceFirst("\\.git$", ".wiki.git")" readonly id="repository-url">
</div>
</li>
</ul>

View File

@@ -67,4 +67,10 @@ div.block {
h1.wiki-title {
margin-top: 0px;
}
#repository-url {
background-color: white;
cursor: default;
width: 350px;
}

View File

@@ -0,0 +1,5 @@
$(function(){
$('#repository-url').click(function(){
this.select(0, this.value.length);
});
});