-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PURR #1622] require email address for publication contact
- Loading branch information
Showing
8 changed files
with
218 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* @package hubzero-cms | ||
* @copyright Copyright (c) 2005-2023 The Regents of the University of California. | ||
* @license http://opensource.org/licenses/MIT MIT | ||
*/ | ||
|
||
//----------------------------------------------------------- | ||
// Ensure we have our namespace | ||
//----------------------------------------------------------- | ||
if (!HUB) { | ||
var HUB = {}; | ||
} | ||
|
||
//---------------------------------------------------------- | ||
// Publication review page JS | ||
//---------------------------------------------------------- | ||
HUB.ProjectPublicationReview = { | ||
contactEmailCheck: function() | ||
{ | ||
$("input[name='contact[]']").change(function() { | ||
var emailID = '#' + $(this).val() + '_email'; | ||
var msgID = '#' + $(this).val() + '_msg'; | ||
|
||
if ($(this).prop('checked')) | ||
{ | ||
if ($(this).parents().has(emailID).length == 0) | ||
{ | ||
$(msgID).show(); | ||
} | ||
} | ||
else | ||
{ | ||
if ($(this).parents().has(emailID).length == 0) | ||
{ | ||
$(msgID).hide(); | ||
} | ||
} | ||
}); | ||
} | ||
} | ||
|
||
jQuery(document).ready(function($){ | ||
HUB.ProjectPublicationReview.contactEmailCheck(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters