muck-raker 0.1.22 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -37
- data/VERSION +1 -1
- data/app/helpers/muck_raker_helper.rb +1 -1
- data/app/views/visits/show.html.erb +12 -69
- data/lib/muck_raker/tasks.rb +1 -0
- data/locales/en.yml +3 -1
- data/muck-raker.gemspec +13 -283
- data/public/javascripts/muck_raker.js +61 -0
- data/raker/lib/recommenderd.jar +0 -0
- data/test/rails_root/app/views/layouts/frame.html.erb +1 -0
- data/test/rails_root/db/bootstrap/attention.yml +5 -5
- data/test/rails_root/db/bootstrap/feeds.yml +4267 -4267
- data/test/rails_root/db/bootstrap/oai_endpoints.yml +5 -5
- data/test/rails_root/db/bootstrap/services.yml +149 -149
- data/test/rails_root/db/migrate/20090803185323_create_shares.rb +0 -2
- data/test/rails_root/db/migrate/20090804184247_add_comment_count_to_shares.rb +9 -0
- data/test/rails_root/db/migrate/{20090804211240_add_entry_id_to_shares.rb.rb → 20090804211240_add_entry_id_to_shares.rb} +0 -0
- data/test/rails_root/db/migrate/20090804231857_add_shares_uri_index.rb +9 -0
- data/test/rails_root/public/javascripts/muck_raker.js +61 -0
- data/test/rails_root/public/stylesheets/application.css +3 -2
- metadata +10 -5
- data/test/rails_root/db/schema.rb +0 -460
@@ -0,0 +1,61 @@
|
|
1
|
+
function show_tool(tool) {
|
2
|
+
jQuery('.tool').hide();
|
3
|
+
jQuery("#content_iframe").width('75%');
|
4
|
+
jQuery('#' + tool + '_tool').show();
|
5
|
+
maximize_space();
|
6
|
+
return false;
|
7
|
+
}
|
8
|
+
function maximize_space() {
|
9
|
+
var container = jQuery(".tools_container");
|
10
|
+
var spacer = jQuery('#comments_tools_close_wrapper').height() + 5;
|
11
|
+
container.height(jQuery(window).height() - (jQuery('#toolbar').height() + spacer));
|
12
|
+
}
|
13
|
+
function setup_comment_submit(){
|
14
|
+
jQuery(".comment-submit").click(function() {
|
15
|
+
jQuery(this).siblings('textarea').hide();
|
16
|
+
jQuery(this).parent().append('<p class="comment-loading"><img src="/images/spinner.gif" alt="loading..." /> ' + ADD_COMMENT_MESSAGE + '</p>');
|
17
|
+
var form = jQuery(this).parents('form');
|
18
|
+
jQuery.post(form.attr('action'), form.serialize() + '&format=json',
|
19
|
+
function(data){
|
20
|
+
var json = eval('(' + data + ')');
|
21
|
+
if(!json.success){
|
22
|
+
jQuery.jGrowl.info(json.message);
|
23
|
+
} else {
|
24
|
+
jQuery('.comment-loading').remove();
|
25
|
+
jQuery('#comments_tool').find('textarea').show();
|
26
|
+
jQuery('#comments_tool').find('textarea').val('');
|
27
|
+
jQuery("#comments_container").animate({ scrollTop: jQuery("#comments_container").attr("scrollHeight") }, 3000);
|
28
|
+
var contents = jQuery(json.html)
|
29
|
+
contents.hide();
|
30
|
+
jQuery('#comments_wrapper').append(contents);
|
31
|
+
contents.fadeIn("slow");
|
32
|
+
apply_frame_comment_hover();
|
33
|
+
}
|
34
|
+
});
|
35
|
+
return false;
|
36
|
+
});
|
37
|
+
}
|
38
|
+
function apply_frame_comment_hover(){
|
39
|
+
jQuery('.comment_holder').hover(
|
40
|
+
function () { jQuery(this).addClass('comment-hover'); },
|
41
|
+
function () { jQuery(this).removeClass('comment-hover'); } );
|
42
|
+
}
|
43
|
+
function setup_share_submit(){
|
44
|
+
jQuery('#share_submit_share_new').click(function() {
|
45
|
+
jQuery(this).parent().append('<p class="share-loading"><img src="/images/spinner.gif" alt="loading..." /> ' + ADD_SHARE_MESSAGE + '</p>');
|
46
|
+
jQuery('#share_submit_share_new').hide();
|
47
|
+
var form = jQuery(this).parents('form');
|
48
|
+
jQuery.post(form.attr('action'), form.serialize() + '&format=json',
|
49
|
+
function(data){
|
50
|
+
var json = eval('(' + data + ')');
|
51
|
+
jQuery('.share-loading').remove();
|
52
|
+
jQuery('#share_submit_share_new').show();
|
53
|
+
if(!json.success){
|
54
|
+
jQuery.jGrowl.info(json.message);
|
55
|
+
} else {
|
56
|
+
jQuery.jGrowl.info(json.message);
|
57
|
+
}
|
58
|
+
});
|
59
|
+
return false;
|
60
|
+
});
|
61
|
+
}
|
data/raker/lib/recommenderd.jar
CHANGED
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
|
-
attention1:
|
2
|
-
attentionable_id: 1
|
3
|
-
attentionable_type: User
|
4
|
-
entry_id: 1
|
5
|
-
action_type: 1
|
1
|
+
attention1:
|
2
|
+
attentionable_id: 1
|
3
|
+
attentionable_type: User
|
4
|
+
entry_id: 1
|
5
|
+
action_type: 1
|
6
6
|
weight: 3
|