JS True is bool or string, testing both
authorLoic Baron <loic.baron@lip6.fr>
Tue, 12 Jan 2016 16:16:25 +0000 (17:16 +0100)
committerLoic Baron <loic.baron@lip6.fr>
Tue, 12 Jan 2016 16:16:25 +0000 (17:16 +0100)
manifoldapi/static/js/manifold.js

index d0d314e..305231e 100644 (file)
@@ -1715,7 +1715,7 @@ case TYPE_LIST_OF_VALUES:
                 // 
                 // +) If a reservable node is added to the slice, then it should have a corresponding lease
                 // XXX Not always a resource
                 // 
                 // +) If a reservable node is added to the slice, then it should have a corresponding lease
                 // XXX Not always a resource
-                var is_reservable = (record.exclusive == 'true');
+                var is_reservable = (record.exclusive == 'true' || record.exclusive == true);
                 if (is_reservable) {
                     // var warnings = manifold.query_store.get_record_state(query.query_uuid, record_key, STATE_WARNINGS);
 
                 if (is_reservable) {
                     // var warnings = manifold.query_store.get_record_state(query.query_uuid, record_key, STATE_WARNINGS);