restbox 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/generators/restbox/templates/javascripts/restbox.js +6 -3
- data/restbox.gemspec +2 -2
- metadata +2 -2
data/VERSION.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
* RestBox - Simple overlay to work with jQuery and Rails
|
3
|
-
* Copyright (c)
|
3
|
+
* Copyright (c) 2010
|
4
4
|
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
|
5
5
|
*/
|
6
6
|
|
@@ -35,8 +35,11 @@
|
|
35
35
|
if (options.content.length != 0) {
|
36
36
|
$('div#restbox_screen').show();
|
37
37
|
$('div#restbox_container').show();
|
38
|
-
|
39
|
-
|
38
|
+
if (options.container_class) {
|
39
|
+
$('div#restbox_container').addClass(options.container_class);
|
40
|
+
};
|
41
|
+
$('div#restbox_container div#restbox_content').removeClass(options.loadingClass).html(options.content);
|
42
|
+
$('div#restbox_container div#restbox_content').css({top: -($('div#restbox_content').height() + 100) / 2});
|
40
43
|
$('div#restbox_container div#restbox_content').animate({opacity: "100"}, 3000);
|
41
44
|
|
42
45
|
} else {
|
data/restbox.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{restbox}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Richard Millan"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2010-01-18}
|
13
13
|
s.description = %q{Simple restful ajax overlay to work with jQuery and Rails}
|
14
14
|
s.email = %q{richardiux@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Millan
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-18 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|