Add DISABLE_SEARCH config

This commit is contained in:
Brian C. Lane
2015-11-07 11:43:39 -08:00
committed by Luca Chiricozzi
parent dc630d6b36
commit d365aaafb7
3 changed files with 28 additions and 10 deletions

15
static/js/main-search.js Normal file
View File

@@ -0,0 +1,15 @@
'use strict';
$(document).ready(function() {
$('.mg-container-social').height($('article').height());
$('#mg-panel-social').stick_in_parent({offset_top: 35});
$('#tipue_search_input').tipuesearch({
'show': 10,
'mode': 'json',
'showURL': false,
'descriptiveWords': 75,
'highlightEveryTerm': true,
'contentLocation': '/tipue_search.json'
});
});

View File

@@ -3,13 +3,4 @@
$(document).ready(function() {
$('.mg-container-social').height($('article').height());
$('#mg-panel-social').stick_in_parent({offset_top: 35});
$('#tipue_search_input').tipuesearch({
'show': 10,
'mode': 'json',
'showURL': false,
'descriptiveWords': 75,
'highlightEveryTerm': true,
'contentLocation': '/tipue_search.json'
});
});