{
var query_ext = this.find_analyzed_query_ext(query_uuid);
query_ext.filters = $.grep(query_ext.filters, function(x) {
- return x == filter;
+ return x != filter;
});
this.apply_filters(query_uuid);
// FILTERS
case FILTER_ADDED:
+ console.log("FILTER ADDED", data);
/* Update internal record state */
manifold.query_store.add_filter(query_uuid, data);
break;
case FILTER_REMOVED:
+ console.log("FILTER REMOVED", data);
/* Update internal record state */
manifold.query_store.remove_filter(query_uuid, data);
// ... and communicate the appropriate filters to the manager
// NOTE: we use the manifold namespace for internal filters
- if (self.prev_filter_status)
- manifold.raise_event(self.options.query_uuid, FILTER_REMOVED, self.prev_filter_status);
-
+ if (self.prev_filter_status) {
+ var filter = ['manifold:status', '==', self.prev_filter_status];
+ manifold.raise_event(self.options.query_uuid, FILTER_REMOVED, filter);
+ }
// XXX The datatables will be refreshed twice !
if (filter_status != 'all') {
// No filter for 'all'
<div id={{ domid }}>
- <span class="list-group-item-heading sl-resources">View:</span>
+ <span class="list-group-item-heading sl-resources" style='font-size:inherit;'>View:</span>
<a href="#"
class="list-group-item sl-resources active"
</a>
<a href="#" class="list-group-item sl-resources"
- style='display: inline-block !important; font-size: inherit;'
+ style='display: inline-block !important; font-size: inherit; width:130px;'
id="{{ domid }}__unconfigured"
data-status="unconfigured"
title="View resources that you have selected to add to your slice, that require configuration before they can be reserved. Hover you mouse over the symbol next to the checkbox for more details."
id="testbeds-filter_{[{ testbed.network_hrn }]}"
data-platform="{[{ testbed.network_hrn }]}">
<span class="list-group-item-heading">{[{ testbed.platform }]}</span>
- <!--<p class="list-group-item-heading">{[{ testbed.network_hrn }]}</p></a> -->
+ <!--<p class="list-group-item-heading">{[{ testbed.network_hrn }]}</p>-->
+ </a>
</div>
</div>
slice_name =''
purpose=''
exp_url=''
+ authority_hrn = None
# Retrieve the list of authorities
authorities_query = Query.get('authority').select('name', 'authority_hrn')
authorities = execute_admin_query(wsgi_request, authorities_query)
authority_hrn = authority['authority_hrn']
# Handle the case when the template uses only hrn and not name
- if not authority_hrn:
+ if authority_hrn is None:
authority_hrn = wsgi_request.POST.get('org_name', '')
slice_request = {
padding:2px 4px;
-moz-border-radius: 4px;
border-radius: 4px;
+ width:125px;
+ text-align: center;
}
a.sl-resources.active, a.sl-resources.active:hover, a.sl-resources.active:focus {
border:0;
color:white;
padding-top:60px;
text-shadow: 1px 1px #013540;
-}
\ No newline at end of file
+}
</div>
<div class="row">
- <div class="col-md-4">
+ <div class="col-md-6">
{{ filter_status }}
</div>
<div class="col-md-2">