Commit ea347743 authored by Franco Fichtner's avatar Franco Fichtner

firmware: only open update tab on updates

parent 6c13c4cd
...@@ -34,7 +34,6 @@ POSSIBILITY OF SUCH DAMAGE. ...@@ -34,7 +34,6 @@ POSSIBILITY OF SUCH DAMAGE.
function updateStatus() { function updateStatus() {
// update UI // update UI
$('#updatelist').empty(); $('#updatelist').empty();
$('#updatetab > a').tab('show');
$("#checkupdate_progress").addClass("fa fa-spinner fa-pulse"); $("#checkupdate_progress").addClass("fa fa-spinner fa-pulse");
$('#updatestatus').html("{{ lang._('Checking... (may take up to 30 seconds)') }}"); $('#updatestatus').html("{{ lang._('Checking... (may take up to 30 seconds)') }}");
...@@ -55,6 +54,7 @@ POSSIBILITY OF SUCH DAMAGE. ...@@ -55,6 +54,7 @@ POSSIBILITY OF SUCH DAMAGE.
$("#upgrade").attr("style",""); $("#upgrade").attr("style","");
// show upgrade list // show upgrade list
$('#updatetab > a').tab('show');
$("#updatelist").html("<tr><th>{{ lang._('Package Name') }}</th>" + $("#updatelist").html("<tr><th>{{ lang._('Package Name') }}</th>" +
"<th>{{ lang._('Current Version') }}</th><th>{{ lang._('New Version') }}</th></tr>"); "<th>{{ lang._('Current Version') }}</th><th>{{ lang._('New Version') }}</th></tr>");
$.each(['new_packages', 'upgrade_packages', 'reinstall_packages'], function(type_idx,type_name){ $.each(['new_packages', 'upgrade_packages', 'reinstall_packages'], function(type_idx,type_name){
...@@ -526,7 +526,7 @@ POSSIBILITY OF SUCH DAMAGE. ...@@ -526,7 +526,7 @@ POSSIBILITY OF SUCH DAMAGE.
<tr> <tr>
<td></td> <td></td>
<td> <td>
<button class="btn btn-primary" id="change_mirror" type="button"><b>{{ lang._('Save') }}</b><i id="change_mirror_progress" class=""></i></button> <button class="btn btn-primary" id="change_mirror" type="button"><i id="change_mirror_progress" class=""></i> {{ lang._('Save') }}</button>
</td> </td>
<td></td> <td></td>
</tr> </tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment