mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-10 15:07:35 +01:00
Fix bug in package_create.js
This commit is contained in:
parent
2975f94d9e
commit
ec0e89c21d
@ -21,7 +21,7 @@ $(function() {
|
|||||||
$(".pkg_repo").hide()
|
$(".pkg_repo").hide()
|
||||||
|
|
||||||
function setField(id, value) {
|
function setField(id, value) {
|
||||||
if (value != "") {
|
if (value && value != "") {
|
||||||
var ele = $(id);
|
var ele = $(id);
|
||||||
ele.val(value);
|
ele.val(value);
|
||||||
ele.trigger("change");
|
ele.trigger("change");
|
||||||
|
@ -14,13 +14,7 @@
|
|||||||
{% if enable_wizard %}
|
{% if enable_wizard %}
|
||||||
<script src="/static/url.min.js"></script>
|
<script src="/static/url.min.js"></script>
|
||||||
<script src="/static/polltask.js"></script>
|
<script src="/static/polltask.js"></script>
|
||||||
<script src="/static/package_create.js?v=2"></script>
|
<script src="/static/package_create.js?v=3"></script>
|
||||||
<noscript>
|
|
||||||
<div class="alert alert-warning">
|
|
||||||
<span class="icon_message"></span>
|
|
||||||
Javascript is needed to automatically import metadata from VCS.
|
|
||||||
</div>
|
|
||||||
</noscript>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<script src="/static/package_edit.js?v=3"></script>
|
<script src="/static/package_edit.js?v=3"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -34,6 +28,13 @@
|
|||||||
Have you read the Package Inclusion Policy and Guidance yet?
|
Have you read the Package Inclusion Policy and Guidance yet?
|
||||||
</div>
|
</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() }}
|
{{ package_lists() }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user