File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 247247
248248 BoxModal . prototype . _bindEvents = function ( ) {
249249 var _self = this ;
250+ _self . _pboxElement . bind ( "click.pbox" , function ( e ) {
251+ e . stopPropagation ( ) ;
252+ } ) ;
250253 $document . bind ( "click.pbox" + this . _id , function ( e ) {
251254 var _eTarget = angular . element ( e . target ) ;
252255 if ( util . hasClass ( _eTarget , 'pbox' ) ) {
278281 $body . append ( this . _pboxElement ) ;
279282 $timeout ( function ( ) {
280283 $wtPosition . calculatePos ( _self . _options , $target , _self . _pboxElement ) ;
284+ _self . _bindEvents ( ) ;
281285 } ) ;
282- this . _bindEvents ( ) ;
283286 } ;
284287
285288 BoxModal . prototype . close = function ( result ) {
328331 templateAndResolvePromise . then ( function resolveSuccess ( tplAndVars ) {
329332
330333 var boxScope = ( options . scope || $rootScope ) . $new ( ) ;
331- boxScope . $close = pboxInstance . close ;
332- boxScope . $dismiss = pboxInstance . dismiss ;
334+ boxScope . $close = function ( result ) {
335+ pboxInstance . close ( result ) ;
336+ } ;
337+ boxScope . $dismiss = function ( ) {
338+ pboxInstance . dismiss ( ) ;
339+ } ;
333340
334341 var ctrlInstance , ctrlLocals = { } ;
335342 var resolveIter = 1 ;
You can’t perform that action at this time.
0 commit comments