summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-11-25 19:52:04 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-11-25 19:52:22 +0100
commit79736eb1cf6abacb2b79c8b8f8ca52d1cfcc6715 (patch)
tree46831c06aa2e7577e091e4d5109371a56718a844 /js
parent052178a79f9099d1ce3c36e56334cdc15911ef09 (diff)
fix tests
Diffstat (limited to 'js')
-rw-r--r--js/admin/Admin.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/js/admin/Admin.js b/js/admin/Admin.js
index 823d6b0ab..93b5f0268 100644
--- a/js/admin/Admin.js
+++ b/js/admin/Admin.js
@@ -87,7 +87,18 @@
$('#news input[type="text"]').blur(submit);
$('#news input[type="checkbox"]').change(submit);
+ $('#news-migrate').click(function () {
+ var button = $(this);
+ button.addClass('loading');
+
+ $.post(OC.generateUrl('/apps/news/admin/migrate'))
+ .always(function (data) {
+ button.removeClass('loading');
+ });
+
+ return false;
+ });
});
-}(window, document, jQuery)); \ No newline at end of file
+}(window, document, jQuery));