This repository was archived by the owner on May 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Original file line number Diff line number Diff line change 1
1
django-ajax-tile
2
2
================
3
3
4
+ Use https://github.com/defunkt/jquery-pjax/ instead.
5
+
4
6
Installation
5
7
============
6
8
Original file line number Diff line number Diff line change 156
156
// No previous 'state' was stored, so use raw HTML.
157
157
// Will execute script in HTML.
158
158
// Need to fix.... back after refresh!
159
- $ ( state . currentSelector ) . html ( state . currentHTML ) ;
160
- $ ( state . currentHTML ) . filter ( "script" ) . each ( function ( ) {
161
- if ( this . src ) {
162
- var script = document . createElement ( 'script' ) ;
163
- var i , attrName , attrValue , attrs = this . attributes ;
164
- for ( i = 0 ; i < attrs . length ; i ++ ) {
165
- attrName = attrs [ i ] . name ;
166
- attrValue = attrs [ i ] . value ;
167
- script [ attrName ] = attrValue ;
168
- }
169
- $ ( state . currentSelector ) [ 0 ] . append ( script ) ;
170
- }
171
- else {
172
- $ . globalEval ( this . text || this . textContent || this . innerHTML || '' ) ;
173
- }
174
- } ) ;
175
-
159
+ if ( previousState ) {
160
+ $ ( state . currentSelector ) . html ( state . currentHTML ) ;
161
+ }
176
162
}
177
163
else {
178
164
// Previous 'state' (may have user input data).
You can’t perform that action at this time.
0 commit comments