File tree Expand file tree Collapse file tree
app/assets/javascripts/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -287,11 +287,14 @@ QueryBuilder = {
287287 //removes the filter
288288 remove : function ( identifier ) {
289289 var list_item = $ ( "#qb_properties_properties_selected_filters_list_item_" + identifier ) ;
290- list_item . remove ( ) ;
291- if ( $ ( "#qb_properties_properties_selected_filters_list" ) . find ( ".list-item" ) . length <= 0 ) {
292- $ ( "#qb_properties_properties_selected_filters_header" ) . hide ( "fast" ) ;
293- $ ( "#qb_properties_properties_selected_filters_list" ) . hide ( "fast" ) ;
294- }
290+ list_item . hide ( "fast" ) ;
291+ setTimeout ( function ( ) {
292+ list_item . remove ( ) ;
293+ if ( $ ( "#qb_properties_properties_selected_filters_list" ) . find ( ".list-item" ) . length <= 0 ) {
294+ $ ( "#qb_properties_properties_selected_filters_header" ) . hide ( "fast" ) ;
295+ $ ( "#qb_properties_properties_selected_filters_list" ) . hide ( "fast" ) ;
296+ }
297+ } , 500 ) ;
295298 } ,
296299 get_new_list_identifier : function ( ) {
297300 var max_id = 0 ;
@@ -383,7 +386,7 @@ QueryBuilder = {
383386 $ ( "#p_selected_objects" ) . append ( "<span object-name=\"" + object_name + "\" uri='" + object_uri + "' class='label label-warning selected-objects' >" + object_name + " <span class=\"glyphicon glyphicon-remove clickable\" onclick=\"QueryBuilder.objects.delete_selected('" + object_uri + "')\"></span></span></span> " )
384387 }
385388 QueryBuilder . objects . hide_object_tile ( object_uri ) ;
386- Utils . flash . notice ( "Successfully added object " + object_name ) ;
389+ // Utils.flash.notice("Successfully added object "+object_name);
387390
388391 } ,
389392 hide_object_tile : function ( object_uri ) {
You can’t perform that action at this time.
0 commit comments