move search init to search.js, because mobile does not have search to init
This commit is contained in:
parent
67ed035f21
commit
d4f99ca080
4 changed files with 24 additions and 7 deletions
14
db/schema.rb
14
db/schema.rb
|
|
@ -80,6 +80,19 @@ ActiveRecord::Schema.define(:version => 20110202015222) do
|
||||||
|
|
||||||
add_index "data_points", ["statistic_id"], :name => "index_data_points_on_statistic_id"
|
add_index "data_points", ["statistic_id"], :name => "index_data_points_on_statistic_id"
|
||||||
|
|
||||||
|
create_table "histories", :force => true do |t|
|
||||||
|
t.string "message"
|
||||||
|
t.string "username"
|
||||||
|
t.integer "item"
|
||||||
|
t.string "table"
|
||||||
|
t.integer "month", :limit => 2
|
||||||
|
t.integer "year", :limit => 8
|
||||||
|
t.datetime "created_at"
|
||||||
|
t.datetime "updated_at"
|
||||||
|
end
|
||||||
|
|
||||||
|
add_index "histories", ["item", "table", "month", "year"], :name => "index_histories_on_item_and_table_and_month_and_year"
|
||||||
|
|
||||||
create_table "invitations", :force => true do |t|
|
create_table "invitations", :force => true do |t|
|
||||||
t.text "message"
|
t.text "message"
|
||||||
t.integer "sender_id", :null => false
|
t.integer "sender_id", :null => false
|
||||||
|
|
@ -459,6 +472,7 @@ ActiveRecord::Schema.define(:version => 20110202015222) do
|
||||||
t.string "mongo_id"
|
t.string "mongo_id"
|
||||||
t.string "invitation_service"
|
t.string "invitation_service"
|
||||||
t.string "invitation_identifier"
|
t.string "invitation_identifier"
|
||||||
|
t.text "open_aspects"
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "users", ["email"], :name => "index_users_on_email"
|
add_index "users", ["email"], :name => "index_users_on_email"
|
||||||
|
|
|
||||||
|
|
@ -26,12 +26,5 @@ $(document).ready(function() {
|
||||||
|
|
||||||
$(document).trigger("retrieve.infscr");
|
$(document).trigger("retrieve.infscr");
|
||||||
});
|
});
|
||||||
|
|
||||||
$('a').live('tap',function(){
|
|
||||||
$(this).addClass('tapped');
|
|
||||||
})
|
|
||||||
|
|
||||||
// autocomplete search box
|
|
||||||
Search.initialize();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,9 @@ var Mobile = {
|
||||||
$("abbr.timeago").timeago();
|
$("abbr.timeago").timeago();
|
||||||
$('#main_stream + .pagination').hide();
|
$('#main_stream + .pagination').hide();
|
||||||
$('#aspect_picker').change(Mobile.changeAspect);
|
$('#aspect_picker').change(Mobile.changeAspect);
|
||||||
|
$('a').live('tap',function(){
|
||||||
|
$(this).addClass('tapped');
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
changeAspect: function() {
|
changeAspect: function() {
|
||||||
|
|
@ -19,3 +22,7 @@ var Mobile = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
Mobile.initialize();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,3 +53,6 @@ var Search = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
Search.initialize();
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue