summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/javascript
Commit message (Collapse)AuthorAgeFilesLines
* Move main pfSense content to src/Renato Botelho2015-08-254-591/+0
|
* Only process Traffic Graph object if it is openPhil Davis2015-06-261-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Traffic Graphs widget puts a graph object for every interface into the HTML of the widget. Underneath the graph object for every interface makes the call to graph.php to get data for the graph, and the refresh interval also keeps happening, which keeps gathering the data every refresh interval for every interface. This wastes a lot of CPU back on the pfSense box gathering data repeatedly if the system has a lot of interfaces and only has the Traffic Graph enabled for 1 or a few of them. e.g. on my poor little Alix at home I had setup 6 VLANs to test some stuff, so I had WAN, LAN, OPT1 and 6 tagged VLANS - 9 interfaces. When I enable the Traffic Graphs widget on the dashboard, the Alix CPU is driven 100% trying to keep up with gathering data for 9 interfaces every 10 seconds, even though I only have 1 graph actually opened! I couldn't see a way to enable/disable the graph.php object from executing. So this change puts the object in and out of the HTML: a) At first display the graph.php object HTML is only put in the relevant "div" if the graph is actually set to be shown in the config. b) When a graph is opened by the user, the Java Script puts the necessary graph.php object HTML into the div. The graph data then starts being requested... c) When a graph is minimised by the user, the Java Script removes the graph.php object HTML from the div. The actions of graph.php stop happening. I can see the difference by just watching "top" from the command line on a low-power system and open/minimizing the graphs on the dashboard. If there is a better way to enable/disable an object like this I am happy to learn about it.
* Standardize widget iform and submit namesPhil Davis2015-06-231-2/+2
| | | | | | | | | | | | | | | | | | | | The log and picture widgets were both using "iforma" and "submita". Actually it did not break anything because it was only the form name repeated, not id. And nothing was using these names. Traffic Graphs widget was using just "iform". That is a bit dangerous for the future. I got tricked when cut-pasting some code to make some settings options for the Gateways widget. I kept "iform" and then wondered for a while why my Traffic Graphs widget show-hide settings would not save. There was traffic graph JS that referred to just "iform" and that started modifying the "iform" in my new Gateways widget code. Rather than having names "iforma", "iformb"... "submita", "submitb"... it seems much less risk of accidental duplication if these are named like: name_of_widget_iform name_of_widget_submit I don't think there is any user-visible bug in 2.2.* - so this standardization could just go into 2.3
* Code style for small things in usr-local-wwwPhil Davis2015-04-143-88/+89
|
* Few minor text typosPhil Davis2015-04-041-1/+1
| | | | | | Note that advertise is spelt with an "s" in other places in the GUI, so making it consistent in services_ntpd - but maybe Americans do spell it "advertize" these days?
* javascript normalization ayvis2014-03-261-2/+2
|
* Detect Zones and Cores for thermal sensors using regex, it fixes #3337Renato Botelho2014-03-211-25/+8
|
* Thermal Sensors Widget (for pfSense v2.1-BETA1 and up).01101001c2013-03-181-0/+312
| | | | Original post: http://forum.pfsense.org/index.php/topic,59193.0.html
* fix for #2231Darren Embry2012-05-171-2/+0
| | | | Don't activate master "Save Settings" button on traffic graph min/max.
* fix for Bug #2231 --- Dashboard: Traffic Graph: Unable to save settingsDarren Embry2012-04-061-31/+3
|
* fix indentation.Darren Embry2012-04-061-17/+17
|
* Merge pull request #42 from Joecowboy/masterSeth Mos2012-01-251-2/+2
|\ | | | | .
| * Update usr/local/www/widgets/javascript/cpu_graphs.jsJoecowboy2012-01-251-2/+2
| |
* | making small fixes on jQuery codeVinicius Coque2012-01-211-8/+7
|/
* Disabled the line jQuery('#' + graph['spans'][count - 1]).fadeIn(500); ↵Joecowboy2012-01-051-3/+2
| | | | causing javascript error exception to be thrown while displaying span
* Removing scriptaculous effects, now we use jQuery UI for visual effectsVinicius Coque2011-11-212-4/+4
|
* Filter log parsing updatejim-p2009-04-041-155/+0
| | | | | | | | | | | | * Share filter log parsing code instead of using copy/paste/code duplication. * Reworked the JavaScript a little so it could also be shared * Fix a large number of bugs, especially in the AJAX-based dynamic log viewer. * Picks up some more detail from the logs, and more accurately determines the protocol of a given log entry. * Adds a CLI log parser (filterparser.php) * Removed some redundant/unused code * Code cleanup/style fixes * Added support for finding logged rdr rules from miniupnpd NOTE: Due to the dynamic nature of upnp rules, the rule may not be present when checked.
* Replace SVG graph with Graphlink Ajax graph that used to be inScott Ullrich2009-03-081-0/+247
| | | | HEAD before the Dashboard import.
* Pause by default.Scott Ullrich2009-03-081-1/+1
|
* show configuration screen to allow option to display detail IPsec info (will ↵Scott Dale2007-07-241-0/+9
| | | | help with load times for many tunnels)
* allow user to configure refresh interval. Default is 3 secondsScott Dale2007-05-241-0/+4
|
* * Only process 8 events since we only show 5 lines * Change update rate to ↵Scott Ullrich2007-05-241-1/+1
| | | | be a tad higher
* save widget settingsScott Dale2007-05-151-0/+60
|
* Widget base. Note: changes to widgets are not saved yet.Scott Dale2007-05-071-0/+155
OpenPOWER on IntegriCloud