aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-08-23 16:27:00 +0100
committerStruan Donald <struan@exo.org.uk>2012-08-23 16:27:00 +0100
commitce3622a64d372eb4ee0c3a27f943061a434e06e4 (patch)
tree7494c586d38e9eb8306adc48966e6bc60c079e34 /web
parentee7770bb0130e2e0483af203c7410dad8269bdd7 (diff)
allow adding of message manager messages as updates rather than as issues
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmybarangay/message_manager_client.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/cobrands/fixmybarangay/message_manager_client.js b/web/cobrands/fixmybarangay/message_manager_client.js
index 940c27ee4..508286171 100644
--- a/web/cobrands/fixmybarangay/message_manager_client.js
+++ b/web/cobrands/fixmybarangay/message_manager_client.js
@@ -280,6 +280,7 @@ var message_manager = (function() {
var assign_fms_id = function(msg_id, fms_id, options) {
var check_li_exists = false;
+ var is_async = true;
if (options) {
if (typeof(options.callback) === 'function') {
callback = options.callback;
@@ -287,6 +288,9 @@ var message_manager = (function() {
if (typeof(options.check_li_exists) !== undefined && options.check_li_exists !== undefined) {
check_li_exists = true; // MM dummy
}
+ if (typeof(options.is_async) !== undefined && options.is_async !== undefined) {
+ is_async = options.is_async;
+ }
}
var $li = $('#' + _msg_prefix + msg_id);
if (check_li_exists) {
@@ -301,6 +305,7 @@ var message_manager = (function() {
}
$li.addClass('msg-is-busy');
$.ajax({
+ async:is_async,
dataType:"json",
type:"post",
data: {fms_id: fms_id},