[ARVADOS] updated: f5339841222a2ac17d3c04d4e9912c0608041b2f
git at public.curoverse.com
git at public.curoverse.com
Wed May 14 17:11:30 EDT 2014
Summary of changes:
apps/workbench/app/assets/javascripts/event_log.js | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
via f5339841222a2ac17d3c04d4e9912c0608041b2f (commit)
from eb8eaafa2351d8cb8d4ba7408e0052d47fd56a2f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit f5339841222a2ac17d3c04d4e9912c0608041b2f
Author: radhika <radhika at curoverse.com>
Date: Wed May 14 17:10:14 2014 -0400
2756: improve the data displayed in event log display area.
diff --git a/apps/workbench/app/assets/javascripts/event_log.js b/apps/workbench/app/assets/javascripts/event_log.js
index 56e97d7..c65574f 100644
--- a/apps/workbench/app/assets/javascripts/event_log.js
+++ b/apps/workbench/app/assets/javascripts/event_log.js
@@ -35,15 +35,27 @@ function onEventLogDispatcherOpen(event) {
event_log_disp.send('{"method":"subscribe"}');
}
+// Check each of the entries in the listener map. If any are waiting for
+// an event of this event's object, append to their registered element
function onEventLogDispatcherMessage(event) {
event_log_listener_map = JSON.parse(sessionStorage.getItem("event_log_listener_map"));
for (var key in event_log_listener_map) {
value = event_log_listener_map[key];
+ new_properties = "";
eventData = JSON.parse(event.data);
if (value === eventData.object_uuid) {
- $('#'+key).append(eventData.summary + "
");
+ properties = eventData.properties;
+ if (properties !== null) {
+ new_attributes = properties.new_attributes;
+ if (new_attributes !== null) {
+ new_properties = JSON.stringify(properties.new_attributes);
+ }
+ }
+
+ // append to the registered element
+ $('#'+key).append(eventData.summary + " " + new_properties + "
");
}
}
}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list