- Openclipart: Bail on error, lbs
parent
4b6be7a871
commit
fff4b2e48b
|
@ -32,6 +32,7 @@ jml('div', [
|
||||||
|
|
||||||
if (!json || json.msg !== 'success') {
|
if (!json || json.msg !== 'success') {
|
||||||
alert('There was a problem downloading the results');
|
alert('There was a problem downloading the results');
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
console.log('json', json);
|
console.log('json', json);
|
||||||
const {payload, info: {
|
const {payload, info: {
|
||||||
|
@ -57,7 +58,10 @@ jml('div', [
|
||||||
|
|
||||||
// Unused properties:
|
// Unused properties:
|
||||||
// - `svg_filesize` always 0?
|
// - `svg_filesize` always 0?
|
||||||
// - `dimensions: {png_thumb: {width, height}, png_full_lossy: {width, height}}` object of relevance?
|
// - `dimensions: {
|
||||||
|
// png_thumb: {width, height},
|
||||||
|
// png_full_lossy: {width, height}
|
||||||
|
// }` object of relevance?
|
||||||
// - No need for `tags` with `tags_array`
|
// - No need for `tags` with `tags_array`
|
||||||
// - `svg`'s: `png_thumb`, `png_full_lossy`, `png_2400px`
|
// - `svg`'s: `png_thumb`, `png_full_lossy`, `png_2400px`
|
||||||
jml(results, [
|
jml(results, [
|
||||||
|
@ -172,7 +176,9 @@ jml('div', [
|
||||||
['div', {class: 'control'}, [
|
['div', {class: 'control'}, [
|
||||||
['label', [
|
['label', [
|
||||||
'Results per page: ',
|
'Results per page: ',
|
||||||
['input', {id: 'amount', name: 'amount', value: 10, type: 'number', min: 1, max: 200, step: 1, pattern: '\\d+'}]
|
['input', {
|
||||||
|
id: 'amount', name: 'amount', value: 10,
|
||||||
|
type: 'number', min: 1, max: 200, step: 1, pattern: '\\d+'}]
|
||||||
]]
|
]]
|
||||||
]],
|
]],
|
||||||
['div', {class: 'control'}, [
|
['div', {class: 'control'}, [
|
||||||
|
|
Loading…
Reference in New Issue