This repository was archived by the owner on May 21, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,9 @@ var RightClick = RightClick || {};
182
182
var li = $ ( '<li>' ) . append ( a . append ( iconSpan ) . append ( textSpan ) ) ;
183
183
184
184
if ( this . subOptions instanceof exports . Options && this . subOptions . getNbrOfOptions ( ) > 0 ) {
185
- var sub = $ ( '<a>' ) . append ( $ ( '<span>' ) . text ( '▶' ) . css ( 'padding-right' , '10px' ) ) . attr ( 'style' , 'width: auto; padding-right: 0px !important' ) ;
185
+ var sub = $ ( '<a>' ) . append ( $ ( '<span>' ) . text ( '▶' )
186
+ . css ( 'padding-right' , '10px' ) ) . addClass ( 'rightClickArrow' )
187
+ . attr ( 'style' , 'width: auto; padding-right: 0px !important' ) ;
186
188
187
189
new exports . Menu ( sub , this . subOptions ) . setContext ( li ) . setAsSubMenu ( ) . setAlsoOnHover ( ) . setAlsoOnLeftClick ( ) ;
188
190
li . append ( sub ) ;
@@ -329,9 +331,6 @@ var RightClick = RightClick || {};
329
331
if ( optionsDisabled )
330
332
div . css ( 'background-color' , '#AAA' ) ;
331
333
332
- if ( ! menu . isSubMenu )
333
- $ ( 'style.rightClickStyle' ) . text ( '#rightClickMenu:after{transform:translateX(-50%);left:' + arrow + 'px;' + ( optionsDisabled || options . isFirstDisabled ( ) ? 'border-bottom-color:#AAA;' : '' ) + '} .rightSubMenu:after{display:none}' ) ;
334
-
335
334
div . on ( 'mouseleave' , function ( event ) {
336
335
if ( menu . isOpenedOnHover )
337
336
menu . close ( ) ;
You can’t perform that action at this time.
0 commit comments