jquery - Ionic: how to open popover triggered from two place on the same place? -


i have 2 buttons triggering same popover. problem if click on second button (big blue plus icon on image below) displayed popover in place big icon popover should displayed in right corner (as on second image).

how can please?

code triggering following:

button 1 (smal) : working correctly

<button ng-disabled="downloadinprogress" id="availablesoundsbtn" ng-click="openpopover($event,'popover_available_sounds.html')"  class="button button-icon icon ion-plus-circled"></button> 

enter image description here

button 2 (big) : not working correctly

<div class="wrapperbigicon" ng-if="selectedsounds.length == 0 && arefilesdownloaded == true">         <h2>{{ 'click_to_add_track' | translate }}</h2>         <i ng-click="openpopover($event,'popover_available_sounds.html')" class="icon ion-plus-circled addcustomicon"></i>     </div> 

enter image description here

many advice.

if put name of small button instead of $event open en same place when press small button.

like this:

click="openpopover(availablesoundsbtn,'popover_available_sounds.html')"  

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -