#12525 added control for verify default emails in update manager
This commit is contained in:
parent
4912a4051f
commit
cf12d9dfd0
|
@ -132,6 +132,15 @@ $product_name = get_product_name(); ?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var clientMode = '<?php echo $mode; ?>';
|
var clientMode = '<?php echo $mode; ?>';
|
||||||
var ajaxPage = '<?php echo $ajaxPage; ?>';
|
var ajaxPage = '<?php echo $ajaxPage; ?>';
|
||||||
|
|
||||||
|
function notDefaultEmails(email) {
|
||||||
|
if (email.toLowerCase() === 'pandora@pandorafms.com' || email.toLowerCase() === 'admin@example.com') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("#registration_wizard").dialog({
|
$("#registration_wizard").dialog({
|
||||||
resizable: true,
|
resizable: true,
|
||||||
|
@ -188,7 +197,7 @@ $("#submit-cancel_registration").click(function(e) {
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#submit-register").click(function() {
|
$("#submit-register").click(function() {
|
||||||
if (validateEmail($('#registration-email').val())) {
|
if (validateEmail($('#registration-email').val()) && notDefaultEmails($('#registration-email').val())) {
|
||||||
// All fields are required.
|
// All fields are required.
|
||||||
ajax({
|
ajax({
|
||||||
url: "<?php echo $ajax; ?>",
|
url: "<?php echo $ajax; ?>",
|
||||||
|
|
Loading…
Reference in New Issue