Difference between revisions of "Project-GC Userscript/Development/Settings Menu"

From Project-GC
Jump to: navigation, search
(new page)
 
m (added category)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
Settings Menu
+
{{PGC-back-link
 +
|content=Settings Menu
 +
|link={{PGC-US-Name}}/Development
 +
}}
 +
= Description =
 +
'''Settings Menu''' is a feature that displays a list of toggle based settings that allow you to choose which features you want enabled.  These settings are stored within your profile.
 +
<br/>
 +
[[File:settings_menu.png|700px]]
  
 +
= Change Log =
 +
== 2022-09-04; Issue #108.  Fixed in v2.3.19 ==
 +
Updated the code, adding single line of code to prevent the default action of page reload.  Thank you @cghove for the fix!
 +
Around Line 436, added the following line:<br>
 +
<pre>
 +
            // Issue 108; fixed 2022-09-05 (Settings menu now reloading page)
 +
            e.preventDefault();
 +
</pre>resulting in: -->
 +
<pre>
 
         $("#pgcUserMenuButton").click(function(e) {
 
         $("#pgcUserMenuButton").click(function(e) {
 
             $('#pgcUserMenu').show();
 
             $('#pgcUserMenu').show();
Line 6: Line 22:
 
             e.preventDefault();
 
             e.preventDefault();
 
         })
 
         })
 +
</pre>
 +
 +
[[Category: Project-GC Userscript]]

Latest revision as of 18:22, 7 August 2023

Settings Menu [[Project-GC Userscript


/Development|Project-GC Userscript


/Development]]



Description

Settings Menu is a feature that displays a list of toggle based settings that allow you to choose which features you want enabled. These settings are stored within your profile.
Settings menu.png

Change Log

2022-09-04; Issue #108. Fixed in v2.3.19

Updated the code, adding single line of code to prevent the default action of page reload. Thank you @cghove for the fix! Around Line 436, added the following line:

            // Issue 108; fixed 2022-09-05 (Settings menu now reloading page)
            e.preventDefault();

resulting in: -->

        $("#pgcUserMenuButton").click(function(e) {
            $('#pgcUserMenu').show();
            // Issue 108; fixed 2022-09-05 (Settings menu now reloading page)
            e.preventDefault();
        })