infopark_rails_connector 6.9.1.3.22208381 → 6.9.2.1.125136549

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. data/README +2 -14
  2. data/app/assets/javascripts/infopark_rails_connector.js.erb +0 -3
  3. data/app/assets/stylesheets/infopark_rails_connector.css.erb +0 -4
  4. data/app/controllers/rails_connector/default_cms_controller.rb +0 -1
  5. data/app/helpers/rails_connector/default_cms_helper.rb +0 -6
  6. data/app/helpers/rails_connector/layout_helper.rb +2 -7
  7. data/app/views/cms/index.html.erb +0 -2
  8. data/app/views/errors/410_gone.html.erb +2 -2
  9. data/config/ca-bundle.crt +1 -1
  10. data/config/cms_routes.rb +2 -1
  11. data/config/locales/de.rails_connector.views.yml +0 -78
  12. data/config/locales/en.rails_connector.views.yml +0 -78
  13. data/lib/generators/rails_connector/install/install_generator.rb +0 -1
  14. data/lib/generators/rails_connector/install/templates/initializers/rails_connector.rb +0 -27
  15. data/lib/rails_connector/cms_accessible.rb +0 -4
  16. data/lib/rails_connector/configuration.rb +9 -72
  17. data/lib/rails_connector/engine.rb +0 -18
  18. metadata +3 -181
  19. data/app/assets/images/ratings/star.gif +0 -0
  20. data/app/assets/images/time_machine/calendar-menuarrow.gif +0 -0
  21. data/app/assets/images/time_machine/calendar_bg.png +0 -0
  22. data/app/assets/images/time_machine/icon.png +0 -0
  23. data/app/assets/images/time_machine/slider_bg.png +0 -0
  24. data/app/assets/images/time_machine/slider_handle.png +0 -0
  25. data/app/assets/images/time_machine/timemachine_bg.png +0 -0
  26. data/app/assets/javascripts/comments.js +0 -29
  27. data/app/assets/javascripts/initializer.js +0 -9
  28. data/app/assets/javascripts/ratings.js +0 -26
  29. data/app/assets/javascripts/time_machine.js +0 -8
  30. data/app/assets/javascripts/time_machine/calendar-setup.js +0 -200
  31. data/app/assets/javascripts/time_machine/calendar.js +0 -1806
  32. data/app/assets/javascripts/time_machine/lang/calendar-de.js +0 -127
  33. data/app/assets/javascripts/time_machine/lang/calendar-en.js +0 -127
  34. data/app/assets/javascripts/time_machine/lang/calendar-es.js +0 -129
  35. data/app/assets/javascripts/time_machine/lang/calendar-fr.js +0 -125
  36. data/app/assets/javascripts/time_machine/lang/calendar-it.js +0 -124
  37. data/app/assets/javascripts/time_machine/slider.js +0 -278
  38. data/app/assets/stylesheets/ratings.css +0 -97
  39. data/app/assets/stylesheets/time_machine.css +0 -6
  40. data/app/assets/stylesheets/time_machine/time_machine.css +0 -292
  41. data/app/controllers/comments_controller.rb +0 -6
  42. data/app/controllers/crm_form_controller.rb +0 -6
  43. data/app/controllers/rails_connector/default_comments_controller.rb +0 -70
  44. data/app/controllers/rails_connector/default_crm_form_controller.rb +0 -167
  45. data/app/controllers/rails_connector/default_ratings_controller.rb +0 -84
  46. data/app/controllers/rails_connector/default_rss_controller.rb +0 -30
  47. data/app/controllers/rails_connector/default_search_controller.rb +0 -60
  48. data/app/controllers/rails_connector/default_user_controller.rb +0 -269
  49. data/app/controllers/rails_connector/time_machine_controller.rb +0 -48
  50. data/app/controllers/ratings_controller.rb +0 -6
  51. data/app/controllers/rss_controller.rb +0 -6
  52. data/app/controllers/search_controller.rb +0 -6
  53. data/app/controllers/seo_sitemap_controller.rb +0 -12
  54. data/app/controllers/user_controller.rb +0 -6
  55. data/app/helpers/crm_form_helper.rb +0 -6
  56. data/app/helpers/rails_connector/default_crm_form_helper.rb +0 -58
  57. data/app/helpers/rails_connector/default_ratings_helper.rb +0 -38
  58. data/app/helpers/rails_connector/default_user_helper.rb +0 -90
  59. data/app/helpers/rails_connector/error_messages_helper.rb +0 -23
  60. data/app/helpers/rails_connector/link_helper.rb +0 -93
  61. data/app/helpers/rails_connector/mandatory_label_helper.rb +0 -10
  62. data/app/helpers/rails_connector/menu_helper.rb +0 -73
  63. data/app/helpers/rails_connector/micronav_helper.rb +0 -109
  64. data/app/helpers/rails_connector/seo_helper.rb +0 -44
  65. data/app/helpers/rails_connector/time_machine_helper.rb +0 -26
  66. data/app/helpers/rails_connector/tracking_helper.rb +0 -32
  67. data/app/helpers/ratings_helper.rb +0 -4
  68. data/app/helpers/user_helper.rb +0 -6
  69. data/app/mailers/confirmation_mailer.rb +0 -15
  70. data/app/models/crm_form.rb +0 -2
  71. data/app/models/rails_connector/default_comment.rb +0 -30
  72. data/app/models/rails_connector/default_rating.rb +0 -22
  73. data/app/views/cms/_comments.html.erb +0 -44
  74. data/app/views/cms/_rating.html.erb +0 -31
  75. data/app/views/comments/_comment.html.erb +0 -28
  76. data/app/views/confirmation_mailer/register_confirmation.erb +0 -5
  77. data/app/views/confirmation_mailer/reset_password.erb +0 -5
  78. data/app/views/crm_form/_flash_messages.html.erb +0 -11
  79. data/app/views/crm_form/_form.html.erb +0 -17
  80. data/app/views/crm_form/confirmation.html.erb +0 -3
  81. data/app/views/crm_form/index.html.erb +0 -5
  82. data/app/views/crm_form/not_logged_in.html.erb +0 -1
  83. data/app/views/layouts/rails_connector/time_machine.html.erb +0 -12
  84. data/app/views/rails_connector/time_machine/index.html.erb +0 -88
  85. data/app/views/rss/_item.rss.builder +0 -11
  86. data/app/views/rss/index.rss.builder +0 -11
  87. data/app/views/search/_hit.html.erb +0 -11
  88. data/app/views/search/_hits.html.erb +0 -11
  89. data/app/views/search/_mini_panel.html.erb +0 -4
  90. data/app/views/search/_pagination.html.erb +0 -5
  91. data/app/views/search/_panel.html.erb +0 -4
  92. data/app/views/search/search.html.erb +0 -12
  93. data/app/views/seo_sitemap/show.xml.builder +0 -16
  94. data/app/views/user/_flash_messages.html.erb +0 -11
  95. data/app/views/user/edit.html.erb +0 -6
  96. data/app/views/user/edit_password.html.erb +0 -11
  97. data/app/views/user/forgot_password.html.erb +0 -7
  98. data/app/views/user/login.html.erb +0 -15
  99. data/app/views/user/new.html.erb +0 -13
  100. data/app/views/user/profile.html.erb +0 -8
  101. data/app/views/user/register_pending.html.erb +0 -1
  102. data/app/views/user/set_password.html.erb +0 -14
  103. data/config/locales/de.rails_connector.controllers.yml +0 -28
  104. data/config/locales/de.rails_connector.helpers.yml +0 -9
  105. data/config/locales/de.rails_connector.models.yml +0 -8
  106. data/config/locales/en.rails_connector.controllers.yml +0 -28
  107. data/config/locales/en.rails_connector.helpers.yml +0 -9
  108. data/config/locales/en.rails_connector.models.yml +0 -8
  109. data/config/routes.rb +0 -31
  110. data/lib/generators/rails_connector/comments/comments_generator.rb +0 -20
  111. data/lib/generators/rails_connector/comments/templates/migration.rb +0 -16
  112. data/lib/generators/rails_connector/install/templates/initializers/crm_connector.rb +0 -22
  113. data/lib/generators/rails_connector/ratings/ratings_generator.rb +0 -20
  114. data/lib/generators/rails_connector/ratings/templates/migration.rb +0 -14
  115. data/lib/rails_connector/commentable.rb +0 -23
  116. data/lib/rails_connector/configuration/google_analytics.rb +0 -29
  117. data/lib/rails_connector/configuration/rss.rb +0 -46
  118. data/lib/rails_connector/crm.rb +0 -282
  119. data/lib/rails_connector/googlebot_checker.rb +0 -46
  120. data/lib/rails_connector/liquid_support.rb +0 -25
  121. data/lib/rails_connector/liquid_support/field_value_drop.rb +0 -22
  122. data/lib/rails_connector/liquid_support/general_helper_tag.rb +0 -44
  123. data/lib/rails_connector/liquid_support/link_drop.rb +0 -22
  124. data/lib/rails_connector/liquid_support/liquid_template_handler.rb +0 -162
  125. data/lib/rails_connector/liquid_support/named_object_drop.rb +0 -14
  126. data/lib/rails_connector/liquid_support/obj_drop.rb +0 -43
  127. data/lib/rails_connector/liquid_support/obj_filters.rb +0 -77
  128. data/lib/rails_connector/rateable.rb +0 -57
  129. data/lib/rails_connector/seo.rb +0 -52
  130. data/lib/rails_connector/ses.rb +0 -81
  131. data/lib/rails_connector/syndicateable.rb +0 -11
  132. data/lib/search_request.rb +0 -2
@@ -1,124 +0,0 @@
1
- // ** I18N
2
-
3
- // Calendar IT language
4
- // Author: Mihai Bazon, <mihai_bazon@yahoo.com>
5
- // Translator: Fabio Di Bernardini, <altraqua@email.it>
6
- // Encoding: utf-8
7
- // Distributed under the same terms as the calendar itself.
8
-
9
- // For translators: please use UTF-8 if possible. We strongly believe that
10
- // Unicode is the answer to a real internationalized world. Also please
11
- // include your contact information in the header, as can be seen above.
12
-
13
- // full day names
14
- Calendar._DN = new Array
15
- ("Domenica",
16
- "Lunedì",
17
- "Martedì",
18
- "Mercoledì",
19
- "Giovedì",
20
- "Venerdì",
21
- "Sabato",
22
- "Domenica");
23
-
24
- // Please note that the following array of short day names (and the same goes
25
- // for short month names, _SMN) isn't absolutely necessary. We give it here
26
- // for exemplification on how one can customize the short day names, but if
27
- // they are simply the first N letters of the full name you can simply say:
28
- //
29
- // Calendar._SDN_len = N; // short day name length
30
- // Calendar._SMN_len = N; // short month name length
31
- //
32
- // If N = 3 then this is not needed either since we assume a value of 3 if not
33
- // present, to be compatible with translation files that were written before
34
- // this feature.
35
-
36
- // short day names
37
- Calendar._SDN = new Array
38
- ("Dom",
39
- "Lun",
40
- "Mar",
41
- "Mer",
42
- "Gio",
43
- "Ven",
44
- "Sab",
45
- "Dom");
46
-
47
- // full month names
48
- Calendar._MN = new Array
49
- ("Gennaio",
50
- "Febbraio",
51
- "Marzo",
52
- "Aprile",
53
- "Maggio",
54
- "Giugno",
55
- "Luglio",
56
- "Augosto",
57
- "Settembre",
58
- "Ottobre",
59
- "Novembre",
60
- "Dicembre");
61
-
62
- // short month names
63
- Calendar._SMN = new Array
64
- ("Gen",
65
- "Feb",
66
- "Mar",
67
- "Apr",
68
- "Mag",
69
- "Giu",
70
- "Lug",
71
- "Ago",
72
- "Set",
73
- "Ott",
74
- "Nov",
75
- "Dic");
76
-
77
- // tooltips
78
- Calendar._TT = {};
79
- Calendar._TT["INFO"] = "Informazioni sul calendario";
80
-
81
- Calendar._TT["ABOUT"] =
82
- "DHTML Date/Time Selector\n" +
83
- "(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-)
84
- "Per gli aggiornamenti: http://www.dynarch.com/projects/calendar/\n" +
85
- "Distribuito sotto licenza GNU LGPL. Vedi http://gnu.org/licenses/lgpl.html per i dettagli." +
86
- "\n\n" +
87
- "Selezione data:\n" +
88
- "- Usa \xab, \xbb per selezionare l'anno\n" +
89
- "- Usa " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " per i mesi\n" +
90
- "- Tieni premuto a lungo il mouse per accedere alle funzioni di selezione veloce.";
91
- Calendar._TT["ABOUT_TIME"] = "\n\n" +
92
- "Selezione orario:\n" +
93
- "- Clicca sul numero per incrementarlo\n" +
94
- "- o Shift+click per decrementarlo\n" +
95
- "- o click e sinistra o destra per variarlo.";
96
-
97
- Calendar._TT["PREV_YEAR"] = "Anno prec.(clicca a lungo per il menù)";
98
- Calendar._TT["PREV_MONTH"] = "Mese prec. (clicca a lungo per il menù)";
99
- Calendar._TT["GO_TODAY"] = "Oggi";
100
- Calendar._TT["NEXT_MONTH"] = "Pross. mese (clicca a lungo per il menù)";
101
- Calendar._TT["NEXT_YEAR"] = "Pross. anno (clicca a lungo per il menù)";
102
- Calendar._TT["SEL_DATE"] = "Seleziona data";
103
- Calendar._TT["DRAG_TO_MOVE"] = "Trascina per spostarlo";
104
- Calendar._TT["PART_TODAY"] = " (oggi)";
105
-
106
- // the following is to inform that "%s" is to be the first day of week
107
- // %s will be replaced with the day name.
108
- Calendar._TT["DAY_FIRST"] = "Mostra prima %s";
109
-
110
- // This may be locale-dependent. It specifies the week-end days, as an array
111
- // of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1
112
- // means Monday, etc.
113
- Calendar._TT["WEEKEND"] = "0,6";
114
-
115
- Calendar._TT["CLOSE"] = "Chiudi";
116
- Calendar._TT["TODAY"] = "Oggi";
117
- Calendar._TT["TIME_PART"] = "(Shift-)Click o trascina per cambiare il valore";
118
-
119
- // date formats
120
- Calendar._TT["DEF_DATE_FORMAT"] = "%d-%m-%Y";
121
- Calendar._TT["TT_DATE_FORMAT"] = "%a:%b:%e";
122
-
123
- Calendar._TT["WK"] = "set";
124
- Calendar._TT["TIME"] = "Ora:";
@@ -1,278 +0,0 @@
1
- // script.aculo.us slider.js v1.7.0, Fri Jan 19 19:16:36 CET 2007
2
-
3
- // Copyright (c) 2005, 2006 Marty Haught, Thomas Fuchs
4
- //
5
- // script.aculo.us is freely distributable under the terms of an MIT-style license.
6
- // For details, see the script.aculo.us web site: http://script.aculo.us/
7
-
8
- if(!Control) var Control = {};
9
- Control.Slider = Class.create();
10
-
11
- // options:
12
- // axis: 'vertical', or 'horizontal' (default)
13
- //
14
- // callbacks:
15
- // onChange(value)
16
- // onSlide(value)
17
- Control.Slider.prototype = {
18
- initialize: function(handle, track, options) {
19
- var slider = this;
20
-
21
- if(handle instanceof Array) {
22
- this.handles = handle.collect( function(e) { return $(e) });
23
- } else {
24
- this.handles = [$(handle)];
25
- }
26
-
27
- this.track = $(track);
28
- this.options = options || {};
29
-
30
- this.axis = this.options.axis || 'horizontal';
31
- this.increment = this.options.increment || 1;
32
- this.step = parseInt(this.options.step || '1');
33
- this.range = this.options.range || $R(0,1);
34
-
35
- this.value = 0; // assure backwards compat
36
- this.values = this.handles.map( function() { return 0 });
37
- this.spans = this.options.spans ? this.options.spans.map(function(s){ return $(s) }) : false;
38
- this.options.startSpan = $(this.options.startSpan || null);
39
- this.options.endSpan = $(this.options.endSpan || null);
40
-
41
- this.restricted = this.options.restricted || false;
42
-
43
- this.maximum = this.options.maximum || this.range.end;
44
- this.minimum = this.options.minimum || this.range.start;
45
-
46
- // Will be used to align the handle onto the track, if necessary
47
- this.alignX = parseInt(this.options.alignX || '0');
48
- this.alignY = parseInt(this.options.alignY || '0');
49
-
50
- this.trackLength = this.maximumOffset() - this.minimumOffset();
51
-
52
- this.handleLength = this.isVertical() ?
53
- (this.handles[0].offsetHeight != 0 ?
54
- this.handles[0].offsetHeight : this.handles[0].style.height.replace(/px$/,"")) :
55
- (this.handles[0].offsetWidth != 0 ? this.handles[0].offsetWidth :
56
- this.handles[0].style.width.replace(/px$/,""));
57
-
58
- this.active = false;
59
- this.dragging = false;
60
- this.disabled = false;
61
-
62
- if(this.options.disabled) this.setDisabled();
63
-
64
- // Allowed values array
65
- this.allowedValues = this.options.values ? this.options.values.sortBy(Prototype.K) : false;
66
- if(this.allowedValues) {
67
- this.minimum = this.allowedValues.min();
68
- this.maximum = this.allowedValues.max();
69
- }
70
-
71
- this.eventMouseDown = this.startDrag.bindAsEventListener(this);
72
- this.eventMouseUp = this.endDrag.bindAsEventListener(this);
73
- this.eventMouseMove = this.update.bindAsEventListener(this);
74
-
75
- // Initialize handles in reverse (make sure first handle is active)
76
- this.handles.each( function(h,i) {
77
- i = slider.handles.length-1-i;
78
- slider.setValue(parseFloat(
79
- (slider.options.sliderValue instanceof Array ?
80
- slider.options.sliderValue[i] : slider.options.sliderValue) ||
81
- slider.range.start), i);
82
- Element.makePositioned(h); // fix IE
83
- Event.observe(h, "mousedown", slider.eventMouseDown);
84
- });
85
-
86
- Event.observe(this.track, "mousedown", this.eventMouseDown);
87
- Event.observe(document, "mouseup", this.eventMouseUp);
88
- Event.observe(document, "mousemove", this.eventMouseMove);
89
-
90
- this.initialized = true;
91
- },
92
- dispose: function() {
93
- var slider = this;
94
- Event.stopObserving(this.track, "mousedown", this.eventMouseDown);
95
- Event.stopObserving(document, "mouseup", this.eventMouseUp);
96
- Event.stopObserving(document, "mousemove", this.eventMouseMove);
97
- this.handles.each( function(h) {
98
- Event.stopObserving(h, "mousedown", slider.eventMouseDown);
99
- });
100
- },
101
- setDisabled: function(){
102
- this.disabled = true;
103
- },
104
- setEnabled: function(){
105
- this.disabled = false;
106
- },
107
- getNearestValue: function(value){
108
- if(this.allowedValues){
109
- if(value >= this.allowedValues.max()) return(this.allowedValues.max());
110
- if(value <= this.allowedValues.min()) return(this.allowedValues.min());
111
-
112
- var offset = Math.abs(this.allowedValues[0] - value);
113
- var newValue = this.allowedValues[0];
114
- this.allowedValues.each( function(v) {
115
- var currentOffset = Math.abs(v - value);
116
- if(currentOffset <= offset){
117
- newValue = v;
118
- offset = currentOffset;
119
- }
120
- });
121
- return newValue;
122
- }
123
- if(value > this.range.end) return this.range.end;
124
- if(value < this.range.start) return this.range.start;
125
- return value;
126
- },
127
- setValue: function(sliderValue, handleIdx){
128
- if(!this.active) {
129
- this.activeHandleIdx = handleIdx || 0;
130
- this.activeHandle = this.handles[this.activeHandleIdx];
131
- this.updateStyles();
132
- }
133
- handleIdx = handleIdx || this.activeHandleIdx || 0;
134
- if(this.initialized && this.restricted) {
135
- if((handleIdx>0) && (sliderValue<this.values[handleIdx-1]))
136
- sliderValue = this.values[handleIdx-1];
137
- if((handleIdx < (this.handles.length-1)) && (sliderValue>this.values[handleIdx+1]))
138
- sliderValue = this.values[handleIdx+1];
139
- }
140
- sliderValue = this.getNearestValue(sliderValue);
141
- this.values[handleIdx] = sliderValue;
142
- this.value = this.values[0]; // assure backwards compat
143
-
144
- this.handles[handleIdx].style[this.isVertical() ? 'top' : 'left'] =
145
- this.translateToPx(sliderValue);
146
-
147
- this.drawSpans();
148
- if(!this.dragging || !this.event) this.updateFinished();
149
- },
150
- setValueBy: function(delta, handleIdx) {
151
- this.setValue(this.values[handleIdx || this.activeHandleIdx || 0] + delta,
152
- handleIdx || this.activeHandleIdx || 0);
153
- },
154
- translateToPx: function(value) {
155
- return Math.round(
156
- ((this.trackLength-this.handleLength)/(this.range.end-this.range.start)) *
157
- (value - this.range.start)) + "px";
158
- },
159
- translateToValue: function(offset) {
160
- return ((offset/(this.trackLength-this.handleLength) *
161
- (this.range.end-this.range.start)) + this.range.start);
162
- },
163
- getRange: function(range) {
164
- var v = this.values.sortBy(Prototype.K);
165
- range = range || 0;
166
- return $R(v[range],v[range+1]);
167
- },
168
- minimumOffset: function(){
169
- return(this.isVertical() ? this.alignY : this.alignX);
170
- },
171
- maximumOffset: function(){
172
- return(this.isVertical() ?
173
- (this.track.offsetHeight != 0 ? this.track.offsetHeight :
174
- this.track.style.height.replace(/px$/,"")) - this.alignY :
175
- (this.track.offsetWidth != 0 ? this.track.offsetWidth :
176
- this.track.style.width.replace(/px$/,"")) - this.alignY);
177
- },
178
- isVertical: function(){
179
- return (this.axis == 'vertical');
180
- },
181
- drawSpans: function() {
182
- var slider = this;
183
- if(this.spans)
184
- $R(0, this.spans.length-1).each(function(r) { slider.setSpan(slider.spans[r], slider.getRange(r)) });
185
- if(this.options.startSpan)
186
- this.setSpan(this.options.startSpan,
187
- $R(0, this.values.length>1 ? this.getRange(0).min() : this.value ));
188
- if(this.options.endSpan)
189
- this.setSpan(this.options.endSpan,
190
- $R(this.values.length>1 ? this.getRange(this.spans.length-1).max() : this.value, this.maximum));
191
- },
192
- setSpan: function(span, range) {
193
- if(this.isVertical()) {
194
- span.style.top = this.translateToPx(range.start);
195
- span.style.height = this.translateToPx(range.end - range.start + this.range.start);
196
- } else {
197
- span.style.left = this.translateToPx(range.start);
198
- span.style.width = this.translateToPx(range.end - range.start + this.range.start);
199
- }
200
- },
201
- updateStyles: function() {
202
- this.handles.each( function(h){ Element.removeClassName(h, 'selected') });
203
- Element.addClassName(this.activeHandle, 'selected');
204
- },
205
- startDrag: function(event) {
206
- if(Event.isLeftClick(event)) {
207
- if(!this.disabled){
208
- this.active = true;
209
-
210
- var handle = Event.element(event);
211
- var pointer = [Event.pointerX(event), Event.pointerY(event)];
212
- var track = handle;
213
- if(track==this.track) {
214
- var offsets = Position.cumulativeOffset(this.track);
215
- this.event = event;
216
- this.setValue(this.translateToValue(
217
- (this.isVertical() ? pointer[1]-offsets[1] : pointer[0]-offsets[0])-(this.handleLength/2)
218
- ));
219
- var offsets = Position.cumulativeOffset(this.activeHandle);
220
- this.offsetX = (pointer[0] - offsets[0]);
221
- this.offsetY = (pointer[1] - offsets[1]);
222
- } else {
223
- // find the handle (prevents issues with Safari)
224
- while((this.handles.indexOf(handle) == -1) && handle.parentNode)
225
- handle = handle.parentNode;
226
-
227
- if(this.handles.indexOf(handle)!=-1) {
228
- this.activeHandle = handle;
229
- this.activeHandleIdx = this.handles.indexOf(this.activeHandle);
230
- this.updateStyles();
231
-
232
- var offsets = Position.cumulativeOffset(this.activeHandle);
233
- this.offsetX = (pointer[0] - offsets[0]);
234
- this.offsetY = (pointer[1] - offsets[1]);
235
- }
236
- }
237
- }
238
- Event.stop(event);
239
- }
240
- },
241
- update: function(event) {
242
- if(this.active) {
243
- if(!this.dragging) this.dragging = true;
244
- this.draw(event);
245
- // fix AppleWebKit rendering
246
- if(navigator.appVersion.indexOf('AppleWebKit')>0) window.scrollBy(0,0);
247
- Event.stop(event);
248
- }
249
- },
250
- draw: function(event) {
251
- var pointer = [Event.pointerX(event), Event.pointerY(event)];
252
- var offsets = Position.cumulativeOffset(this.track);
253
- pointer[0] -= this.offsetX + offsets[0];
254
- pointer[1] -= this.offsetY + offsets[1];
255
- this.event = event;
256
- this.setValue(this.translateToValue( this.isVertical() ? pointer[1] : pointer[0] ));
257
- if(this.initialized && this.options.onSlide)
258
- this.options.onSlide(this.values.length>1 ? this.values : this.value, this);
259
- },
260
- endDrag: function(event) {
261
- if(this.active && this.dragging) {
262
- this.finishDrag(event, true);
263
- Event.stop(event);
264
- }
265
- this.active = false;
266
- this.dragging = false;
267
- },
268
- finishDrag: function(event, success) {
269
- this.active = false;
270
- this.dragging = false;
271
- this.updateFinished();
272
- },
273
- updateFinished: function() {
274
- if(this.initialized && this.options.onChange)
275
- this.options.onChange(this.values.length>1 ? this.values : this.value, this);
276
- this.event = null;
277
- }
278
- }
@@ -1,97 +0,0 @@
1
- /**
2
- * Star ratings
3
- * (en) Styles for the star rating feature
4
- * (de) Stile fuer die Bewertung mit Sternchen
5
- *
6
- * @section star-rating
7
- */
8
-
9
- #starRating { position:relative;}
10
- #starRating_label {width:120px;text-align:center; margin-bottom:4px; color:#FFCC00;}
11
- .star-rating,
12
- .star-rating a:hover,
13
- .star-rating a:active,
14
- .star-rating a:focus,
15
- .star-rating .current-rating{
16
- background: url(ratings/star.gif) left -1000px repeat-x;
17
- }
18
- .star-rating{
19
- position:relative;
20
- width:125px;
21
- height:25px;
22
- overflow:hidden;
23
- list-style:none;
24
- margin:0;
25
- padding:0;
26
- background-position: left top;
27
- }
28
- .star-rating li{
29
- display: inline;
30
- padding:0;
31
- margin:0;
32
- }
33
- .star-rating a,
34
- .star-rating .current-rating{
35
- position:absolute;
36
- top:0;
37
- left:0;
38
- text-indent:-1000em;
39
- height:25px;
40
- line-height:25px;
41
- outline:none;
42
- overflow:hidden;
43
- border: none;
44
-
45
- }
46
- .star-rating a:hover,
47
- .star-rating a:active,
48
- .star-rating a:focus{
49
- background-position: left bottom;
50
- }
51
- .star-rating a.one-star{
52
- width:20%;
53
- z-index:6;
54
- }
55
- .star-rating a.two-stars{
56
- width:40%;
57
- z-index:5;
58
- }
59
- .star-rating a.three-stars{
60
- width:60%;
61
- z-index:4;
62
- }
63
- .star-rating a.four-stars{
64
- width:80%;
65
- z-index:3;
66
- }
67
- .star-rating a.five-stars{
68
- width:100%;
69
- z-index:2;
70
- }
71
- .star-rating .current-rating{
72
- z-index:1;
73
- background-position: left center;
74
- }
75
-
76
- /* for an inline rater */
77
- .inline-rating{
78
- display:-moz-inline-block;
79
- display:-moz-inline-box;
80
- display:inline-block;
81
- vertical-align: middle;
82
- }
83
-
84
- /* smaller star */
85
- .small-star{
86
- width:50px;
87
- height:10px;
88
- }
89
- .small-star,
90
- .small-star a:hover,
91
- .small-star a:active,
92
- .small-star a:focus,
93
- .small-star .current-rating{
94
- background-image: url(star_small.gif);
95
- line-height: 10px;
96
- height: 10px;
97
- }