waterfall_bourbon_neat_rails 1.9.9.5 → 1.9.9.6
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/modal.js +9 -12
- data/lib/waterfall_bourbon_neat_rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3558ca1b49c0005971b3505f0ae59f54719c58f2
|
4
|
+
data.tar.gz: ff37c9f82d2c55811a4b3005d41d97e48dcddb9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a78c3b7773c6d37798a95cf2e44c91e661bada2cca0b45acfa9438bd6d33399e32257fb3ead672becfb79a4012c56175543a539b44cbd6e3a0e09c74b1324e3f
|
7
|
+
data.tar.gz: a935c07609f8248917626a0d490a5d12762975b6439168d19e8e6364cc81f10270e3dc54db10314b1b078183501ce0d52623f95d81b3c0ad31eb52d55e2e5484
|
@@ -37,7 +37,14 @@ var Modal = function(options){
|
|
37
37
|
|
38
38
|
Modal.prototype.setContentText = function(text){
|
39
39
|
// can set a text for the content section, we can have some details for it
|
40
|
-
this.$content_text.
|
40
|
+
this.$content_text.text(text);
|
41
|
+
|
42
|
+
return this;
|
43
|
+
}
|
44
|
+
|
45
|
+
Modal.prototype.setContentHtml = function(html, cssClass){
|
46
|
+
// can set a html piece for the content section, we can have some details for it
|
47
|
+
this.$content_text.addClass(cssClass).html(html);
|
41
48
|
|
42
49
|
return this;
|
43
50
|
}
|
@@ -74,17 +81,7 @@ var Modal = function(options){
|
|
74
81
|
Modal.prototype.addListener = function(method){
|
75
82
|
if(typeof method == "function")
|
76
83
|
method();
|
77
|
-
}
|
78
|
-
|
79
|
-
//clear elements and listeners
|
80
|
-
Modal.prototype.clearEverything = function(){
|
81
|
-
this.$header.html();
|
82
|
-
this.$content_header.html();
|
83
|
-
this.$content_text.html();
|
84
|
-
this.$content_other_html.html();
|
85
|
-
this.$footer.html();
|
86
|
-
}
|
87
|
-
|
84
|
+
}
|
88
85
|
|
89
86
|
if(arguments.callee._singletonInstance)
|
90
87
|
return arguments.callee._singletonInstance;
|