1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 11:37:40 +00:00

Change button label, cleanup

This commit is contained in:
Jan Schneider
2018-01-21 01:53:55 +01:00
parent 4900975f18
commit 1b3f665ee8
2 changed files with 2 additions and 30 deletions

View File

@@ -268,7 +268,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
var bupdate = $('<div class="ui '+ color +' basic '+ disabled +' button" id="button-update-' + addon.id + '">')
.attr('data-update-addon-id', addon.id)
.attr('data-update-addon-available-version', addon.available_version)
.append($('<i class="sign in icon">'), 'update');
.append($('<i class="sign in icon">'), (addon.version == addon.available_version) ? "reinstall" : "update");
bupdate.click(function() {
install_addon(this.getAttribute('data-update-addon-id'));
});