Plugin Developer DiscussionDiscussion for FogBugz Plugin developers |
|
I wouldn't depend on that Javascript to exist without changes - it is not formally part of the FogBugz API, and we can't guarantee that it will stay the same. However, you can be assured that jQuery will be present in FogBugz by default for the forseeable future, and 'select all' should be fairly straightforward in jQuery. (http://jetlogs.org/jquery/jquery_select_all.html)
well, looks like i had been using code that no longer worked in the latest jquery version. Here is what I ended up using - in case anyone else is trying the same. Obviously you need to change id names as necessary:
$(document).ready(function() { $("input#interval_All").click(function() { if ($(this).attr('checked') == true) { $(':checkbox:not(this)').attr('checked', true); } else { $(':checkbox:not(this)').attr('checked', false); } }); }); |
Powered by FogBugz