diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-02 17:36:14 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-03-02 17:36:14 -0800 |
commit | 7445f1881ecf640bfd05c9b46471ee7494a376c1 (patch) | |
tree | 2fbdc3ecf580795c571ddb39ea4d2ec4a9a01405 | |
parent | e58dc726c5e40ff30942739f86d2329fb29f763c (diff) | |
parent | 6bf6462a377d1a80ab30d63b48034fb4cde0bb9e (diff) | |
download | volse-hubzilla-7445f1881ecf640bfd05c9b46471ee7494a376c1.tar.gz volse-hubzilla-7445f1881ecf640bfd05c9b46471ee7494a376c1.tar.bz2 volse-hubzilla-7445f1881ecf640bfd05c9b46471ee7494a376c1.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
-rw-r--r-- | Zotlabs/Module/Settings/Display.php | 2 | ||||
-rw-r--r-- | view/js/mod_settings.js | 13 | ||||
-rw-r--r-- | view/theme/redbasic/schema/dark.css | 1 | ||||
-rw-r--r-- | view/theme/redbasic/schema/simple_black_on_white.css | 2 | ||||
-rw-r--r-- | view/theme/redbasic/schema/simple_green_on_black.css | 1 | ||||
-rw-r--r-- | view/theme/redbasic/schema/simple_white_on_black.css | 1 | ||||
-rwxr-xr-x | view/tpl/connections.tpl | 10 | ||||
-rwxr-xr-x | view/tpl/follow.tpl | 11 | ||||
-rwxr-xr-x | view/tpl/peoplefind.tpl | 10 |
9 files changed, 23 insertions, 28 deletions
diff --git a/Zotlabs/Module/Settings/Display.php b/Zotlabs/Module/Settings/Display.php index ee404daba..eae44e82c 100644 --- a/Zotlabs/Module/Settings/Display.php +++ b/Zotlabs/Module/Settings/Display.php @@ -65,7 +65,7 @@ class Display { set_pconfig(local_channel(),'system','manual_conversation_update', $manual_update); $newschema = ''; - if($theme == $existing_theme){ + if($theme){ // call theme_post only if theme has not been changed if( ($themeconfigfile = $this->get_theme_config_file($theme)) != null){ require_once($themeconfigfile); diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js index 5c729fa48..f9faa3d5c 100644 --- a/view/js/mod_settings.js +++ b/view/js/mod_settings.js @@ -37,12 +37,19 @@ function setTheme(elm) { function previewTheme(elm) { theme = $(elm).val(); + var schema = $('#id_schema').val(); $.getJSON('theme_info/' + theme,function(data) { $('#theme-preview').html('<div id="theme-desc">' + data.desc + '</div><div id="theme-version">' + data.version + '</div><div id="theme-credits">' + data.credits + '</div><a href="' + data.img + '"><img src="' + data.img + '" style="max-width:100%; max-height:300px" alt="' + theme + '"></a>'); $('#id_schema').empty(); - $(data.schemas).each(function(index,item) { - $('<option/>',{value:item['key'],text:item['val']}).appendTo('#id_schema'); - }); + if(data.schemas.length) { + $(data.schemas).each(function(index,item) { + $('<option/>',{value:item['key'],text:item['val']}).appendTo('#id_schema'); + }); + $('#id_schema').val(schema ? schema : '---'); + } + else { + $('<option/>',{value:'',text:'No schemes available'}).appendTo('#id_schema'); + } $('#custom-settings-content .section-content-tools-wrapper').html(data.config); }); } diff --git a/view/theme/redbasic/schema/dark.css b/view/theme/redbasic/schema/dark.css index f9114141d..ebef68a52 100644 --- a/view/theme/redbasic/schema/dark.css +++ b/view/theme/redbasic/schema/dark.css @@ -417,7 +417,6 @@ pre { .contextual-help-content-open { background: $nav_bg; - top: 50px; border-bottom: #555 1px solid; box-shadow: 0px 3px 3px rgba(85,85,85,0.2); } diff --git a/view/theme/redbasic/schema/simple_black_on_white.css b/view/theme/redbasic/schema/simple_black_on_white.css index f06fd3667..915cc4e18 100644 --- a/view/theme/redbasic/schema/simple_black_on_white.css +++ b/view/theme/redbasic/schema/simple_black_on_white.css @@ -294,8 +294,6 @@ pre { .contextual-help-content-open { background: #FFF; - top: 50px; - } .profile-match-wrapper { diff --git a/view/theme/redbasic/schema/simple_green_on_black.css b/view/theme/redbasic/schema/simple_green_on_black.css index c7bb99334..7f3f99fce 100644 --- a/view/theme/redbasic/schema/simple_green_on_black.css +++ b/view/theme/redbasic/schema/simple_green_on_black.css @@ -367,7 +367,6 @@ pre { .contextual-help-content-open { background: $nav_bg; - top: 50px; border-bottom: #1C5419 1px solid; box-shadow: 0px 3px 3px rgba(28,84,25,0.2); } diff --git a/view/theme/redbasic/schema/simple_white_on_black.css b/view/theme/redbasic/schema/simple_white_on_black.css index dabc26743..7e7f80f2f 100644 --- a/view/theme/redbasic/schema/simple_white_on_black.css +++ b/view/theme/redbasic/schema/simple_white_on_black.css @@ -340,7 +340,6 @@ pre { .contextual-help-content-open { background: $nav_bg; - top: 50px; border-bottom: #FFF 1px solid; box-shadow: 0px 3px 3px rgba(255,255,255,0.2); } diff --git a/view/tpl/connections.tpl b/view/tpl/connections.tpl index 1f7aa05b7..f85adc592 100755 --- a/view/tpl/connections.tpl +++ b/view/tpl/connections.tpl @@ -17,12 +17,10 @@ </div> <div id="contacts-search-form" class="section-content-tools-wrapper"> <form action="{{$cmd}}" method="get" > - <div class="form-group"> - <div class="input-group"> - <input type="text" name="search" id="contacts-search" class="widget-input" onfocus="this.select();" value="{{$search}}" placeholder="{{$desc}}" /> - <div class="input-group-btn"> - <button id="contacts-search-submit" class="btn btn-default btn-sm" type="submit" name="submit" value="{{$submit}}"><i class="fa fa-search"></i></button> - </div> + <div class="input-group form-group"> + <input type="text" name="search" id="contacts-search" class="form-control input-sm" onfocus="this.select();" value="{{$search}}" placeholder="{{$desc}}" /> + <div class="input-group-btn"> + <button id="contacts-search-submit" class="btn btn-default btn-sm" type="submit" name="submit" value="{{$submit}}"><i class="fa fa-fw fa-search"></i></button> </div> </div> </form> diff --git a/view/tpl/follow.tpl b/view/tpl/follow.tpl index 9c19a288d..a211a65b6 100755 --- a/view/tpl/follow.tpl +++ b/view/tpl/follow.tpl @@ -1,12 +1,10 @@ <div id="follow-sidebar" class="widget"> <h3>{{$connect}}</h3> <form action="follow" method="post" /> - <div class="form-group"> - <div class="input-group"> - <input class="widget-input" type="text" name="url" title="{{$hint}}" placeholder="{{$desc}}" /> - <div class="input-group-btn"> - <button class="btn btn-default btn-sm" type="submit" name="submit" value="{{$follow}}"><i class="fa fa-plus"></i></button> - </div> + <div class="input-group"> + <input class="form-control input-sm" type="text" name="url" title="{{$hint}}" placeholder="{{$desc}}" /> + <div class="input-group-btn"> + <button class="btn btn-success btn-sm" type="submit" name="submit" value="{{$follow}}" title="{{$follow}}"><i class="fa fa-fw fa-plus"></i></button> </div> </div> </form> @@ -14,4 +12,3 @@ <div class="usage-message" id="abook-usage-message">{{$abook_usage_message}}</div> {{/if}} </div> - diff --git a/view/tpl/peoplefind.tpl b/view/tpl/peoplefind.tpl index ae0b7f1ea..8318f050d 100755 --- a/view/tpl/peoplefind.tpl +++ b/view/tpl/peoplefind.tpl @@ -1,12 +1,10 @@ <div id="peoplefind-sidebar" class="widget"> <h3>{{$findpeople}}</h3> <form action="directory" method="post" /> - <div class="form-group"> - <div class="input-group"> - <input class="widget-input" type="text" name="search" title="{{$hint}}{{if $advanced_search}}{{$advanced_hint}}{{/if}}" placeholder="{{$desc}}" /> - <div class="input-group-btn"> - <button class="btn btn-default btn-sm" type="submit" name="submit"><i class="fa fa-search"></i></button> - </div> + <div class="input-group form-group"> + <input class="form-control input-sm" type="text" name="search" title="{{$hint}}{{if $advanced_search}}{{$advanced_hint}}{{/if}}" placeholder="{{$desc}}" /> + <div class="input-group-btn"> + <button class="btn btn-default btn-sm" type="submit" name="submit"><i class="fa fa-fw fa-search"></i></button> </div> </div> </form> |