comments
parent
9aba8dee40
commit
9b02413c39
|
@ -131,12 +131,15 @@ jQuery(function($) {
|
||||||
|
|
||||||
initialize: function(opts) {
|
initialize: function(opts) {
|
||||||
|
|
||||||
|
// Site variables
|
||||||
$search_query = $('input#search-query', this.el);
|
$search_query = $('input#search-query', this.el);
|
||||||
$snipts = $('section#snipts article.snipt', this.el);
|
$snipts = $('section#snipts article.snipt', this.el);
|
||||||
|
|
||||||
|
// Init functions
|
||||||
this.keyboardShortcuts();
|
this.keyboardShortcuts();
|
||||||
this.inFieldLabels();
|
this.inFieldLabels();
|
||||||
|
|
||||||
|
// Init snipts
|
||||||
if ($snipts.length) {
|
if ($snipts.length) {
|
||||||
SniptListView = Snipt.Views.SniptListView;
|
SniptListView = Snipt.Views.SniptListView;
|
||||||
Snipts = new SniptListView({ 'snipts': $snipts });
|
Snipts = new SniptListView({ 'snipts': $snipts });
|
||||||
|
|
Loading…
Reference in New Issue