From fa992b824a54fcbe8b356e26702ced2934512e8c Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 1 Jan 2016 20:40:10 +0100 Subject: [PATCH] Moved the customer-notifications setting in the 'general settings' tab. --- src/application/views/backend/settings.php | 24 ++++++++++------------ src/assets/js/backend_settings.js | 10 ++++----- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/src/application/views/backend/settings.php b/src/application/views/backend/settings.php index d3e2b107..d71ad699 100644 --- a/src/application/views/backend/settings.php +++ b/src/application/views/backend/settings.php @@ -117,6 +117,17 @@ lang->line('date_format_hint'); ?> +
+ +
+ + + lang->line('customer_notifications_hint'); ?> + +
- -
- -

lang->line('customer_notifications'); ?>

- - lang->line('customer_notifications_hint'); ?> - -
- -

lang->line('breaks'); ?>

diff --git a/src/assets/js/backend_settings.js b/src/assets/js/backend_settings.js index 692e54ba..cd2456d2 100644 --- a/src/assets/js/backend_settings.js +++ b/src/assets/js/backend_settings.js @@ -271,6 +271,11 @@ SystemSettings.prototype.get = function() { }); }); + settings.push({ + 'name': 'customer_notifications', + 'value': $('#customer-notifications').hasClass('active') === true ? '1' : '0' + }); + settings.push({ 'name': 'require_captcha', 'value': $('#require-captcha').hasClass('active') === true ? '1' : '0' @@ -287,11 +292,6 @@ SystemSettings.prototype.get = function() { 'value': $('#book-advance-timeout').val() }); - settings.push({ - 'name': 'customer_notifications', - 'value': $('#customer-notifications').hasClass('active') === true ? '1' : '0' - }); - return settings; };