file_share 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/models/file_attachment.rb +0 -5
- data/public/javascripts/file_share/file_share.js +0 -15
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
@@ -15,16 +15,11 @@ class FileAttachment < ActiveRecord::Base
|
|
15
15
|
|
16
16
|
validates_presence_of :name, :filepath
|
17
17
|
|
18
|
-
# belongs_to :event
|
19
18
|
belongs_to :attachable, :polymorphic => true
|
20
19
|
|
21
|
-
#before_validation_on_create :autofill_blank_name
|
22
|
-
#before_validation_on_create :save_to_folder_path
|
23
20
|
before_validation :autofill_blank_name, :on => :create
|
24
21
|
before_validation :save_to_folder_path, :on => :create
|
25
22
|
before_save :normalize_attachable_fields
|
26
|
-
# before_validation_on_update :autofill_blank_name, :if => :file_uploaded?
|
27
|
-
# before_validation_on_update :save_to_folder_path, :if => :file_uploaded?
|
28
23
|
before_destroy :move_file_to_trash_folder!
|
29
24
|
|
30
25
|
attr_accessor :uploaded_file
|
@@ -1,18 +1,3 @@
|
|
1
|
-
// use to give the preview of details for an event below a calendar
|
2
|
-
var updateEventDescription = function(event, jsEvent) {
|
3
|
-
$("#event_quick_description")[0].innerHTML = "";
|
4
|
-
$("#event_quick_description").append(
|
5
|
-
$("<h3/>").append(
|
6
|
-
$('<a/>', { text : event.title, href : event.url })
|
7
|
-
)
|
8
|
-
);
|
9
|
-
$("#event_quick_description")[0].innerHTML += "Location: " + event.location + "<br/>";
|
10
|
-
$("#event_quick_description")[0].innerHTML += event.description;
|
11
|
-
|
12
|
-
$("#event_quick_description").show();
|
13
|
-
}
|
14
|
-
|
15
|
-
|
16
1
|
jQuery(function($) {
|
17
2
|
$('a.show_hide_link').attach(ShowHideLink);
|
18
3
|
});
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: file_share
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jason LaPier
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-12-
|
19
|
+
date: 2010-12-23 00:00:00 -08:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|