social_stream-events 0.0.7 → 0.0.8
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.
data/app/models/event.rb
CHANGED
data/app/models/session.rb
CHANGED
@@ -3,3 +3,8 @@
|
|
3
3
|
<%= f.hidden_field :founder_id, :value => current_subject.id %>
|
4
4
|
<%= f.text_field :name, :size => 85, :value => t('event.input') %>
|
5
5
|
|
6
|
+
<%= javascript_tag do %>
|
7
|
+
$(function() {
|
8
|
+
$("#event_name").Watermark("<%= I18n.t('event.input') %>","#666");
|
9
|
+
});
|
10
|
+
<% end %>
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.files = `git ls-files`.split("\n")
|
13
13
|
|
14
14
|
# Gem dependencies
|
15
|
-
s.add_runtime_dependency('social_stream-base', '~> 0.9.
|
15
|
+
s.add_runtime_dependency('social_stream-base', '~> 0.9.15')
|
16
16
|
s.add_runtime_dependency('conference_manager-ruby', '~> 0.0.3')
|
17
17
|
|
18
18
|
# Development Gem dependencies
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_stream-events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Diego Carrera
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-10-
|
20
|
+
date: 2011-10-06 00:00:00 +02:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -28,12 +28,12 @@ dependencies:
|
|
28
28
|
requirements:
|
29
29
|
- - ~>
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
hash:
|
31
|
+
hash: 37
|
32
32
|
segments:
|
33
33
|
- 0
|
34
34
|
- 9
|
35
|
-
-
|
36
|
-
version: 0.9.
|
35
|
+
- 15
|
36
|
+
version: 0.9.15
|
37
37
|
name: social_stream-base
|
38
38
|
version_requirements: *id001
|
39
39
|
- !ruby/object:Gem::Dependency
|
@@ -210,7 +210,6 @@ files:
|
|
210
210
|
- app/views/events/_event.html.erb
|
211
211
|
- app/views/events/_event_with_details.html.erb
|
212
212
|
- app/views/events/_form.html.erb
|
213
|
-
- app/views/events/_jquery.html.erb
|
214
213
|
- app/views/events/_manage.html.erb
|
215
214
|
- app/views/events/_new_activity.html.erb
|
216
215
|
- app/views/events/_new_activity_fields.html.erb
|
@@ -1,125 +0,0 @@
|
|
1
|
-
//javascript for main activities input
|
2
|
-
title = "<%= t('activity.input') %>";
|
3
|
-
$("#input_activities").click(function(){
|
4
|
-
if(this.value == title){
|
5
|
-
this.value="";
|
6
|
-
$("#masterSubmitButton").show();
|
7
|
-
}
|
8
|
-
});
|
9
|
-
|
10
|
-
//initial state
|
11
|
-
$('#wrapper_activities_header form').hide();
|
12
|
-
$('#new_post').show();
|
13
|
-
|
14
|
-
//clicks on headers
|
15
|
-
$('.activities_title_header').live('click',function(){
|
16
|
-
$('.activities_title_header').removeClass('selected');
|
17
|
-
$(this).addClass('selected');
|
18
|
-
$('#wrapper_activities_header form').hide();
|
19
|
-
$('#new_'+this.id.split("_")[1]).show();
|
20
|
-
});
|
21
|
-
|
22
|
-
//submit
|
23
|
-
$('#masterSubmitButton').live('click',function(){
|
24
|
-
$('.liveAdded').remove();
|
25
|
-
$('#wrapper_activities_header form:visible').append(
|
26
|
-
$('<input/>')
|
27
|
-
.addClass('liveAdded')
|
28
|
-
.attr('type', 'hidden')
|
29
|
-
.attr('name', $('#wrapper_activities_header form:visible')
|
30
|
-
.attr('id').split('_')[1]+'[_relation_ids][]')
|
31
|
-
.val($('#security option:selected').attr('value')));
|
32
|
-
$('#wrapper_activities_header form:visible').submit();
|
33
|
-
});
|
34
|
-
|
35
|
-
|
36
|
-
//javascript for comments
|
37
|
-
$(".input_new_comments").val("<%= t('comment.input') %>");
|
38
|
-
$(".activities_comment_btn").hide();
|
39
|
-
|
40
|
-
//usa livequery para usar el javascript luego de una accion con AJAX
|
41
|
-
$(".input_new_comments").livequery("click",function(){
|
42
|
-
if(this.value == "<%= t('comment.input') %>"){
|
43
|
-
$(this).val("");
|
44
|
-
}
|
45
|
-
$(".activities_comment_btn").hide();
|
46
|
-
$(this).parent(".new_comment").children(".activities_comment_btn").show();
|
47
|
-
});
|
48
|
-
$(".input_new_comments").livequery("blur",function(){
|
49
|
-
if(this.value == ""){
|
50
|
-
$(".activities_comment_btn").hide();
|
51
|
-
$(this).val("<%= t('comment.input') %>");
|
52
|
-
}
|
53
|
-
});
|
54
|
-
|
55
|
-
$(".input_new_comments").click(function(){
|
56
|
-
if(this.value == "<%= t('comment.input') %>"){
|
57
|
-
$(this).val("");
|
58
|
-
}
|
59
|
-
$(".activities_comment_btn").hide();
|
60
|
-
$(this).parent(".new_comment").children(".activities_comment_btn").show();
|
61
|
-
});
|
62
|
-
|
63
|
-
//javascript for tocomment option
|
64
|
-
$(".to_comment").livequery("click", function(){
|
65
|
-
$(this).parents(".activity_content").find(".input_new_comments").click();
|
66
|
-
$(this).parents(".activity_content").find(".input_new_comments").focus();
|
67
|
-
return false;
|
68
|
-
});
|
69
|
-
$(".to_comment").livequery("blur", function(){
|
70
|
-
$(this).parents(".activity_content").find(".input_new_comments").blur();
|
71
|
-
return false;
|
72
|
-
});
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
//move he last list item before the first item. The purpose of this is if the user clicks to slide left he will be able to see the last item.
|
83
|
-
$('#carousel_ul li:first').before($('#carousel_ul li:last'));
|
84
|
-
|
85
|
-
|
86
|
-
//when user clicks the image for sliding right
|
87
|
-
$('#right_scroll img').livequery("click",function(){
|
88
|
-
|
89
|
-
//get the width of the items ( i like making the jquery part dynamic, so if you change the width in the css you won't have o change it here too ) '
|
90
|
-
var item_width = $('#carousel_ul li').outerWidth() + 10;
|
91
|
-
|
92
|
-
//calculae the new left indent of the unordered list
|
93
|
-
var left_indent = parseInt($('#carousel_ul').css('left')) - item_width;
|
94
|
-
|
95
|
-
//make the sliding effect using jquery's anumate function '
|
96
|
-
$('#carousel_ul:not(:animated)').animate({'left' : left_indent},500,function(){
|
97
|
-
|
98
|
-
//get the first list item and put it after the last list item (that's how the infinite effects is made) '
|
99
|
-
$('#carousel_ul li:last').after($('#carousel_ul li:first'));
|
100
|
-
|
101
|
-
//and get the left indent to the default -210px
|
102
|
-
$('#carousel_ul').css({'left' : '-210px'});
|
103
|
-
});
|
104
|
-
});
|
105
|
-
|
106
|
-
//when user clicks the image for sliding left
|
107
|
-
$('#left_scroll img').livequery("click",function(){
|
108
|
-
|
109
|
-
var item_width = $('#carousel_ul li').outerWidth() + 10;
|
110
|
-
|
111
|
-
/* same as for sliding right except that it's current left indent + the item width (for the sliding right it's - item_width) */
|
112
|
-
var left_indent = parseInt($('#carousel_ul').css('left')) + item_width;
|
113
|
-
|
114
|
-
$('#carousel_ul:not(:animated)').animate({'left' : left_indent},500,function(){
|
115
|
-
|
116
|
-
/* when sliding to left we are moving the last item before the first list item */
|
117
|
-
$('#carousel_ul li:first').before($('#carousel_ul li:last'));
|
118
|
-
|
119
|
-
/* and again, when we make that change we are setting the left indent of our unordered list to the default -210px */
|
120
|
-
$('#carousel_ul').css({'left' : '-210px'});
|
121
|
-
});
|
122
|
-
|
123
|
-
|
124
|
-
});
|
125
|
-
|