mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 07:52:29 +03:00
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 #customer-notifications {
|
||||
#settings-page #customer-notifications,
|
||||
#settings-page #require-captcha {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
#settings-page #user-notifications.active,
|
||||
#settings-page #customer-notifications.active {
|
||||
#settings-page #customer-notifications.active,
|
||||
#settings-page #require-captcha.active {
|
||||
background: #B6DCFF;
|
||||
}
|
||||
|
||||
|
|
|
@ -58,6 +58,10 @@ var BackendSettings = {
|
|||
if (setting.name == 'customer_notifications' && setting.value == '1') {
|
||||
$('#customer-notifications').addClass('active');
|
||||
}
|
||||
|
||||
if (setting.name == 'require_captcha' && setting.value == '1') {
|
||||
$('#require-captcha').addClass('active');
|
||||
}
|
||||
});
|
||||
|
||||
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
|
||||
settings.push({
|
||||
'name': 'company_working_plan',
|
||||
|
@ -281,7 +290,7 @@ SystemSettings.prototype.get = function() {
|
|||
settings.push({
|
||||
'name': 'customer_notifications',
|
||||
'value': $('#customer-notifications').hasClass('active') === true ? '1' : '0'
|
||||
})
|
||||
});
|
||||
|
||||
return settings;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue