muck-raker 0.1.22 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
+ }
Binary file
@@ -29,6 +29,7 @@
29
29
  </head>
30
30
  <body scroll="no" style="overflow: hidden">
31
31
  <%= yield :layout %>
32
+ <script type="text/javascript" language="JavaScript">
32
33
  <%= yield :javascript %>
33
34
  </script>
34
35
  </body>
@@ -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