mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
HTTP Server: Fix broken read tab; fix preview not working [#264]
This commit is contained in:
parent
38bdc95acf
commit
8abb2cd0ee
@ -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"
|
||||
|
@ -139,9 +139,9 @@ public class Xow_portal_mgr implements Gfo_invk {
|
||||
}
|
||||
|
||||
// build url_fragment with action query argument; EX: "/wiki/Page_name?action="
|
||||
byte[] url_frag_w_action_qarg = Bry_.Add(Xoh_href_.Bry__wiki, ttl.Page_db(), Byte_ascii.Question_bry, Xoa_url_.Qarg__action, Byte_ascii.Eq_bry);
|
||||
byte[] url_frag_w_action_qarg = Bry_.Add(Xoh_href_.Bry__wiki, ttl.Full_db(), Byte_ascii.Question_bry, Xoa_url_.Qarg__action, Byte_ascii.Eq_bry);
|
||||
div_view_fmtr.Bld_bfr_many(tmp_bfr, read_cls, edit_cls, html_cls, search_text
|
||||
, ttl.Page_db()
|
||||
, Bry_.Add(Xoh_href_.Bry__wiki, ttl.Full_db())
|
||||
, Bry_.Add(url_frag_w_action_qarg, Xoa_url_.Qarg__action__edit)
|
||||
, Bry_.Add(url_frag_w_action_qarg, Xoa_url_.Qarg__action__html));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user