script editor added x4
This commit is contained in:
parent
b515b814e3
commit
b9518e8f40
@ -37,6 +37,7 @@ public class SpringSecurity {
|
|||||||
.requestMatchers("/favicon.ico").permitAll()
|
.requestMatchers("/favicon.ico").permitAll()
|
||||||
.requestMatchers("/signup/**").permitAll()
|
.requestMatchers("/signup/**").permitAll()
|
||||||
.requestMatchers("/").permitAll()
|
.requestMatchers("/").permitAll()
|
||||||
|
.requestMatchers("/script-editor").permitAll()
|
||||||
).formLogin(
|
).formLogin(
|
||||||
form -> form
|
form -> form
|
||||||
.loginPage("/login")
|
.loginPage("/login")
|
||||||
|
@ -156,12 +156,12 @@ function edit_entry(obj) {
|
|||||||
let __ss = new URL(window.location.href).searchParams.get("section") + "";
|
let __ss = new URL(window.location.href).searchParams.get("section") + "";
|
||||||
if( __ss == "actions" ) {
|
if( __ss == "actions" ) {
|
||||||
window.location.href = "/script-editor?script_id=" + ($(obj).attr("data-id"));
|
window.location.href = "/script-editor?script_id=" + ($(obj).attr("data-id"));
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
$.post("/api/edit_entry", "section="+_ss+"&entry_id="+($(obj).attr("data-id")), function(data, status) {
|
$.post("/api/edit_entry", "section="+_ss+"&entry_id="+($(obj).attr("data-id")), function(data, status) {
|
||||||
var jobj = JSON.parse(data);
|
var jobj = JSON.parse(data);
|
||||||
show_modal_edit(jobj, $(obj).attr("data-id"));
|
show_modal_edit(jobj, $(obj).attr("data-id"));
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_text_api(tid, cb) {
|
function get_text_api(tid, cb) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user