aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-01 12:42:47 -0700
committerredmatrix <mike@macgirvin.com>2016-09-01 12:42:47 -0700
commit2ebb8851f684be467ae768fdac0eead1a636805c (patch)
treec37a02dcd170fa04280582a992863c065134391f
parent6adb18091124cd51e1bf8a2efae31cb83a0db075 (diff)
downloadvolse-hubzilla-2ebb8851f684be467ae768fdac0eead1a636805c.tar.gz
volse-hubzilla-2ebb8851f684be467ae768fdac0eead1a636805c.tar.bz2
volse-hubzilla-2ebb8851f684be467ae768fdac0eead1a636805c.zip
theme preview - that was easy; plus a bit more tweaking of the saved search widget to try and get the sucker to auto submit
-rw-r--r--Zotlabs/Module/Search_ac.php2
-rw-r--r--Zotlabs/Render/Theme.php2
-rw-r--r--view/js/mod_network.js2
3 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Search_ac.php b/Zotlabs/Module/Search_ac.php
index 4e936d97b..a3bc18054 100644
--- a/Zotlabs/Module/Search_ac.php
+++ b/Zotlabs/Module/Search_ac.php
@@ -72,7 +72,7 @@ class Search_ac extends \Zotlabs\Web\Controller {
);
echo json_encode($o);
- logger('search_ac: ' . print_r($x,true));
+ logger('search_ac: ' . print_r($x,true),LOGGER_ALL,LOG_INFO);
killme();
}
diff --git a/Zotlabs/Render/Theme.php b/Zotlabs/Render/Theme.php
index 62068bc82..9f9009d72 100644
--- a/Zotlabs/Render/Theme.php
+++ b/Zotlabs/Render/Theme.php
@@ -66,6 +66,8 @@ class Theme {
$chosen_theme = $page_theme;
}
}
+ if(array_key_exists('theme_preview',$_GET))
+ $chosen_theme = $_GET['theme_preview'];
// Allow theme selection of the form 'theme_name:schema_name'
diff --git a/view/js/mod_network.js b/view/js/mod_network.js
index cbdb82c75..cd36786df 100644
--- a/view/js/mod_network.js
+++ b/view/js/mod_network.js
@@ -1,5 +1,5 @@
$(document).ready(function() {
- $("#search-text").contact_autocomplete(baseurl + '/search_ac');
+ $("#search-text").contact_autocomplete(baseurl + '/search_ac','',true);
$('.jslider-scale ins').addClass('hidden-xs');
});