File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,18 @@ <h3>Profile Trigger Value</h3>
60
60
< input type ="text " id ="profiletrigger " value ="">
61
61
< button class ="save-button "> Save</ button >
62
62
</ p >
63
+
64
+ < h3 > Disable Popup</ h3 >
65
+ < p class ="note ">
66
+ If checked, xdebug session will be enabled / disabled by left click on the
67
+ xdebug helper icon, xdebug helper's popup will be disabled.
68
+ </ p >
69
+ < p >
70
+ < input type ="checkbox " id ="disable-popup " value ="1 ">
71
+ < span > Disable Popup</ span >
72
+ < button class ="save-button "> Save</ button >
73
+ </ p >
74
+
63
75
< footer id ="footer ">
64
76
< a href ="https://github.com/mac-cain13/xdebug-helper-for-chrome " class ="contribute " target ="_blank ">
65
77
Feel free to submit ideas, bugs and pull request to our < span > Github project</ span >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ function save_options()
3
3
localStorage [ "xdebugIdeKey" ] = document . getElementById ( "idekey" ) . value ;
4
4
localStorage [ "xdebugTraceTrigger" ] = document . getElementById ( "tracetrigger" ) . value ;
5
5
localStorage [ "xdebugProfileTrigger" ] = document . getElementById ( "profiletrigger" ) . value ;
6
+ localStorage . xdebugDisablePopup = document . getElementById ( 'disable-popup' ) . checked ? '1' : '0' ;
6
7
}
7
8
8
9
function restore_options ( )
@@ -42,6 +43,9 @@ function restore_options()
42
43
} else {
43
44
$ ( "#profiletrigger" ) . val ( null ) ;
44
45
}
46
+
47
+ // Restore Disable Popup
48
+ document . getElementById ( 'disable-popup' ) . checked = ( localStorage . xdebugDisablePopup === '1' ) ? true : false ;
45
49
}
46
50
47
51
$ ( function ( )
@@ -63,6 +67,9 @@ $(function()
63
67
64
68
$ ( "#idekey" ) . change ( save_options ) ;
65
69
70
+ // Save Disable Popup on change event
71
+ $ ( '#disable-popup' ) . change ( save_options ) ;
72
+
66
73
$ ( '.save-button' ) . click ( save_options ) ;
67
74
68
75
restore_options ( ) ;
You can’t perform that action at this time.
0 commit comments