File tree Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Original file line number Diff line number Diff line change 687687
688688 $ ( this . $element ) . on ( "mouseup" , "tbody.data tr td:not(:has(input))" , $ . proxy ( function ( e )
689689 {
690- var url = $ . trim ( $ ( e . target ) . parents ( "tr" ) . data ( "griddly-url" ) ) ;
691- var target = $ . trim ( $ ( e . target ) . parents ( "tr" ) . data ( "griddly-urltarget" ) ) ;
692-
693- if ( url && $ ( e . target ) . closest ( "a" ) . length == 0 && $ ( e . target ) . closest ( "td" ) . find ( "[data-toggle=dropdown]" ) . length == 0 )
690+ if ( e . which < 3 )
694691 {
695- if ( this . options . rowClickModal )
692+ var url = $ . trim ( $ ( e . target ) . parents ( "tr" ) . data ( "griddly-url" ) ) ;
693+ var target = $ . trim ( $ ( e . target ) . parents ( "tr" ) . data ( "griddly-urltarget" ) ) ;
694+
695+ if ( url && $ ( e . target ) . closest ( "a" ) . length == 0 && $ ( e . target ) . closest ( "td" ) . find ( "[data-toggle=dropdown]" ) . length == 0 )
696696 {
697- $ ( this . options . rowClickModal ) . removeData ( "bs.modal" ) . modal ( { show : false } ) ;
698- $ ( ".modal-content" , this . options . rowClickModal ) . load ( $ . trim ( url ) , $ . proxy ( function ( event )
697+ if ( this . options . rowClickModal )
699698 {
700- $ ( this . options . rowClickModal ) . modal ( "show" ) ;
701- } , this ) ) ;
702- }
703- else
704- {
705- if ( e . which == 2 || e . ctrlKey || target == "_blank" )
706- window . open ( url ) ;
707- else if ( e . which != 3 )
708- window . location = url ;
709- }
699+ $ ( this . options . rowClickModal ) . removeData ( "bs.modal" ) . modal ( { show : false } ) ;
700+ $ ( ".modal-content" , this . options . rowClickModal ) . load ( $ . trim ( url ) , $ . proxy ( function ( event )
701+ {
702+ $ ( this . options . rowClickModal ) . modal ( "show" ) ;
703+ } , this ) ) ;
704+ }
705+ else
706+ {
707+ if ( e . which == 2 || e . ctrlKey || target == "_blank" )
708+ window . open ( url ) ;
709+ else
710+ window . location = url ;
711+ }
710712
711- e . preventDefault ( ) ;
713+ e . preventDefault ( ) ;
714+ }
712715 }
713716 } , this ) ) ;
714717
You can’t perform that action at this time.
0 commit comments