We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be30844 commit 0323f89Copy full SHA for 0323f89
src/System.Web.Mvc/JavaScript/jquery.unobtrusive-ajax.js
@@ -46,15 +46,10 @@
46
47
switch (mode) {
48
case "BEFORE":
49
- top = update.firstChild;
50
- $("<div />").html(data).contents().each(function () {
51
- update.insertBefore(this, top);
52
- });
+ $(update).prepend(data);
53
break;
54
case "AFTER":
55
56
- update.appendChild(this);
57
+ $(update).append(data);
58
59
case "REPLACE-WITH":
60
$(update).replaceWith(data);
0 commit comments