diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2014-08-17 16:21:31 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2014-09-12 07:35:57 +0200 |
commit | 37a274a56861803f8387822062a2d2c1e6662f33 (patch) | |
tree | 524587886276c07a29cb30b8ff865eec58038e3e /app/views/projects/tags/destroy.js.haml | |
parent | 6c9cb565f16a006df7c980eadcd7061edb7b9281 (diff) | |
download | gitlab-ce-37a274a56861803f8387822062a2d2c1e6662f33.tar.gz |
update tags count if tag gets deleted
Diffstat (limited to 'app/views/projects/tags/destroy.js.haml')
-rw-r--r-- | app/views/projects/tags/destroy.js.haml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/projects/tags/destroy.js.haml b/app/views/projects/tags/destroy.js.haml new file mode 100644 index 00000000000..ada6710f940 --- /dev/null +++ b/app/views/projects/tags/destroy.js.haml @@ -0,0 +1,3 @@ +$('.js-totaltags-count').html("#{@repository.tags.size}") +- if @repository.tags.size == 0 + $('.tags').load(document.URL + ' .nothing-here-block').hide().fadeIn(1000) |