Do not hide reset button

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-06-29 11:04:14 +02:00 committed by Roeland Jago Douma
parent b47085c8fe
commit 94dcddc45e
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 1 additions and 3 deletions

View File

@ -117,13 +117,11 @@
$('#systemtags').attr('data-systemtag-id', tagId); $('#systemtags').attr('data-systemtag-id', tagId);
$('#systemtag_delete').removeClass('hidden'); $('#systemtag_delete').removeClass('hidden');
$('#systemtag_submit span').text(t('systemtags_manager', 'Update')); $('#systemtag_submit span').text(t('systemtags_manager', 'Update'));
$('#systemtag_reset').removeClass('hidden');
$('#systemtag_create').addClass('hidden'); $('#systemtag_create').addClass('hidden');
} else { } else {
$('#systemtag').select2('val', ''); $('#systemtag').select2('val', '');
$('#systemtags').attr('data-systemtag-id', ''); $('#systemtags').attr('data-systemtag-id', '');
$('#systemtag_delete').addClass('hidden'); $('#systemtag_delete').addClass('hidden');
$('#systemtag_reset').addClass('hidden');
$('#systemtag_submit span').text(t('systemtags_manager', 'Create')); $('#systemtag_submit span').text(t('systemtags_manager', 'Create'));
$('#systemtag_create').removeClass('hidden'); $('#systemtag_create').removeClass('hidden');
} }

View File

@ -50,7 +50,7 @@ style('systemtags', 'settings');
</select> </select>
<a id="systemtag_delete" class="hidden icon-delete"><span class="hidden-visually"><?php p($l->t('Delete')); ?></span></a> <a id="systemtag_delete" class="hidden icon-delete"><span class="hidden-visually"><?php p($l->t('Delete')); ?></span></a>
<a id="systemtag_reset" class="hidden icon-close"><span class="hidden-visually"><?php p($l->t('Reset')); ?></span></a> <a id="systemtag_reset" class="icon-close"><span class="hidden-visually"><?php p($l->t('Reset')); ?></span></a>
<a id="systemtag_submit" class="icon-confirm"><span class="hidden-visually"><?php p($l->t('Create')); ?></span></a> <a id="systemtag_submit" class="icon-confirm"><span class="hidden-visually"><?php p($l->t('Create')); ?></span></a>
</div> </div>