social_stream 0.23.2 → 0.23.3
Sign up to get free protection for your applications and to get access to all the features.
- data/base/app/assets/javascripts/layouts.js +0 -1
- data/base/app/assets/javascripts/social_stream.comments.js +10 -3
- data/base/app/assets/javascripts/social_stream.search.js.erb +3 -1
- data/base/app/assets/javascripts/social_stream.wall.js.erb +8 -1
- data/base/app/assets/stylesheets/{activities.css.scss → activities.css.scss.erb} +1 -1
- data/base/app/models/relation.rb +4 -0
- data/base/app/models/tie.rb +5 -0
- data/base/app/views/cheesecake/_index.html.erb +2 -2
- data/base/app/views/layouts/_search.html.erb +2 -2
- data/base/app/views/posts/_new_activity_fields.erb +0 -6
- data/base/lib/generators/social_stream/base/templates/relations.yml +4 -4
- data/base/lib/social_stream/base/version.rb +1 -1
- data/base/lib/tasks/db/populate.rake +2 -2
- data/base/spec/dummy/config/relations.yml +4 -4
- data/base/vendor/assets/javascripts/jquery.watermark.js +563 -0
- data/documents/app/assets/javascripts/social_stream.audio.js.erb +25 -0
- data/documents/app/assets/javascripts/social_stream.repository.js.erb +27 -0
- data/documents/app/assets/javascripts/social_stream.video.js.erb +38 -0
- data/documents/app/assets/stylesheets/documents.css.scss +11 -14
- data/documents/app/views/audios/_audio.html.erb +0 -18
- data/documents/app/views/audios/_audio_processed.html.erb +35 -39
- data/documents/app/views/common_documents/_document_info.html.erb +2 -2
- data/documents/app/views/common_documents/_edit_form.html.erb +1 -1
- data/documents/app/views/common_documents/_headers.html.erb +1 -1
- data/documents/app/views/common_documents/_index.html.erb +3 -0
- data/documents/app/views/pictures/_picture.html.erb +3 -1
- data/documents/app/views/videos/_video.html.erb +0 -20
- data/documents/app/views/videos/_video_processed.html.erb +56 -43
- data/documents/config/locales/en.yml +1 -1
- data/documents/config/locales/es.yml +1 -1
- data/documents/lib/social_stream/documents/version.rb +1 -1
- data/documents/social_stream-documents.gemspec +1 -1
- data/documents/vendor/assets/javascripts/jquery.jplayer.js +87 -68
- data/documents/vendor/assets/swf/Jplayer.swf +0 -0
- data/events/app/assets/javascripts/social_stream-events.js +2 -0
- data/events/app/assets/javascripts/social_stream.calendar.js.erb +98 -0
- data/events/app/assets/javascripts/social_stream.event.js +17 -0
- data/events/app/assets/javascripts/social_stream.events.poster.js +1 -0
- data/events/app/assets/javascripts/{events.js.coffee → social_stream.events.tools.js.coffee} +0 -16
- data/events/app/assets/stylesheets/events.css.scss +33 -0
- data/events/app/controllers/events_controller.rb +19 -9
- data/events/app/views/events/_event.html.erb +5 -0
- data/events/app/views/events/_sidebar_calendar.html.erb +6 -28
- data/events/app/views/events/index.js.erb +3 -0
- data/events/app/views/rooms/_form.html.erb +1 -1
- data/events/app/views/rooms/create.js.erb +1 -1
- data/events/lib/social_stream/events/version.rb +1 -1
- data/events/social_stream-events.gemspec +1 -1
- data/lib/social_stream/version.rb +1 -1
- data/presence/app/assets/javascripts/jquery.ui.chatbox.sstreampresence.js +1 -1
- data/presence/app/assets/javascripts/presence.js.erb +16 -1
- data/presence/app/assets/javascripts/presence_XmppClient.js.erb +10 -3
- data/presence/app/assets/javascripts/presence_game.js.erb +284 -49
- data/presence/app/assets/javascripts/presence_game_comunication.js.erb +313 -0
- data/presence/app/assets/javascripts/presence_game_interface.js.erb +134 -0
- data/presence/app/assets/javascripts/presence_game_ter.js.erb +237 -188
- data/presence/app/assets/javascripts/presence_persistence.js +1 -1
- data/presence/app/assets/javascripts/presence_uiManager.js.erb +4 -2
- data/presence/app/assets/javascripts/presence_utilities.js +1 -1
- data/presence/app/assets/javascripts/presence_videochat.js.erb +2 -3
- data/presence/app/assets/javascripts/presence_windowManager.js +8 -1
- data/presence/app/assets/stylesheets/TresEnRaya.css +57 -0
- data/presence/app/assets/stylesheets/chat.css.scss +22 -1
- data/presence/app/views/chat/_index.html.erb +15 -18
- data/presence/config/locales/en.yml +14 -1
- data/presence/config/locales/es.yml +14 -1
- data/presence/lib/social_stream/presence/version.rb +1 -1
- data/presence/lib/tasks/presence/installer.rake +2 -2
- data/presence/social_stream-presence.gemspec +1 -1
- data/presence/vendor/assets/javascripts/jquery.gamequery-0.5.1.js +1164 -0
- data/social_stream.gemspec +4 -4
- data/spec/dummy/config/relations.yml +4 -4
- metadata +44 -34
- data/base/vendor/assets/javascripts/jquery.watermarkinput.js +0 -81
- data/documents/app/assets/javascripts/documents.js.erb +0 -71
data/social_stream.gemspec
CHANGED
@@ -11,11 +11,11 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.files = `git ls-files`.split("\n")
|
12
12
|
|
13
13
|
# Gem dependencies
|
14
|
-
s.add_runtime_dependency('social_stream-base', '~> 0.17.
|
15
|
-
s.add_runtime_dependency('social_stream-documents', '~> 0.11.
|
16
|
-
s.add_runtime_dependency('social_stream-events', '~> 0.9.
|
14
|
+
s.add_runtime_dependency('social_stream-base', '~> 0.17.2')
|
15
|
+
s.add_runtime_dependency('social_stream-documents', '~> 0.11.5')
|
16
|
+
s.add_runtime_dependency('social_stream-events', '~> 0.9.2')
|
17
17
|
s.add_runtime_dependency('social_stream-linkser', '~> 0.7.1')
|
18
|
-
s.add_runtime_dependency('social_stream-presence', '~> 0.10.
|
18
|
+
s.add_runtime_dependency('social_stream-presence', '~> 0.10.2')
|
19
19
|
|
20
20
|
# Development Gem dependencies
|
21
21
|
#
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Default relations for Social Stream
|
2
2
|
#
|
3
|
-
# Define the default relations and permissions
|
4
|
-
# Though subjects can customize their own relations,
|
5
|
-
# to start up
|
3
|
+
# Define the default relations and permissions offered by your application
|
4
|
+
# Though subjects (user, groups, etc.) can customize their own relations,
|
5
|
+
# these are the defaults to start up with
|
6
6
|
#
|
7
7
|
# Detailed information on permissions is available at:
|
8
|
-
# http://rdoc.info/gems/social_stream/Permission
|
8
|
+
# http://rdoc.info/gems/social_stream-base/Permission
|
9
9
|
#
|
10
10
|
user:
|
11
11
|
friend:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_stream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.23.
|
4
|
+
version: 0.23.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,44 +10,44 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-03-
|
13
|
+
date: 2012-03-12 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: social_stream-base
|
17
|
-
requirement: &
|
17
|
+
requirement: &80252100 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.17.
|
22
|
+
version: 0.17.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *80252100
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: social_stream-documents
|
28
|
-
requirement: &
|
28
|
+
requirement: &80251580 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.11.
|
33
|
+
version: 0.11.5
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *80251580
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: social_stream-events
|
39
|
-
requirement: &
|
39
|
+
requirement: &80250960 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: 0.9.
|
44
|
+
version: 0.9.2
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *80250960
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: social_stream-linkser
|
50
|
-
requirement: &
|
50
|
+
requirement: &80250430 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
@@ -55,21 +55,21 @@ dependencies:
|
|
55
55
|
version: 0.7.1
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *80250430
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: social_stream-presence
|
61
|
-
requirement: &
|
61
|
+
requirement: &80249560 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ~>
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: 0.10.
|
66
|
+
version: 0.10.2
|
67
67
|
type: :runtime
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *80249560
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: capybara
|
72
|
-
requirement: &
|
72
|
+
requirement: &80248710 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
@@ -77,10 +77,10 @@ dependencies:
|
|
77
77
|
version: 0.3.9
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *80248710
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: sqlite3
|
83
|
-
requirement: &
|
83
|
+
requirement: &80247910 !ruby/object:Gem::Requirement
|
84
84
|
none: false
|
85
85
|
requirements:
|
86
86
|
- - ! '>='
|
@@ -88,10 +88,10 @@ dependencies:
|
|
88
88
|
version: '0'
|
89
89
|
type: :development
|
90
90
|
prerelease: false
|
91
|
-
version_requirements: *
|
91
|
+
version_requirements: *80247910
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
93
|
name: ruby-debug19
|
94
|
-
requirement: &
|
94
|
+
requirement: &80247380 !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
97
97
|
- - ! '>='
|
@@ -99,10 +99,10 @@ dependencies:
|
|
99
99
|
version: '0'
|
100
100
|
type: :development
|
101
101
|
prerelease: false
|
102
|
-
version_requirements: *
|
102
|
+
version_requirements: *80247380
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: rspec-rails
|
105
|
-
requirement: &
|
105
|
+
requirement: &80243750 !ruby/object:Gem::Requirement
|
106
106
|
none: false
|
107
107
|
requirements:
|
108
108
|
- - ~>
|
@@ -110,10 +110,10 @@ dependencies:
|
|
110
110
|
version: 2.8.0
|
111
111
|
type: :development
|
112
112
|
prerelease: false
|
113
|
-
version_requirements: *
|
113
|
+
version_requirements: *80243750
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
115
|
name: factory_girl
|
116
|
-
requirement: &
|
116
|
+
requirement: &80243270 !ruby/object:Gem::Requirement
|
117
117
|
none: false
|
118
118
|
requirements:
|
119
119
|
- - ~>
|
@@ -121,10 +121,10 @@ dependencies:
|
|
121
121
|
version: 1.3.2
|
122
122
|
type: :development
|
123
123
|
prerelease: false
|
124
|
-
version_requirements: *
|
124
|
+
version_requirements: *80243270
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: forgery
|
127
|
-
requirement: &
|
127
|
+
requirement: &80242790 !ruby/object:Gem::Requirement
|
128
128
|
none: false
|
129
129
|
requirements:
|
130
130
|
- - ~>
|
@@ -132,10 +132,10 @@ dependencies:
|
|
132
132
|
version: 0.4.2
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
|
-
version_requirements: *
|
135
|
+
version_requirements: *80242790
|
136
136
|
- !ruby/object:Gem::Dependency
|
137
137
|
name: ci_reporter
|
138
|
-
requirement: &
|
138
|
+
requirement: &80242410 !ruby/object:Gem::Requirement
|
139
139
|
none: false
|
140
140
|
requirements:
|
141
141
|
- - ~>
|
@@ -143,7 +143,7 @@ dependencies:
|
|
143
143
|
version: 1.6.4
|
144
144
|
type: :development
|
145
145
|
prerelease: false
|
146
|
-
version_requirements: *
|
146
|
+
version_requirements: *80242410
|
147
147
|
description: Social Stream is a Ruby on Rails engine for building social network websites.
|
148
148
|
It supports contacts, posts, file uploads, private messages and many more.
|
149
149
|
email:
|
@@ -349,7 +349,7 @@ files:
|
|
349
349
|
- base/app/assets/javascripts/toolbar.js
|
350
350
|
- base/app/assets/javascripts/users.js
|
351
351
|
- base/app/assets/stylesheets/_colors.scss
|
352
|
-
- base/app/assets/stylesheets/activities.css.scss
|
352
|
+
- base/app/assets/stylesheets/activities.css.scss.erb
|
353
353
|
- base/app/assets/stylesheets/base.css.scss
|
354
354
|
- base/app/assets/stylesheets/cheesecake.css.scss
|
355
355
|
- base/app/assets/stylesheets/contacts.css.scss
|
@@ -796,7 +796,7 @@ files:
|
|
796
796
|
- base/vendor/assets/javascripts/jquery.tipsy.js
|
797
797
|
- base/vendor/assets/javascripts/jquery.validate.js
|
798
798
|
- base/vendor/assets/javascripts/jquery.validate.old.js
|
799
|
-
- base/vendor/assets/javascripts/jquery.
|
799
|
+
- base/vendor/assets/javascripts/jquery.watermark.js
|
800
800
|
- base/vendor/assets/javascripts/superfish.js
|
801
801
|
- base/vendor/assets/stylesheets/carousel.css
|
802
802
|
- base/vendor/assets/stylesheets/chosen-sprite.png
|
@@ -863,8 +863,10 @@ files:
|
|
863
863
|
- documents/app/assets/images/btn/btn_video.png
|
864
864
|
- documents/app/assets/images/btn/btn_word.png
|
865
865
|
- documents/app/assets/images/btn/document.png
|
866
|
-
- documents/app/assets/javascripts/documents.js.erb
|
867
866
|
- documents/app/assets/javascripts/social_stream-documents.js
|
867
|
+
- documents/app/assets/javascripts/social_stream.audio.js.erb
|
868
|
+
- documents/app/assets/javascripts/social_stream.repository.js.erb
|
869
|
+
- documents/app/assets/javascripts/social_stream.video.js.erb
|
868
870
|
- documents/app/assets/stylesheets/documents.css.scss
|
869
871
|
- documents/app/assets/stylesheets/show.css.scss
|
870
872
|
- documents/app/assets/stylesheets/social_stream-documents.css
|
@@ -1005,14 +1007,17 @@ files:
|
|
1005
1007
|
- documents/vendor/assets/stylesheets/jplayer.blue.monday.video.play.png
|
1006
1008
|
- documents/vendor/assets/stylesheets/jquery.lightbox.css
|
1007
1009
|
- documents/vendor/assets/stylesheets/pbar-ani.gif
|
1010
|
+
- documents/vendor/assets/swf/Jplayer.swf
|
1008
1011
|
- events/.gitignore
|
1009
1012
|
- events/Gemfile
|
1010
1013
|
- events/README.rdoc
|
1011
1014
|
- events/Rakefile
|
1012
1015
|
- events/app/assets/images/poster.png
|
1013
|
-
- events/app/assets/javascripts/events.js.coffee
|
1014
1016
|
- events/app/assets/javascripts/social_stream-events.js
|
1017
|
+
- events/app/assets/javascripts/social_stream.calendar.js.erb
|
1018
|
+
- events/app/assets/javascripts/social_stream.event.js
|
1015
1019
|
- events/app/assets/javascripts/social_stream.events.poster.js
|
1020
|
+
- events/app/assets/javascripts/social_stream.events.tools.js.coffee
|
1016
1021
|
- events/app/assets/stylesheets/events.css.scss
|
1017
1022
|
- events/app/assets/stylesheets/social_stream-events.css
|
1018
1023
|
- events/app/controllers/events_controller.rb
|
@@ -1030,6 +1035,7 @@ files:
|
|
1030
1035
|
- events/app/views/events/destroy.js.erb
|
1031
1036
|
- events/app/views/events/edit.js.erb
|
1032
1037
|
- events/app/views/events/index.html.erb
|
1038
|
+
- events/app/views/events/index.js.erb
|
1033
1039
|
- events/app/views/rooms/_form.html.erb
|
1034
1040
|
- events/app/views/rooms/_index.html.erb
|
1035
1041
|
- events/app/views/rooms/_settings.html.erb
|
@@ -1235,6 +1241,8 @@ files:
|
|
1235
1241
|
- presence/app/assets/javascripts/presence_XmppClient.js.erb
|
1236
1242
|
- presence/app/assets/javascripts/presence_audio.js.erb
|
1237
1243
|
- presence/app/assets/javascripts/presence_game.js.erb
|
1244
|
+
- presence/app/assets/javascripts/presence_game_comunication.js.erb
|
1245
|
+
- presence/app/assets/javascripts/presence_game_interface.js.erb
|
1238
1246
|
- presence/app/assets/javascripts/presence_game_ter.js.erb
|
1239
1247
|
- presence/app/assets/javascripts/presence_notifications.js
|
1240
1248
|
- presence/app/assets/javascripts/presence_parser.js
|
@@ -1245,6 +1253,7 @@ files:
|
|
1245
1253
|
- presence/app/assets/javascripts/presence_videochat.js.erb
|
1246
1254
|
- presence/app/assets/javascripts/presence_windowManager.js
|
1247
1255
|
- presence/app/assets/javascripts/social_stream-presence.js
|
1256
|
+
- presence/app/assets/stylesheets/TresEnRaya.css
|
1248
1257
|
- presence/app/assets/stylesheets/chat.css.scss
|
1249
1258
|
- presence/app/assets/stylesheets/social_stream-presence.css
|
1250
1259
|
- presence/app/controllers/xmpp_controller.rb
|
@@ -1354,6 +1363,7 @@ files:
|
|
1354
1363
|
- presence/spec/discover.rb
|
1355
1364
|
- presence/spec/spec_helper.rb
|
1356
1365
|
- presence/vendor/assets/javascripts/TB.min.js
|
1366
|
+
- presence/vendor/assets/javascripts/jquery.gamequery-0.5.1.js
|
1357
1367
|
- presence/vendor/assets/javascripts/jquery.tools.tooltip.js
|
1358
1368
|
- presence/vendor/assets/javascripts/liquidmetal.js
|
1359
1369
|
- presence/vendor/assets/javascripts/strophe.js
|
@@ -1,81 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) 2007 Josh Bush (digitalbush.com)
|
3
|
-
*
|
4
|
-
* Permission is hereby granted, free of charge, to any person
|
5
|
-
* obtaining a copy of this software and associated documentation
|
6
|
-
* files (the "Software"), to deal in the Software without
|
7
|
-
* restriction, including without limitation the rights to use,
|
8
|
-
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
* copies of the Software, and to permit persons to whom the
|
10
|
-
* Software is furnished to do so, subject to the following
|
11
|
-
* conditions:
|
12
|
-
|
13
|
-
* The above copyright notice and this permission notice shall be
|
14
|
-
* included in all copies or substantial portions of the Software.
|
15
|
-
*
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
18
|
-
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
20
|
-
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
21
|
-
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
22
|
-
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
23
|
-
* OTHER DEALINGS IN THE SOFTWARE.
|
24
|
-
*/
|
25
|
-
|
26
|
-
/*
|
27
|
-
* Version: Beta 1
|
28
|
-
* Release: 2007-06-01
|
29
|
-
*/
|
30
|
-
(function($) {
|
31
|
-
var map=new Array();
|
32
|
-
$.Watermark = {
|
33
|
-
ShowAll:function(){
|
34
|
-
for (var i=0;i<map.length;i++){
|
35
|
-
if(map[i].obj.val()==""){
|
36
|
-
map[i].obj.val(map[i].text);
|
37
|
-
map[i].obj.css("color",map[i].WatermarkColor);
|
38
|
-
}else{
|
39
|
-
map[i].obj.css("color",map[i].DefaultColor);
|
40
|
-
}
|
41
|
-
}
|
42
|
-
},
|
43
|
-
HideAll:function(){
|
44
|
-
for (var i=0;i<map.length;i++){
|
45
|
-
if(map[i].obj.val()==map[i].text)
|
46
|
-
map[i].obj.val("");
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
$.fn.Watermark = function(text,color) {
|
52
|
-
if(!color)
|
53
|
-
color="#aaa";
|
54
|
-
return this.each(
|
55
|
-
function(){
|
56
|
-
var input=$(this);
|
57
|
-
var defaultColor=input.css("color");
|
58
|
-
map[map.length]={text:text,obj:input,DefaultColor:defaultColor,WatermarkColor:color};
|
59
|
-
function clearMessage(){
|
60
|
-
if(input.val()==text)
|
61
|
-
input.val("");
|
62
|
-
input.css("color",defaultColor);
|
63
|
-
}
|
64
|
-
|
65
|
-
function insertMessage(){
|
66
|
-
if(input.val().length==0 || input.val()==text){
|
67
|
-
input.val(text);
|
68
|
-
input.css("color",color);
|
69
|
-
}else
|
70
|
-
input.css("color",defaultColor);
|
71
|
-
}
|
72
|
-
|
73
|
-
input.focus(clearMessage);
|
74
|
-
input.blur(insertMessage);
|
75
|
-
input.change(insertMessage);
|
76
|
-
|
77
|
-
insertMessage();
|
78
|
-
}
|
79
|
-
);
|
80
|
-
};
|
81
|
-
})(jQuery);
|
@@ -1,71 +0,0 @@
|
|
1
|
-
function removePlayers(){
|
2
|
-
$('.attachment_tile').removeClass("selected");
|
3
|
-
$('.player').remove();
|
4
|
-
$('#downloadButton').remove();
|
5
|
-
}
|
6
|
-
|
7
|
-
$('#closeButton').live("click",function(){
|
8
|
-
removePlayers();
|
9
|
-
});
|
10
|
-
|
11
|
-
function hideJplayer(jplayerid){
|
12
|
-
$("#full_video_"+jplayerid).removeClass("jp-video-270p");
|
13
|
-
$("#jp_interface_"+jplayerid).hide();
|
14
|
-
$("#jp_playlist_"+jplayerid).hide();
|
15
|
-
}
|
16
|
-
|
17
|
-
function showJplayer(jplayerid){
|
18
|
-
$("#full_video_"+jplayerid).addClass("jp-video-270p");
|
19
|
-
$("#jp_interface_"+jplayerid).show();
|
20
|
-
$("#jp_playlist_"+jplayerid).show();
|
21
|
-
|
22
|
-
}
|
23
|
-
|
24
|
-
$(".video_thumbnail_play_over").livequery("click",function(){
|
25
|
-
the_id = $(this).attr('id');
|
26
|
-
showJplayer(the_id);
|
27
|
-
$(this).parent().hide();
|
28
|
-
$("#jpId"+the_id).jPlayer("play", 0);
|
29
|
-
});
|
30
|
-
|
31
|
-
$(document).ready(function(){
|
32
|
-
//if there are 6 or more commments we only show the last 5 and a link to show the rest
|
33
|
-
$("#document_comments .activity_comments").each(function(){
|
34
|
-
var comments = $(this).children(".subactivity");
|
35
|
-
if (comments.size() > 5){
|
36
|
-
$(this).prepend("<div class='hide_show_comments'><a href='#' onclick='showAllDocumentComments(\""+
|
37
|
-
$(this).attr('id') +"\"); return false;'>" + I18n.t('comment.view_all') + "(" +
|
38
|
-
comments.size() + ")</a></div><div class='space_comments'></div>");
|
39
|
-
comments.slice(0,comments.size()-5).hide();
|
40
|
-
//hide alto space_comments
|
41
|
-
$(this).children(".space_comments").slice(0,comments.size()-5).hide();
|
42
|
-
}
|
43
|
-
});
|
44
|
-
});
|
45
|
-
|
46
|
-
showAllDocumentComments = function(id){
|
47
|
-
$("#"+id).children().show("slow");
|
48
|
-
//and hide the hide_show_comments
|
49
|
-
$("#"+id).children(".hide_show_comments").hide();
|
50
|
-
};
|
51
|
-
|
52
|
-
|
53
|
-
toggleDocumentMenu = function(name){
|
54
|
-
$(".document_menu").each(function(){
|
55
|
-
console.log($(this));
|
56
|
-
if($(this).css("display")!="none"){
|
57
|
-
$(this).slideToggle("slow");
|
58
|
-
$("#" + $(this).attr('id') + "_action").removeClass("selected");
|
59
|
-
}
|
60
|
-
});
|
61
|
-
if($("#document_" + name).css("display")=="none"){
|
62
|
-
$("#document_" + name).slideToggle("slow");
|
63
|
-
$("#document_" + name + "_action").addClass("selected");
|
64
|
-
}
|
65
|
-
}
|
66
|
-
|
67
|
-
$(document).ready(function(){
|
68
|
-
$("body").screw({
|
69
|
-
loadingHTML: '<%= image_tag('loading.gif') %>'
|
70
|
-
});
|
71
|
-
});
|