From: Loic Baron Date: Tue, 12 Jan 2016 16:16:25 +0000 (+0100) Subject: JS True is bool or string, testing both X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=73d9384890d0d32b3957012708f502424469d1f0 JS True is bool or string, testing both --- diff --git a/manifoldapi/static/js/manifold.js b/manifoldapi/static/js/manifold.js index d0d314ea..305231e0 100644 --- a/manifoldapi/static/js/manifold.js +++ b/manifoldapi/static/js/manifold.js @@ -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 - 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);