Plugin Directory

Changeset 172184


Ignore:
Timestamp:
11/11/2009 12:03:25 AM (16 years ago)
Author:
toddiceton
Message:

Pause all if bar click while others are playing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wpaudio-mp3-player/trunk/wpaudio.js

    r171612 r172184  
    113113                var percent = (e.pageX - jQuery(this).offset()['left']) / jQuery(this).width();
    114114                // This order is important -- otherwise it will only play, not change position
    115                 if (!wpa[id].playState || wpa[id].paused) wpa[id].togglePause();
     115                if (!wpa[id].playState || wpa[id].paused) {
     116                    soundManager.pauseAll();
     117                    wpa[id].togglePause();
     118                }
    116119                wpa[id].setPosition(wpa[id].duration * percent);
    117120            }   
Note: See TracChangeset for help on using the changeset viewer.