Plugins page update buttons fixed

Word wrap also inserted to display info.
This commit is contained in:
vivalldi
2015-08-26 20:16:50 -04:00
parent b54d5b5fa5
commit ece6496bde
4 changed files with 30 additions and 2 deletions

View File

@@ -342,7 +342,7 @@ $(function () {
plugin = $('[data-gpm-plugin="' + key + '"] .gpm-name');
url = plugin.find('a');
if (!plugin.find('.badge.update').length) {
plugin.append('<a href="' + url.attr('href') + '"><span class="badge update">' + translations.PLUGIN_ADMIN.UPDATE_AVAILABLE + '!</span></a>');
plugin.append('<a class="plugin-update-button" href="' + url.attr('href') + '"><span class="badge update">' + translations.PLUGIN_ADMIN.UPDATE_AVAILABLE + '!</span></a>');
}
});