mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
HTTP Server: Fix broken read tab; fix preview not working [#264]
This commit is contained in:
@@ -81,6 +81,7 @@ public class Xog_tab_itm_edit_mgr {
|
||||
|
||||
byte[] new_text = Get_new_text(tab, null);
|
||||
Xoae_page new_page = Xoae_page.New(wiki, page.Ttl());
|
||||
new_page.Url_(page.Url()); // NOTE: must set Url explicitly, else new_page will not have same url_args as old_page; broken when going to action=edit; DATE:2018-11-25
|
||||
new_page.Db().Page().Id_(page.Db().Page().Id()); // NOTE: page_id needed for sqlite (was not needed for xdat)
|
||||
new_page.Db().Text().Text_bry_(new_text);
|
||||
wiki.Parser_mgr().Parse(new_page, true); // refresh html
|
||||
|
||||
@@ -109,7 +109,7 @@ public class Xog_win_itm implements Gfo_invk, Gfo_evt_itm {
|
||||
, Invk_link_click = "link_click", Invk_link_print = "link_print"
|
||||
, Invk_window_font_changed = "winow_font_changed"
|
||||
, Invk_search = "search"
|
||||
, Invk_page_view_edit = "page_view_edit", Invk_page_view_read = "page_view_read", Invk_page_view_html = "page_view_html"
|
||||
, Invk_page_view_edit = "page_view_edit", Invk_page_view_read = "page_view_read", Invk_page_view_html = "page_view_html" // DEPRECATED: now uses action=edit
|
||||
, Invk_history_fwd = "history_fwd", Invk_history_bwd = "history_bwd"
|
||||
, Invk_page_refresh = "page_refresh"
|
||||
, Invk_page_edit_focus_box = "page_edit_focus_box", Invk_page_edit_focus_first = "page_edit_focus_first"
|
||||
|
||||
Reference in New Issue
Block a user