Skip to content
Snippets Groups Projects
Commit 485be909 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

improvements for uninstall button

parent 2327d41b
Branches
No related tags found
No related merge requests found
......@@ -84,12 +84,12 @@ OC.Settings.Apps = OC.Settings.Apps || {
page.find('input.update').hide();
}
if (app.removable !== false) {
page.find('input.uninstall').show();
page.find('input.uninstall').data('appid', app.id);
page.find('input.uninstall').attr('value', t('settings', 'Uninstall App'));
if (app.removable !== false && app.active === false) {
page.find('a.uninstall').show();
page.find('a.uninstall').data('appid', app.id);
page.find('a.uninstall').attr('value', t('settings', 'Uninstall App'));
} else {
page.find('input.uninstall').hide();
page.find('a.uninstall').hide();
}
page.find('input.enable').show();
......@@ -371,7 +371,7 @@ $(document).ready(function(){
OC.Settings.Apps.updateApp(appid, element);
}
});
$('#app-content input.uninstall').click(function(){
$('#app-content a.uninstall').click(function(){
var element = $(this);
var appid=$(this).data('appid');
if(appid) {
......
......@@ -53,7 +53,7 @@
print_unescaped($l->t('<span class="licence"></span>-licensed by <span class="author"></span>'));?></p>
<input class="enable hidden" type="submit" />
<input class="update hidden" type="submit" value="<?php p($l->t('Update')); ?>" />
<input class="uninstall hidden" type="submit" value="<?php p($l->t('Uninstall')); ?>"/>
<a class="uninstall hidden" href="#"><?php p($l->t('Uninstall')); ?></a>
<br />
<input class="hidden" type="checkbox" id="groups_enable"/>
<label class="hidden" for="groups_enable"><?php p($l->t('Enable only for specific groups')); ?></label>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment