This commit is contained in:
2024-11-05 10:47:20 -07:00
parent c801b1ff51
commit 5315c47fcd
276 changed files with 2990 additions and 6370 deletions

View File

@@ -90,7 +90,9 @@ Sys.Extended.UI.RatingBehavior.prototype = {
return;
if(this._ratingValue != this._currentRating)
this.set_rating(this._currentRating);
this._setRatingCore(this._currentRating, true);
else
this.doCallback(true);
},
_onStarMouseOver: function(e) {
@@ -221,7 +223,7 @@ Sys.Extended.UI.RatingBehavior.prototype = {
remove_mouseOver: function(handler) {
this.get_events().removeHandler("mouseOver", handler);
},
raise_mouseOver: function(ratingTmp) {
raise_mouseOver: function(rating_tmp) {
var handler = this.get_events().getHandler("mouseOver");
if(handler)
@@ -237,7 +239,7 @@ Sys.Extended.UI.RatingBehavior.prototype = {
this.remove_mouseOver(handler);
},
raiseMouseOver: function(rating_tmp) {
Sys.Extended.Deprecated("raiseMouseOver(rating_tmp)", "raise_mouseOver(ratingTmp)");
Sys.Extended.Deprecated("raiseMouseOver(rating_tmp)", "raise_mouseOver(rating_tmp)");
this.raise_mouseOver(rating_tmp);
},
@@ -490,6 +492,21 @@ Sys.Extended.UI.RatingBehavior.prototype = {
this.set_waitingStarCssClass(value);
},
doCallback: function(fromUI)
{
if (this._isServerControl) {
this._waitingMode(true);
var args = Number(!!fromUI) + ";" + this._currentRating + ";" + this._tag,
id = this._callbackID;
if (this._autoPostBack)
__doPostBack(id, args);
else
WebForm_DoCallback(id, args, this._receiveServerData, this, this._onError, true)
}
},
/// <summary>
/// A current rating value
/// </summary>
@@ -507,6 +524,10 @@ Sys.Extended.UI.RatingBehavior.prototype = {
return this._ratingValue;
},
set_rating: function(value) {
this._setRatingCore(value);
},
_setRatingCore: function(value, fromUI) {
if(this._ratingValue != value) {
this._ratingValue = value;
this._currentRating = value;
@@ -522,17 +543,7 @@ Sys.Extended.UI.RatingBehavior.prototype = {
this.raisePropertyChanged('rating');
this.raise_rated(this._currentRating);
if(this._isServerControl) {
this._waitingMode(true);
var args = this._currentRating + ";" + this._tag,
id = this._callbackID;
if(this._autoPostBack)
__doPostBack(id, args);
else
WebForm_DoCallback(id, args, this._receiveServerData, this, this._onError, true)
}
this.doCallback(fromUI);
}
}
},
@@ -650,4 +661,4 @@ Sys.Extended.UI.RatingCallbackResultEventArgs.prototype = {
}
}
Sys.Extended.UI.RatingCallbackResultEventArgs.registerClass('Sys.Extended.UI.RatingCallbackResultEventArgs', Sys.EventArgs);
Sys.Extended.UI.RatingCallbackResultEventArgs.registerClass('Sys.Extended.UI.RatingCallbackResultEventArgs', Sys.EventArgs);