mirror of
https://gitlab.com/CodeSolutionsProject/CodeShare.git
synced 2026-02-14 09:01:33 +01:00
HotFix: Submit code need extlib ver if extlib
This commit is contained in:
@@ -28,10 +28,10 @@
|
||||
<label class="control-label col-sm-6" for="lang">Name of external library, if needed:</label>
|
||||
<label class="control-label col-sm-6" for="lang">It needs a specific version of this library?:</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" name="extlib" placeholder="Name of library"/>
|
||||
<input type="text" name="extlib" id="extlib" placeholder="Name of library"/>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" name="extlibver" placeholder="Version used, only if needed"/>
|
||||
<input type="text" name="extlibver" id="extlibver" placeholder="Version used, only if needed"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -73,4 +73,25 @@
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block js %}
|
||||
<script>
|
||||
function verRequired() {
|
||||
if(extlib.value=="")
|
||||
extlibver.removeAttribute("required");
|
||||
else
|
||||
extlibver.setAttribute("required","required");
|
||||
if(extlib2.value=="")
|
||||
extlibver2.removeAttribute("required");
|
||||
else
|
||||
extlibver2.setAttribute("required","required");
|
||||
}
|
||||
extlib = document.getElementById("extlib");
|
||||
extlibver=document.getElementById("extlibver");
|
||||
extlib2 = document.getElementById("extlib2");
|
||||
extlibver2=document.getElementById("extlibver2");
|
||||
extlib.onkeyup=verRequired;
|
||||
extlib2.onkeyup=verRequired;
|
||||
</script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user