move search init to search.js, because mobile does not have search to init

This commit is contained in:
maxwell 2011-02-01 22:13:52 -08:00
parent 67ed035f21
commit d4f99ca080
4 changed files with 24 additions and 7 deletions

View file

@ -80,6 +80,19 @@ ActiveRecord::Schema.define(:version => 20110202015222) do
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|
t.text "message"
t.integer "sender_id", :null => false
@ -459,6 +472,7 @@ ActiveRecord::Schema.define(:version => 20110202015222) do
t.string "mongo_id"
t.string "invitation_service"
t.string "invitation_identifier"
t.text "open_aspects"
end
add_index "users", ["email"], :name => "index_users_on_email"

View file

@ -26,12 +26,5 @@ $(document).ready(function() {
$(document).trigger("retrieve.infscr");
});
$('a').live('tap',function(){
$(this).addClass('tapped');
})
// autocomplete search box
Search.initialize();
});

View file

@ -8,6 +8,9 @@ var Mobile = {
$("abbr.timeago").timeago();
$('#main_stream + .pagination').hide();
$('#aspect_picker').change(Mobile.changeAspect);
$('a').live('tap',function(){
$(this).addClass('tapped');
})
},
changeAspect: function() {
@ -19,3 +22,7 @@ var Mobile = {
}
};
$(document).ready(function() {
Mobile.initialize();
});

View file

@ -53,3 +53,6 @@ var Search = {
}
}
$(document).ready(function(){
Search.initialize();
});