Fix bug in package_create.js

This commit is contained in:
rubenwardy 2018-12-29 18:41:09 +00:00
parent 2975f94d9e
commit ec0e89c21d
2 changed files with 9 additions and 8 deletions

View File

@ -21,7 +21,7 @@ $(function() {
$(".pkg_repo").hide()
function setField(id, value) {
if (value != "") {
if (value && value != "") {
var ele = $(id);
ele.val(value);
ele.trigger("change");

View File

@ -14,13 +14,7 @@
{% if enable_wizard %}
<script src="/static/url.min.js"></script>
<script src="/static/polltask.js"></script>
<script src="/static/package_create.js?v=2"></script>
<noscript>
<div class="alert alert-warning">
<span class="icon_message"></span>
Javascript is needed to automatically import metadata from VCS.
</div>
</noscript>
<script src="/static/package_create.js?v=3"></script>
{% endif %}
<script src="/static/package_edit.js?v=3"></script>
{% endblock %}
@ -34,6 +28,13 @@
Have you read the Package Inclusion Policy and Guidance yet?
</div>
<noscript>
<div class="alert alert-warning">
Javascript is needed to improve the user interface, and is needed for features
such as finding metadata from git, and autocompletion.<br />
Whilst disabled Javascript may work, it is not officially supported.
</div>
</noscript>
{{ package_lists() }}