Fixed wrongly displayed update bar from plugins/themes details page

This commit is contained in:
Djamil Legato
2016-04-27 10:16:06 -07:00
parent 23023d6178
commit 4ee0f5b071
2 changed files with 9 additions and 6 deletions

View File

@@ -126,7 +126,10 @@ export default class Updates {
<strong>v${resources[item].available}</strong> ${releaseType} ${translations.PLUGIN_ADMIN.OF_THIS} ${singles[index]} ${translations.PLUGIN_ADMIN.IS_NOW_AVAILABLE}! <strong>v${resources[item].available}</strong> ${releaseType} ${translations.PLUGIN_ADMIN.OF_THIS} ${singles[index]} ${translations.PLUGIN_ADMIN.IS_NOW_AVAILABLE}!
<a href="#" class="button button-small secondary" data-remodal-target="update-packages" data-packages-slugs="${item}" data-${singles[index]}-action="start-package-installation">${translations.PLUGIN_ADMIN.UPDATE} ${singles[index].charAt(0).toUpperCase() + singles[index].substr(1).toLowerCase()}</a> <a href="#" class="button button-small secondary" data-remodal-target="update-packages" data-packages-slugs="${item}" data-${singles[index]}-action="start-package-installation">${translations.PLUGIN_ADMIN.UPDATE} ${singles[index].charAt(0).toUpperCase() + singles[index].substr(1).toLowerCase()}</a>
</p> </p>
`).css('display', 'block'); `);
// display update bar for themes/plugins details
$(`[data-gpm-${singles[index]}="${item}"]`).css('display', 'block');
} }
}); });
}); });

File diff suppressed because one or more lines are too long