scratch – Diff between revs 32 and 34
?pathlinks?
Rev 32 | Rev 34 | |||
---|---|---|---|---|
Line 105... | Line 105... | |||
105 | $('#trumbowyg').trumbowyg('enable'); |
105 | $('#trumbowyg').trumbowyg('enable'); |
|
106 | }); |
106 | }); |
|
107 | }); |
107 | }); |
|
Line 108... | Line 108... | |||
108 | |
108 | |
|
109 | // Retrieve the contents of the shared file. |
109 | // Retrieve the contents of the shared file. |
|
- | 110 | $.get('share-text.php', |
||
- | 111 | { |
||
- | 112 | headers: { |
||
- | 113 | 'Cache-Control': 'no-cache, no-store, must-revalidate', |
||
- | 114 | 'Pragma': 'no-cache', |
||
- | 115 | 'Expires': '0' |
||
- | 116 | }, |
||
- | 117 | cache: false |
||
110 | $.get('share-text.php').done((data) => { |
118 | }).done((data) => { |
|
111 | $('#trumbowyg') |
119 | $('#trumbowyg') |
|
112 | .trumbowyg('html', data); |
120 | .trumbowyg('html', data); |
|
113 | $('#trumbowyg').trumbowyg('enable'); |
121 | $('#trumbowyg').trumbowyg('enable'); |
|
114 | $('#trumbowyg').show(); |
122 | $('#trumbowyg').show(); |
|
Line 134... | Line 142... | |||
134 | |
142 | |
|
135 | $.ajax({ |
143 | $.ajax({ |
|
136 | url: 'upload-files.php', |
144 | url: 'upload-files.php', |
|
137 | type: 'POST', |
145 | type: 'POST', |
|
- | 146 | data: formData, |
||
- | 147 | headers: { |
||
- | 148 | 'Cache-Control': 'no-cache, no-store, must-revalidate', |
||
- | 149 | 'Pragma': 'no-cache', |
||
- | 150 | 'Expires': '0' |
||
138 | data: formData, |
151 | }, |
|
139 | cache: false, |
152 | cache: false, |
|
140 | processData: false, |
153 | processData: false, |
|
141 | contentType: false |
154 | contentType: false |
|
142 | }).done((data) => { |
155 | }).done((data) => { |