marxjs-rails 0.3.0 → 0.3.1
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/marx.js +3 -3
- data/app/assets/stylesheets/marx.css +3 -3
- data/lib/marxjs/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 381c2ff979b72882947ea694b4ad76800b03abc7
|
|
4
|
+
data.tar.gz: 764a73da444fb5c5088539ab2b2c02f93450e20f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1eea50d44ba704fc488d1511ac3a34a3311a127652fcbbffb4bcb8c344520cf558e97edcc24f617c336d6a34048db18575fa8ae523555619abb15803c266c02a
|
|
7
|
+
data.tar.gz: f4497efb608dc2b9ab331209b35132065f283a9bdeb4a6cc27a06fb0e280deef4ba375bbed94aa79901b11eaf3fd7e6df8e50ba3e8ff51302dcfcfddef467f05
|
|
@@ -35,7 +35,7 @@ $.extend(Marx.prototype, {
|
|
|
35
35
|
create_controls: function() {
|
|
36
36
|
var open_controls,
|
|
37
37
|
_this = this;
|
|
38
|
-
$('body').append("<div class=\"marx-js-controls " + this.settings.position + "\">\n <link rel=\"stylesheet\" href=\"
|
|
38
|
+
$('body').append("<div class=\"marx-js-controls " + this.settings.position + "\">\n <link rel=\"stylesheet\" href=\"/assets/marx.css\">\n</div>");
|
|
39
39
|
this.$el = $('.marx-js-controls');
|
|
40
40
|
open_controls = this.settings.controls !== 'toggle-all' ? "<a href='#open-controls' class='open-controls'>Marx.js</a>" : "<div class=\"open-controls\">\n <a href=\"#advanced-controls\" class=\"advanced-controls\" title=\"Show Advanced Controls\">Advanced Controls</a>\n <a href=\"#standard-controls\" class=\"standard-controls\" title=\"Show Standard Controls\">Standard Controls</a>\n <a href=\"#populate-whole-form\" class=\"quick-populate\" title=\"Populate Whole Form\">Marx.js</a>\n</div>";
|
|
41
41
|
this.$el.append(open_controls);
|
|
@@ -101,7 +101,7 @@ $.extend(Marx.prototype, {
|
|
|
101
101
|
_this = this;
|
|
102
102
|
advanced = "<div class=\"marx-advanced-controls\">\n <h4>Advanced Options</h4>\n</div>";
|
|
103
103
|
this.$('.open-controls').before(advanced);
|
|
104
|
-
_ref = [['clear-form', 'Clear Form'], ['populate-submit', 'Populate and Submit'], ['show-hidden', '<span data-text="Hide">Show</span> Hidden Fields'], ['expand-select', '<span data-text="Collapse">Expand</span> Select Boxes'], ['random-image', 'Download Random Image'], ['generate-ipsum',
|
|
104
|
+
_ref = [['clear-form', 'Clear Form'], ['populate-submit', 'Populate and Submit'], ['show-hidden', '<span data-text="Hide">Show</span> Hidden Fields'], ['expand-select', '<span data-text="Collapse">Expand</span> Select Boxes'], ['random-image', 'Download Random Image'], ['generate-ipsum', "Generate Ipsum <p class='ipsum'><input type='number' value='" + this.settings.ipsum + "' max=''" + this.settings.max_ipsum + "' /> Paragraphs</p>"]];
|
|
105
105
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
|
106
106
|
action = _ref[_i];
|
|
107
107
|
$('.marx-advanced-controls').append(this.build_action(action));
|
|
@@ -114,7 +114,7 @@ $.extend(Marx.prototype, {
|
|
|
114
114
|
});
|
|
115
115
|
},
|
|
116
116
|
build_action: function(action) {
|
|
117
|
-
return "<div class=\"marx-js-group\">\n <
|
|
117
|
+
return "<div class=\"marx-js-group\">\n <a href=\"#" + action[0] + "\" class=\"" + action[0] + "\">Go</a>\n <p>" + action[1] + "</p>\n</div>";
|
|
118
118
|
},
|
|
119
119
|
set_toggle_advanced: function() {
|
|
120
120
|
var _this = this;
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
position: absolute;
|
|
87
87
|
display: block;
|
|
88
88
|
width: 195px;
|
|
89
|
-
background-image: url(
|
|
89
|
+
background-image: url(groucho.png);
|
|
90
90
|
background-color: #ddd;
|
|
91
91
|
background-repeat: no-repeat;
|
|
92
92
|
background-position: 5px center;
|
|
@@ -121,9 +121,9 @@
|
|
|
121
121
|
background-size: 24px 24px;
|
|
122
122
|
text-align: left; }
|
|
123
123
|
.marx-js-controls .open-controls a.standard-controls {
|
|
124
|
-
background-image: url(
|
|
124
|
+
background-image: url(standard.png); }
|
|
125
125
|
.marx-js-controls .open-controls a.advanced-controls {
|
|
126
|
-
background-image: url(
|
|
126
|
+
background-image: url(advanced.png); }
|
|
127
127
|
|
|
128
128
|
.bottom-right, .bottom-left {
|
|
129
129
|
bottom: 0;
|
data/lib/marxjs/rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: marxjs-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Keith Raymond
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-12-
|
|
11
|
+
date: 2014-12-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|