Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions create.html
Original file line number Diff line number Diff line change
Expand Up @@ -685,14 +685,16 @@ <h4 class="modal-body text-danger" :style="{display: !getID() ? 'block' : 'none'
</div>
<script>

var getID = function() {
// returns the name of a project, not including the current revision
return window.location.hash.substring(1, window.location.hash.length).split("/")[0];
}
var getIDWithRevision = function() {
// returns the name of a project, inlcuding the current revision
return window.location.hash.substring(1, window.location.hash.length);
return decodeURI(window.location.hash.substring(1, window.location.hash.length));
}

var getID = function() {
// returns the name of a project, not including the current revision
return getIDWithRevision().split("/")[0];
}

var currentHash = window.location.hash

var app = new Vue({
Expand Down