scratch – Diff between revs 92 and 97
?pathlinks?
Rev 92 | Rev 97 | |||
---|---|---|---|---|
Line 124... | Line 124... | |||
124 | 'image/png') |
124 | 'image/png') |
|
125 | ] |
125 | ] |
|
126 | ), |
126 | ), |
|
127 | '.png' |
127 | '.png' |
|
128 | ); |
128 | ); |
|
129 | |
- | ||
- | 129 | $.get('session.php').then((token) => { |
||
- | 130 | formData.append('token', token); |
||
130 | $.ajax({ |
131 | $.ajax({ |
|
131 | url: 'file.php', |
132 | url: 'file.php', |
|
132 | type: 'POST', |
133 | type: 'POST', |
|
133 | data: formData, |
134 | data: formData, |
|
134 | // cache: false // FF |
135 | // cache: false // FF |
|
Line 157... | Line 158... | |||
157 | .concat("/") |
158 | .concat("/") |
|
158 | .concat(data.hash) |
159 | .concat(data.hash) |
|
159 | ); |
160 | ); |
|
160 | }); |
161 | }); |
|
161 | }); |
162 | }); |
|
- | 163 | }); |
||
Line 162... | Line 164... | |||
162 | |
164 | |
|
163 | // Enable the Clipboard button. |
165 | // Enable the Clipboard button. |
|
164 | new Clipboard('#copy-url'); |
166 | new Clipboard('#copy-url'); |