source: sandbox/2.4.1-3/prototype/plugins/jq-raty/changelog.md @ 6512

Revision 6512, 7.5 KB checked in by gustavo, 12 years ago (diff)

Ticket #2766 - implementacao da dfd0065 e correcao de bugs da dfd0099

  • Property svn:executable set to *
Line 
1# jQuery Raty - A Star Rating Plugin - http://wbotelhos.com/raty
2
3### 2.4.5
4
5+ Now the error messages is displayed in place of stars to be more visible;
6+ Fixed the 'score' function to handle undefined score when we have no vote;
7+ Fixed the mouseover function to handle undefined score when we have no vote;
8        - For cancel button we get 'null' to know when mouse over it;
9+ Fixed multiple mouseout actions on cancel function and mouseout bind;
10+ Fixed functions that was not applying not continuing to apply if someone was invalid;
11+ Fixed the flag that indicates read-only or not.
12
13### 2.4.0
14
15+ Added the function 'reload' to reload the rating with the current configuration;
16+ Added the function 'set' to reload the rating applying new configurations;
17+ Added the option 'mouseover' to handle a callback on mouseover the stars (by packowitz);
18+ Fixed error when 'start' options receives a string number (by eskimoblood);
19+ Fixed multiples events when readOnly is applied more then time by public function (by janapol).
20+ Now attribute 'hintList' is called just of 'hints';
21+ Now attribute 'start' is called as 'score' to make more sense;
22+ Now the method 'start' is called as 'score' too.
23
24### 2.1.0
25
26+ Now Raty keeps the state of the elements and no longer depends on ID for each one:
27        + The score no longer has ID;
28        + The stars images no longer has ID;
29        + The stars images no longer has class.
30+ Added function 'score' to recover the current score.
31
32### 2.0.0
33
34+ Added option 'halfShow' to just display and separate from the option to vote 'half';
35+ Added option 'targetText' to choose default value when there is no score or targetKepp is off.
36+ Added option 'precision' to be able rating with precision values, without star representation;
37+ Added option 'space' to be able take off the spaces between the star;
38+ Added option 'round' to customize the visual rounding of values;
39+ Added option 'targetFormat' to customize the target with a template;
40+ Added option 'single' to present only the selected star; (suggestion by newcube)
41+ Fixed bug in IE 7 that returns void instead undefined when there is no an attribute;
42+ Fixed bug that not set custom width when 'readOnly' is enabled;
43+ Fixed bug that not set back the hints after disable read only option;
44+ Fixed bug that not create cancel button when starts with 'readOnly';
45+ Fixed the function cancel() to set the right hint on target score;
46+ Fixed the functions start() and click() to set the value on target when 'target' option is enabled;
47+ Fixed the functions start() and click() not to be executed when 'readOnly' is enabled;
48+ Fixed the 'target' option to work with 'half' and 'precision' option;
49+ Fixed the index number given to Raty binded by class without id; (by "Remember me, please?")
50+ Refactored the code to make it cleanner and faster;
51+ Changed the class of the cancel button to 'raty-cancel' to avoid CSS conflicts;
52+ Now is possible to use 'start' option as callback function to get start value; (by hpgihan)
53+ Now the scope of click callback is the raty element as DOM, not jQuery selection, to follow the usual;
54+ Now the field score is set to readonly when 'readOnly' is enabled.
55+ Now attribute 'iconRange' is represented as a list of object with option to choose starOn and starOff;
56+ Now we using the best pratice to build the plugin;
57+ Now the plugin is under test with Jasmine and Jasmine jQuery.
58
59### 1.4.3
60
61+ Now public function return the context to be able the chaining;
62+ Fixed: the option 'readOnly' brokes the plugin;
63+ Prevented the processing of the set of classes in public function.
64
65### 1.4.0
66
67+ Added attribute 'target' to choose a element to display the score when the mouse is on the star;
68+ Added attribute 'targetKeep' to keep the selected value on the target element;
69+ Added attribute 'targetType' to choose what display in the target element: hint or number;
70+ New function called $.fn.raty.cancel() to cancel the rating;
71+ Now the action of cancel removes the score value instead set it to zero;
72+ Using mouseover when the half star is disabled to avoid to waste actions trigger;
73+ Now is possible pass a empty string in the $.fn.raty.start() to cancel the rating;
74+ Public functions without specify ID or class is no longer supported.
75
76### 1.3.3
77
78+ Fixed the icon presentation when the start attribute is setted and the iconRange is enabled;
79+ Now the click function receives the event as argument. (by Eric Wendelin)
80
81### 1.3.2
82
83+ Fixed: the last Raty configuration will not be applied in others targets Raty anymore;
84+ Now is possible to use the element as identifier like div.star on direct actions.
85
86### 1.3.0
87
88+ Added attribute size for to choose the size of the icons that will be used;
89+ Added attribute width for to choose the container width of the stars;
90+ Changed the name of the attribute showCancel to just cancel.
91
92### 1.2.1
93
94+ Fixed half star when click function is enabled.
95
96### 1.2.0
97
98+ Added support to half star selection;
99+ Changed the name of the attribute onClick to just click;
100+ Changed the name of the attribute showHalf to half, because of the selection support.
101
102### 1.0.1
103
104+ Fixed the ID's auto generation to work in IE6 and IE7.
105
106### 1.0.0
107
108+ Now you can pass a optionally ID or a class to be the target of the public function's actions;
109+ Fixed the read-only that wasn't begin applied by the public function readOnly.
110
111### 0.9
112
113+ Improved the selector to accept bind by class name;
114+ Now if you don't pass a ID for the element, then it will be created;
115+ Now the hint list will be applied even if the quantity are less than the stars.
116
117### 0.8
118
119+ Added iconRange attribute. Now you can set custom icons for especific ranges;
120+ Fixed the cancel button that didn't hidden when using the public function readOnly.
121
122### 0.7
123
124+ Added noRatedMsg attribute. A hint for no rated elements when it's read-only;
125+ Avoided negative star number in public function start;
126+ Avoided a number bigger than the number of star in public function start;
127+ Fixed the public function start when the star are read-only and is not passed a start value;
128+ Fixed the half star function on it is made by public function start;
129
130### 0.6
131
132+ Now you can use the key "this" to refer the star element itself in the onClick handler;
133+ Fixed the reference context when using public functions or local functions;
134+ When the stars are read-only, all titles are transformed in the corresponding title score;
135+ Avoided negative star number;
136+ Avoided more than 20 stars. But it's can be changed in the script if you need.
137
138### 0.5
139
140+ Now you can put a cancel button to cancel your rating;
141+ Choose the cancel image off;
142+ Choose the cancel image on;
143+ Choose the left or right side position for the cancel button;
144+ Change the hint of the cancel button.
145
146### 0.4
147
148+ Added support to display half star.
149
150### 0.3
151
152+ Fixed some mistakes to work on IE browser.
153
154### 0.2
155
156+ Added the public function click, that do the click on a star;
157+ Was removed the execution of the onClick when used the function start;
158+ Added onClick function that enable a callback when a star is clicked.
159
160### 0.1
161
162+ Change the path of images;
163+ Change the name image files;
164+ Choose the number of stars that will be presented;
165+ Choose a hint information of each star;
166+ Start with a default score;
167+ Set the stars read-only;
168+ Choose the name of the hidden score field.
169
170### known Bugs
171
172+ On versions before 1.6 if a attribute not exists, then empty string is returned instead undefined;
173+ On 1.5.2 the opt.click callback is never called, because this version always returns undefined to .call() and .apply();
174+ On 1.5.2 the attribute readonly is setted with empty value as following readonly="".
Note: See TracBrowser for help on using the repository browser.