I need to implement a method of activating the bootstrap modal backdrop/a background blur when a button on the top navigation menu is pressed. When the user clicks the aeroplane icon the main content area of the page needs to go dark and then return to normal when the button is clicked off.
Below is an image to show what I am trying to achieve: http://s17.postimg.org/glt8khwlb/stackoverflow.jpg
My code for the aeroplane icon and following area is:
<li id="ts-travel" ng-show="permissions.canViewDemonstrationMode">
<a ng-click="searchTabToggle('travel')">
<i class="ticon ti-airplane_take_off ti-2x"></i>
</a>
</li>
</ul>
<div class="tab-content bord-srch tab-pad overflow-hidden">
<div class="tab-pane active cont fade in" id="products">
<div class="form-group">
<div class="col-sm-12">
</div>
</div>
</div>
<div class="tab-pane cont fade in" id="travel">
<div class="clear"></div>
<div ng-include src="'/views/Travel/Search/travel-search.html'" autoscroll="">
</div>
</div>
</div>
</div>
It would need to activate when:
<a ng-click="searchTabToggle('travel')">
<i class="ticon ti-airplane_take_off ti-2x"></i>
</a>
is pressed.
We are using Angular JS for this system
Many thanks!