Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions history.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1.10.1
Work with both 2.x and 3.x versions of Saltarelle.Web
Added jQuery.Select(Element) and string as an option for Data in jQueryAjaxOptions

Expand Down
25 changes: 18 additions & 7 deletions jQuery/jQueryDataHttpRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ public jQueryDataHttpRequest<TData> Always(params Action[] callbacks) {
/// <param name="callbacks">The callbacks to invoke (in order).</param>
/// <returns>The current request object.</returns>
[ExpandParams]
public jQueryDataHttpRequest<TData> Always(params Action<TData>[] callbacks) {
public jQueryDataHttpRequest<TData> Always(params AjaxCompletedCallback<TData>[] callbacks)
{
return null;
}

Expand All @@ -104,7 +105,9 @@ public jQueryDataHttpRequest<TData> Always(params Action<TData>[] callbacks) {
/// </summary>
/// <param name="callback">The callback to invoke.</param>
/// <returns>The current request object.</returns>
public jQueryDataHttpRequest<TData> Complete(AjaxCompletedCallback<TData> callback) {
[Obsolete("Deprecated since jQuery 1.8. Use Always() instead.")]
public jQueryDataHttpRequest<TData> Complete(AjaxCompletedCallback<TData> callback)
{
return null;
}

Expand All @@ -126,7 +129,8 @@ public jQueryDataHttpRequest<TData> Done(params Action[] doneCallbacks) {
/// <param name="doneCallbacks">The callbacks to invoke (in order).</param>
/// <returns>The current request object.</returns>
[ExpandParams]
public jQueryDataHttpRequest<TData> Done(params Action<TData>[] doneCallbacks) {
public jQueryDataHttpRequest<TData> Done(params AjaxRequestCallback<TData>[] doneCallbacks)
{
return null;
}

Expand All @@ -135,7 +139,9 @@ public jQueryDataHttpRequest<TData> Done(params Action<TData>[] doneCallbacks) {
/// </summary>
/// <param name="callback">The callback to invoke.</param>
/// <returns>The current request object.</returns>
public jQueryDataHttpRequest<TData> Error(AjaxErrorCallback<TData> callback) {
[Obsolete("Deprecated since jQuery 1.8. Use Fail() instead.")]
public jQueryDataHttpRequest<TData> Error(AjaxErrorCallback<TData> callback)
{
return null;
}

Expand All @@ -157,7 +163,8 @@ public jQueryDataHttpRequest<TData> Fail(params Action[] failCallbacks) {
/// <param name="failCallbacks">The callbacks to invoke (in order).</param>
/// <returns>The current request object.</returns>
[ExpandParams]
public jQueryDataHttpRequest<TData> Fail(params Action<TData>[] failCallbacks) {
public jQueryDataHttpRequest<TData> Fail(params AjaxErrorCallback<TData>[] failCallbacks)
{
return null;
}

Expand Down Expand Up @@ -221,7 +228,9 @@ public void SetRequestHeader(string name, string value) {
/// </summary>
/// <param name="callback">The callback to invoke.</param>
/// <returns>The current request object.</returns>
public jQueryDataHttpRequest<TData> Success(AjaxCallback<TData> callback) {
[Obsolete("Deprecated since jQuery 1.8. Use Done() instead.")]
public jQueryDataHttpRequest<TData> Success(AjaxCallback<TData> callback)
{
return null;
}

Expand All @@ -230,7 +239,9 @@ public jQueryDataHttpRequest<TData> Success(AjaxCallback<TData> callback) {
/// </summary>
/// <param name="callback">The callback to invoke.</param>
/// <returns>The current request object.</returns>
public jQueryDataHttpRequest<TData> Success(AjaxRequestCallback<TData> callback) {
[Obsolete("Deprecated since jQuery 1.8. Use Done() instead.")]
public jQueryDataHttpRequest<TData> Success(AjaxRequestCallback<TData> callback)
{
return null;
}

Expand Down
58 changes: 49 additions & 9 deletions jQuery/jQueryObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3017,17 +3017,18 @@ public jQueryObject Next([SyntaxValidation("cssSelector")] string selector) {
}

/// <summary>
/// Gets a jQueryObject representing all the following sibling elements
/// of the matched set of elements.
/// Gets a jQueryObject representing all following siblings
/// of each element in the set of matched elements.
/// </summary>
/// <returns>The new jQueryObject.</returns>
public jQueryObject NextAll() {
return null;
}

/// <summary>
/// Gets a jQueryObject representing all the following sibling elements
/// of the matched set of elements filtered by the specified selector.
/// Gets a jQueryObject representing all following siblings
/// of each element in the set of matched elements
/// filtered by the specified selector.
/// </summary>
/// <param name="selector">The selector to match children against.</param>
/// <returns>The new jQueryObject.</returns>
Expand All @@ -3036,12 +3037,50 @@ public jQueryObject NextAll([SyntaxValidation("cssSelector")] string selector) {
}

/// <summary>
/// Gets a jQueryObject representing all the following sibling elements
/// of the matched set of elements while they match the specified selector.
/// Gets a jQueryObject representing all following siblings
/// of each element up to but not including the element
/// matched by the selector.
/// </summary>
/// <param name="selector">The selector to match children against.</param>
/// <param name="selector">The selector to indicate where to stop matching following sibling elements.</param>
/// <returns>The new jQueryObject.</returns>
public jQueryObject NextUntil([SyntaxValidation("cssSelector")] string selector)
{
return null;
}

/// <summary>
/// Gets a jQueryObject representing all following siblings
/// of each element up to but not including the element
/// matched by the selector.
/// </summary>
/// <param name="selector">The selector to indicate where to stop matching following sibling elements.</param>
/// <param name="filter">The selector to match elements against.</param>
/// <returns>The new jQueryObject.</returns>
public jQueryObject NextUntil([SyntaxValidation("cssSelector")] string selector, [SyntaxValidation("cssSelector")] string filter)
{
return null;
}

/// <summary>
/// Gets a jQueryObject representing all following siblings
/// of each element up to but not including the element.
/// </summary>
/// <param name="element">The selector to indicate where to stop matching following sibling elements.</param>
/// <returns>The new jQueryObject.</returns>
public jQueryObject NextUntil(TypeOption<jQueryObject, Element> element)
{
return null;
}

/// <summary>
/// Gets a jQueryObject representing all following siblings
/// of each element up to but not including the element.
/// </summary>
/// <param name="element">The element indicating where to stop matching following sibling elements.</param>
/// <param name="filter">The selector to match elements against.</param>
/// <returns>The new jQueryObject.</returns>
public jQueryObject NextUntil([SyntaxValidation("cssSelector")] string selector) {
public jQueryObject NextUntil(TypeOption<jQueryObject, Element> element, [SyntaxValidation("cssSelector")] string filter)
{
return null;
}

Expand Down Expand Up @@ -3632,7 +3671,8 @@ public jQueryObject Remove([SyntaxValidation("cssSelector")] string selector) {
/// </summary>
/// <param name="attributeName">The attribute to remove.</param>
/// <returns>The current jQueryObject.</returns>
public jQueryObject RemoveAttr(string attributeName) {
[ScriptName("removeAttr")]
public jQueryObject RemoveAttribute(string attributeName) {
return null;
}

Expand Down
19 changes: 14 additions & 5 deletions jQuery/jQueryXmlHttpRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ public jQueryXmlHttpRequest Always(params Callback[] callbacks) {
/// </summary>
/// <param name="callback">The callback to invoke.</param>
/// <returns>The current request object.</returns>
public jQueryXmlHttpRequest Complete(AjaxCompletedCallback callback) {
[Obsolete("Deprecated since jQuery 1.8. Use Always() instead.")]
public jQueryXmlHttpRequest Complete(AjaxCompletedCallback callback)
{
return null;
}

Expand All @@ -126,7 +128,8 @@ public jQueryXmlHttpRequest Done(params Action[] doneCallbacks) {
/// <param name="doneCallbacks">The callbacks to invoke (in order).</param>
/// <returns>The current request object.</returns>
[ExpandParams]
public jQueryXmlHttpRequest Done(params Callback[] doneCallbacks) {
public jQueryXmlHttpRequest Done(params AjaxRequestCallback[] doneCallbacks)
{
return null;
}

Expand All @@ -135,6 +138,7 @@ public jQueryXmlHttpRequest Done(params Callback[] doneCallbacks) {
/// </summary>
/// <param name="callback">The callback to invoke.</param>
/// <returns>The current request object.</returns>
[Obsolete("Deprecated since jQuery 1.8. Use Fail() instead.")]
public jQueryXmlHttpRequest Error(AjaxErrorCallback callback) {
return null;
}
Expand All @@ -157,7 +161,8 @@ public jQueryXmlHttpRequest Fail(params Action[] failCallbacks) {
/// <param name="failCallbacks">The callbacks to invoke (in order).</param>
/// <returns>The current request object.</returns>
[ExpandParams]
public jQueryXmlHttpRequest Fail(params Callback[] failCallbacks) {
public jQueryXmlHttpRequest Fail(params AjaxErrorCallback[] failCallbacks)
{
return null;
}

Expand Down Expand Up @@ -217,7 +222,9 @@ public void SetRequestHeader(string name, string value) {
/// </summary>
/// <param name="callback">The callback to invoke.</param>
/// <returns>The current request object.</returns>
public jQueryXmlHttpRequest Success(AjaxCallback callback) {
[Obsolete("Deprecated since jQuery 1.8. Use Done() instead.")]
public jQueryXmlHttpRequest Success(AjaxCallback callback)
{
return null;
}

Expand All @@ -226,7 +233,9 @@ public jQueryXmlHttpRequest Success(AjaxCallback callback) {
/// </summary>
/// <param name="callback">The callback to invoke.</param>
/// <returns>The current request object.</returns>
public jQueryXmlHttpRequest Success(AjaxRequestCallback callback) {
[Obsolete("Deprecated since jQuery 1.8. Use Done() instead.")]
public jQueryXmlHttpRequest Success(AjaxRequestCallback callback)
{
return null;
}

Expand Down