File tree Expand file tree Collapse file tree
assets/javascripts/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -544,6 +544,16 @@ QueryBuilder = {
544544 max_id = parseInt ( $ ( this ) . attr ( "identifier" ) ) ;
545545 } ) ;
546546 return ( max_id + 1 ) . toString ( ) ;
547+ } ,
548+ select_object_filter_type : function ( filter_type ) {
549+ $ ( "#hdn_object_selector_filter_type" ) . attr ( "value" , filter_type ) ;
550+ var other_filter_type = "not_equals" ;
551+ if ( filter_type == "not_equals" )
552+ other_filter_type = "equals" ;
553+ if ( $ ( "#btn_object_selector_filter_type_" + filter_type ) . hasClass ( "btn-success" ) == false ) {
554+ $ ( "#btn_object_selector_filter_type_" + filter_type ) . addClass ( "btn-success" ) ;
555+ $ ( "#btn_object_selector_filter_type_" + other_filter_type ) . removeClass ( "btn-success" ) ;
556+ }
547557 }
548558 }
549559 } ,
Original file line number Diff line number Diff line change 11 <% if mode == "object"%>
22 <div class ="row " id ="object_selector_header ">
3- < div class ="col-md-7 ">
3+ < div class ="col-md-6 ">
44 < p > Search objects for </ p >
5+ < p >
6+ < div class ="btn-group ">
7+ < button type ="button " class ="btn btn-success " onclick ="QueryBuilder.properties.filter.select_object_filter_type('equals') " id ="btn_object_selector_filter_type_equals "> Equals to</ button >
8+ < button type ="button " class ="btn " onclick ="QueryBuilder.properties.filter.select_object_filter_type('not_equals') " id ="btn_object_selector_filter_type_not_equals "> NOT Equals to</ button >
9+ </ div >
10+ < input id ="hdn_object_selector_filter_type " type ="hidden " value ="equals " />
11+ </ p >
512 </ div >
6- < div class ="col-md-5 ">
7- < div class ="btn-group pull-right ">
8- < button type ="button " class ="btn btn-success " onclick ="QueryBuilder.objects.done_click() "> Done</ button >
9- < button type ="button " class ="btn btn-danger " data-dismiss ="modal "> Cancel</ button >
13+ < div class ="col-md-6 ">
14+ < div class ="row ">
15+ < div class ="col-md-12 ">
16+ < div class ="btn-group pull-right ">
17+ < button type ="button " class ="btn btn-success " onclick ="QueryBuilder.objects.done_click() "> Done</ button >
18+ < button type ="button " class ="btn btn-danger " data-dismiss ="modal "> Cancel</ button >
19+ </ div >
20+ </ div >
1021 </ div >
22+
1123 </ div >
1224 </ div >
1325 < div class ="row " >
You can’t perform that action at this time.
0 commit comments