root / drupal7 / sites / all / modules / fivestar / js / fivestar.ajax.js @ a45e4bc1
1 |
/**
|
---|---|
2 |
* @file
|
3 |
*
|
4 |
* Fivestar AJAX for updating fivestar widgets.
|
5 |
*/
|
6 |
|
7 |
/**
|
8 |
* Create a degradeable star rating interface out of a simple form structure.
|
9 |
*/
|
10 |
(function($){ // Create local scope. |
11 |
|
12 |
Drupal.ajax.prototype.commands.fivestarUpdate = function (ajax, response, status) { |
13 |
response.selector = $('.fivestar-form-item', ajax.element.form); |
14 |
ajax.commands.insert(ajax, response, status); |
15 |
}; |
16 |
|
17 |
})(jQuery); |