mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-11-06 03:06:09 +08:00
getUrl()
This commit is contained in:
@@ -201,6 +201,10 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.getUrl = function() {
|
||||||
|
return $location.absUrl().replace(/#.*$/, '');
|
||||||
|
};
|
||||||
|
|
||||||
$scope.setDataFromHash = function() {
|
$scope.setDataFromHash = function() {
|
||||||
var hashData = $location.search();
|
var hashData = $location.search();
|
||||||
|
|
||||||
|
|||||||
@@ -718,7 +718,7 @@
|
|||||||
<input type="text"
|
<input type="text"
|
||||||
class="form-control form-control-sm"
|
class="form-control form-control-sm"
|
||||||
readonly
|
readonly
|
||||||
ng-value="location.absUrl()">
|
ng-value="getUrl()">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row mt-4">
|
<div class="form-group row mt-4">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Generated by nginxconfig.io<!--
|
# Generated by nginxconfig.io<!--
|
||||||
|
|
||||||
✔ isDirty --><span ng-if="isDirty">
|
✔ isDirty --><span ng-if="isDirty">
|
||||||
# {{ location.absUrl() }}</span>
|
# {{ getUrl() }}</span>
|
||||||
|
|
||||||
user {{ data.user }};
|
user {{ data.user }};
|
||||||
pid {{ data.pid}};
|
pid {{ data.pid}};
|
||||||
|
|||||||
Reference in New Issue
Block a user