e9_polls 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
data/app/models/poll.rb
CHANGED
data/config/locales/en.yml
CHANGED
data/lib/e9_polls/version.rb
CHANGED
@@ -78,19 +78,13 @@
|
|
78
78
|
|
79
79
|
var $this = $(this),
|
80
80
|
$fields = $this.closest('.nested-associations').find('.fields'),
|
81
|
-
obj
|
82
|
-
template,
|
83
|
-
index;
|
81
|
+
obj;
|
84
82
|
|
85
83
|
try {
|
86
84
|
obj = TEMPLATES[this.getAttribute('data-association')];
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
$(template).appendTo($fields);
|
92
|
-
|
93
|
-
try { $.colorbox.resize() } catch(e) {}
|
85
|
+
$(obj.template.replace(obj.rx, obj.index++)).appendTo($fields);
|
86
|
+
$.colorbox.resize();
|
87
|
+
} catch(e) { }
|
94
88
|
});
|
95
89
|
|
96
90
|
/**
|
@@ -7,7 +7,9 @@
|
|
7
7
|
.poll-answer { margin: 1em 0; clear: both; }
|
8
8
|
.poll-answer textarea { height: 3em; margin-bottom: 0; }
|
9
9
|
.poll-answer .field { margin-bottom: 0; }
|
10
|
+
|
10
11
|
form.edit_poll .actions { padding: 0.5em 0; }
|
12
|
+
.e9-poll h1 { line-height: 1.333em; }
|
11
13
|
|
12
14
|
/* Poll answers or poll percentage. */
|
13
15
|
.poll-answer-votes { display: none; }
|