diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-11-06 20:08:36 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-11-06 20:08:36 -0500 |
commit | e5c63f4ecc78e144659bf83947a19d996f60b490 (patch) | |
tree | fe7abc757f3692dbede251b793103b98780fd93e /assets/js/components | |
parent | f758ddfc5e7d5d26d9a23b8c75fa6884159ecd72 (diff) |
Load external tasks asynchronously from task view page
Diffstat (limited to 'assets/js/components')
-rw-r--r-- | assets/js/components/external-task-view.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/assets/js/components/external-task-view.js b/assets/js/components/external-task-view.js new file mode 100644 index 00000000..71f119af --- /dev/null +++ b/assets/js/components/external-task-view.js @@ -0,0 +1,19 @@ +Vue.component('external-task-view', { + props: ['url'], + template: '<div id="external-task-view" v-show="content">{{{ content }}}</div>', + data: function () { + return { + content: '' + }; + }, + ready: function () { + var self = this; + $.ajax({ + cache: false, + url: this.url, + success: function(data) { + self.content = data; + } + }); + } +}); |