Added a fix for <script>s getting executed twice when .load()ed.
This commit is contained in:
parent
bb35204326
commit
c690472135
|
@ -77,7 +77,7 @@ jQuery.fn.extend({
|
|||
complete: function(res, status){
|
||||
if ( status == "success" || !ifModified && status == "notmodified" )
|
||||
// Inject the HTML into all the matched elements
|
||||
self.html(res.responseText)
|
||||
self.attr("innerHTML", res.responseText)
|
||||
// Execute all the scripts inside of the newly-injected HTML
|
||||
.evalScripts()
|
||||
// Execute callback
|
||||
|
|
Loading…
Reference in a new issue