On 22/03/2011 23:46, Paul Gear wrote:
On 22/03/11 21:06, Adam Armstrong wrote:
On 22/03/2011 09:57, Paul Gear wrote:
On 22/03/11 19:05, Nikolay Shopik wrote:
On 22/03/11 11:23, Paul Gear wrote:
It was broken by r1947 and should be fixed by r1950.
Thanks, it could be great to have invert selection or select all. When you having 500 ports on device and only need to monitor few one, it is real helper :).
That will be my next patch, if i can work out how to do it and if Adam promises that he's not going to throw away the functionality next month. ;-)
Beware that i don't like this functionality, and am liable to randomly remove it, should it get too fiddly or produce more than 0 support requests :)
OK, i've decided that enough people will want this that we will be able to shout Adam down ;-) , and have created a solution using the jQuery JavaScript library (http://jquery.com/) that is crazy-easy and minimally invasive from a coding perspective.
How ready are you to add an 85 Kb JavaScript library (that's the compressed size) to Observium? If you think it's OK, these files will need to go into html/js/:
* http://code.jquery.com/jquery-1.5.1.min.js * http://code.jquery.com/jquery-1.5.1.js
And then the patch here:
* http://gear.dyndns.org/~paulgear/patches/observium-r1957-port-jquery.patch
I don't mind including JQuery. In terms of UI, I'd quite like it if the setting was toggled *when* you clicked the tickbox, rather than when you clicked "submit". But that would be much more involved, I expect.
adam.