mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Append warning to the write element, refs #1746
This commit is contained in:
parent
1d33fd03b3
commit
4446075334
1 changed files with 1 additions and 5 deletions
6
docs/_static/js/custom.js
vendored
6
docs/_static/js/custom.js
vendored
|
|
@ -17,11 +17,7 @@ jQuery(function ($) {
|
||||||
</div>`
|
</div>`
|
||||||
);
|
);
|
||||||
warning.find("a").attr("href", stableUrl);
|
warning.find("a").attr("href", stableUrl);
|
||||||
var body = $("div.body");
|
$("article[role=main]").prepend(warning);
|
||||||
if (!body.length) {
|
|
||||||
body = $("div.document");
|
|
||||||
}
|
|
||||||
body.prepend(warning);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue