mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
Reload location after rmupdate install
This commit is contained in:
parent
9afad129d4
commit
9f9773f274
@ -453,6 +453,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
reset_buttons();
|
reset_buttons();
|
||||||
display_message('success', data, 5000);
|
display_message('success', data, 5000);
|
||||||
if (addon_id) {
|
if (addon_id) {
|
||||||
|
if (addon_id == 'rmupdate') {
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
|
else {
|
||||||
$('#tr-' + addon_id).removeClass('warning');
|
$('#tr-' + addon_id).removeClass('warning');
|
||||||
$('#tr-' + addon_id).addClass('positive');
|
$('#tr-' + addon_id).addClass('positive');
|
||||||
$('#button-update-' + addon_id).removeClass('green');
|
$('#button-update-' + addon_id).removeClass('green');
|
||||||
@ -460,6 +464,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
$('#button-update-' + addon_id).contents().last()[0].textContent = i18next.t('reinstall');
|
$('#button-update-' + addon_id).contents().last()[0].textContent = i18next.t('reinstall');
|
||||||
$('#label-version-' + addon_id).text($('#label-available-version-' + addon_id).text());
|
$('#label-version-' + addon_id).text($('#label-available-version-' + addon_id).text());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
$('#install-addon-url-input').val('');
|
$('#install-addon-url-input').val('');
|
||||||
$('#install-addon-file-input').val('');
|
$('#install-addon-file-input').val('');
|
||||||
|
Loading…
Reference in New Issue
Block a user