theme preview - that was easy; plus a bit more tweaking of the saved search widget to try and get the sucker to auto submit

This commit is contained in:
redmatrix 2016-09-01 12:42:47 -07:00
parent 6adb180911
commit 2ebb8851f6
3 changed files with 4 additions and 2 deletions

View File

@ -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();
}

View File

@ -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'

View File

@ -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');
});