diff options
Diffstat (limited to 'module/web/static/js/models/InteractionTask.js')
-rw-r--r-- | module/web/static/js/models/InteractionTask.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/module/web/static/js/models/InteractionTask.js b/module/web/static/js/models/InteractionTask.js new file mode 100644 index 000000000..4ba88a539 --- /dev/null +++ b/module/web/static/js/models/InteractionTask.js @@ -0,0 +1,27 @@ +define(['jquery', 'backbone', 'underscore', 'utils/apitypes'], + function($, Backbone, _, Api) { + + return Backbone.Model.extend({ + + idAttribute: 'iid', + + defaults: { + iid: -1, + type: null, + input: null, + default_value: null, + title: "", + description: "", + plugin: "" + }, + + // Model Constructor + initialize: function() { + + }, + + isNotification: function() { + return this.get('type') === Api.Interaction.Notification; + } + }); + });
\ No newline at end of file |