/[drupal]/contributions/modules/drupalorg/drupalorg_project/drupalorg_project.js
ViewVC logotype

Contents of /contributions/modules/drupalorg/drupalorg_project/drupalorg_project.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Tue Feb 10 17:03:19 2009 UTC (9 months, 2 weeks ago) by goba
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/javascript
Cleanup of drupalorg module and some blocks_and_nodes modules for starting new feature development.

 - All project* related things moved into drupalorg_project module, including project stuff from drupalorg module, bingo.*, branches.*, project_stuff.* and redirects.*.
 - The drupalorg module itself moved down to a drupalorg subdirectory, so the supplemental files do not interfer with the rest of the modules.
1 /* $Id: drupalorg.release_node.js,v 1.1 2008/12/14 02:41:38 dww Exp $ */
2
3 /**
4 * When adding a new release, show the confirm checkbox for security updates.
5 */
6 Drupal.drupalorgShowSecurityUpdateConfirmAutoAttach = function () {
7 $('div.release-type-select .form-select').change(function () {
8 var securityUpdate = false;
9 $('option:selected', this).each(function() {
10 if ($(this).text() == 'Security update') {
11 securityUpdate = true;
12 }
13 });
14 if (securityUpdate) {
15 $('div.security-update-confirm').show();
16 }
17 else {
18 $('div.security-update-confirm').hide();
19 }
20 });
21 };
22
23 // Global killswitch.
24 if (Drupal.jsEnabled) {
25 $(function() {
26 Drupal.drupalorgShowSecurityUpdateConfirmAutoAttach();
27 });
28 }

  ViewVC Help
Powered by ViewVC 1.1.2