Revert "-- corr"

This reverts commit 5315c47fcd.
This commit is contained in:
2024-11-05 10:55:34 -07:00
parent 5315c47fcd
commit 927295c7ba
276 changed files with 6381 additions and 3001 deletions

View File

@@ -90,9 +90,7 @@ Sys.Extended.UI.RatingBehavior.prototype = {
return;
if(this._ratingValue != this._currentRating)
this._setRatingCore(this._currentRating, true);
else
this.doCallback(true);
this.set_rating(this._currentRating);
},
_onStarMouseOver: function(e) {
@@ -223,7 +221,7 @@ Sys.Extended.UI.RatingBehavior.prototype = {
remove_mouseOver: function(handler) {
this.get_events().removeHandler("mouseOver", handler);
},
raise_mouseOver: function(rating_tmp) {
raise_mouseOver: function(ratingTmp) {
var handler = this.get_events().getHandler("mouseOver");
if(handler)
@@ -239,7 +237,7 @@ Sys.Extended.UI.RatingBehavior.prototype = {
this.remove_mouseOver(handler);
},
raiseMouseOver: function(rating_tmp) {
Sys.Extended.Deprecated("raiseMouseOver(rating_tmp)", "raise_mouseOver(rating_tmp)");
Sys.Extended.Deprecated("raiseMouseOver(rating_tmp)", "raise_mouseOver(ratingTmp)");
this.raise_mouseOver(rating_tmp);
},
@@ -492,21 +490,6 @@ 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>
@@ -524,10 +507,6 @@ 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;
@@ -543,7 +522,17 @@ Sys.Extended.UI.RatingBehavior.prototype = {
this.raisePropertyChanged('rating');
this.raise_rated(this._currentRating);
this.doCallback(fromUI);
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)
}
}
}
},
@@ -661,4 +650,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);