JS will now save the captcha setting.
This commit is contained in:
parent
494e5e53a1
commit
c16a06a273
2 changed files with 14 additions and 3 deletions
|
@ -719,12 +719,14 @@ padding: 4px 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#settings-page #user-notifications,
|
#settings-page #user-notifications,
|
||||||
#settings-page #customer-notifications {
|
#settings-page #customer-notifications,
|
||||||
|
#settings-page #require-captcha {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#settings-page #user-notifications.active,
|
#settings-page #user-notifications.active,
|
||||||
#settings-page #customer-notifications.active {
|
#settings-page #customer-notifications.active,
|
||||||
|
#settings-page #require-captcha.active {
|
||||||
background: #B6DCFF;
|
background: #B6DCFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,10 @@ var BackendSettings = {
|
||||||
if (setting.name == 'customer_notifications' && setting.value == '1') {
|
if (setting.name == 'customer_notifications' && setting.value == '1') {
|
||||||
$('#customer-notifications').addClass('active');
|
$('#customer-notifications').addClass('active');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (setting.name == 'require_captcha' && setting.value == '1') {
|
||||||
|
$('#require-captcha').addClass('active');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
BackendSettings.wp = new WorkingPlan();
|
BackendSettings.wp = new WorkingPlan();
|
||||||
|
@ -267,6 +271,11 @@ SystemSettings.prototype.get = function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
settings.push({
|
||||||
|
'name': 'require_captcha',
|
||||||
|
'value': $('#require-captcha').hasClass('active') === true ? '1' : '0'
|
||||||
|
});
|
||||||
|
|
||||||
// Business Logic Tab
|
// Business Logic Tab
|
||||||
settings.push({
|
settings.push({
|
||||||
'name': 'company_working_plan',
|
'name': 'company_working_plan',
|
||||||
|
@ -281,7 +290,7 @@ SystemSettings.prototype.get = function() {
|
||||||
settings.push({
|
settings.push({
|
||||||
'name': 'customer_notifications',
|
'name': 'customer_notifications',
|
||||||
'value': $('#customer-notifications').hasClass('active') === true ? '1' : '0'
|
'value': $('#customer-notifications').hasClass('active') === true ? '1' : '0'
|
||||||
})
|
});
|
||||||
|
|
||||||
return settings;
|
return settings;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue