Add use_native_scrollbars setting

This commit is contained in:
RainLoop Team 2016-06-08 21:07:16 +03:00
parent c2ab03f69c
commit 99cdd1f43f
3 changed files with 10 additions and 3 deletions

9
dev/External/ko.js vendored
View file

@ -756,8 +756,13 @@
ko.bindingHandlers.nano = {
'init': function (oElement) {
var Globals = require('Common/Globals');
if (!Globals.bDisableNanoScroll)
var
Globals = require('Common/Globals'),
Settings = require('Storage/Settings')
;
if (!Globals.bDisableNanoScroll && !Settings.appSettingsGet('useNativeScrollbars'))
{
$(oElement)
.addClass('nano')

View file

@ -1473,6 +1473,7 @@ class Actions
'materialDesign' => (bool) $oConfig->Get('labs', 'use_material_design', true),
'folderSpecLimit' => (int) $oConfig->Get('labs', 'folders_spec_limit', 50),
'faviconStatus' => (bool) $oConfig->Get('labs', 'favicon_status', true),
'useNativeScrollbars' => (bool) $oConfig->Get('interface', 'use_native_scrollbars', false),
'listPermanentFiltered' => '' !== \trim(\RainLoop\Api::Config()->Get('labs', 'imap_message_list_permanent_filter', '')),
'themes' => $this->GetThemes($bMobile, false),
'languages' => $this->GetLanguages(false),

View file

@ -159,7 +159,8 @@ class Application extends \RainLoop\Config\AbstractConfig
),
'interface' => array(
'show_attachment_thumbnail' => array(true, '')
'show_attachment_thumbnail' => array(true, ''),
'use_native_scrollbars' => array(false)
),
'branding' => array(