mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 05:55:51 +01:00
The repository url field became readonly and select by clicking.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -67,4 +67,10 @@ div.block {
|
||||
|
||||
h1.wiki-title {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
#repository-url {
|
||||
background-color: white;
|
||||
cursor: default;
|
||||
width: 350px;
|
||||
}
|
||||
5
src/main/webapp/assets/common/js/gitbucket.js
Normal file
5
src/main/webapp/assets/common/js/gitbucket.js
Normal file
@@ -0,0 +1,5 @@
|
||||
$(function(){
|
||||
$('#repository-url').click(function(){
|
||||
this.select(0, this.value.length);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user