Fixed typeahead with reverse proxy
fixed marking of tags in advanced search seperated js and html
This commit is contained in:
@@ -115,40 +115,3 @@
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
{% block js %}
|
||||
<script type="text/javascript">
|
||||
$("#restart").click(function() {
|
||||
$.ajax({
|
||||
dataType: 'json',
|
||||
url: "{{url_for('shutdown')}}",
|
||||
data: {"parameter":0},
|
||||
//data: data,
|
||||
success: function(data) {
|
||||
return alert(data.text);}
|
||||
});
|
||||
});
|
||||
$("#shutdown").click(function() {
|
||||
$.ajax({
|
||||
dataType: 'json',
|
||||
url: "{{url_for('shutdown')}}",
|
||||
data: {"parameter":1},
|
||||
success: function(data) {
|
||||
return alert(data.text);}
|
||||
});
|
||||
});
|
||||
$("#check_for_update").click(function() {
|
||||
$("#check_for_update").html('Checking...');
|
||||
$.ajax({
|
||||
dataType: 'json',
|
||||
url: "{{url_for('get_update_status')}}",
|
||||
success: function(data) {
|
||||
if (data.status == true) {
|
||||
$("#check_for_update").addClass('hidden');
|
||||
$("#perform_update").removeClass('hidden');
|
||||
}else{
|
||||
$("#check_for_update").html('{{_('Check for update')}}');
|
||||
};}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user