mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
scratchpad size + moved templates to textdb
This commit is contained in:
parent
9585321ecf
commit
791f671bf4
4 changed files with 13 additions and 8 deletions
|
@ -558,6 +558,9 @@ _request_open_page_edit
|
||||||
|Zur Bearbeitung der Einstellungen bitte folgende Seite aufrufen:
|
|Zur Bearbeitung der Einstellungen bitte folgende Seite aufrufen:
|
||||||
|[_page_edit]
|
|[_page_edit]
|
||||||
|
|
||||||
|
_notice_update_scratchpad
|
||||||
|
|[_page_scratchpad] wurde verändert ([_size_scratchpad] bytes).
|
||||||
|
|
||||||
_request_call_link
|
_request_call_link
|
||||||
|Anruf von [_nick]: Annehmen durch Klick auf [_page_call].
|
|Anruf von [_nick]: Annehmen durch Klick auf [_page_call].
|
||||||
|
|
||||||
|
|
|
@ -1352,9 +1352,8 @@ _PAGES_start_description
|
||||||
|<script>
|
|<script>
|
||||||
|var longer = 44
|
|var longer = 44
|
||||||
|
|
|
|
||||||
|function cmd(wish, dest) {
|
|function cmd(wish) {
|
||||||
| Pef.cmd.value = wish
|
| Pef.cmd.value = wish
|
||||||
| Pef.dest.value = dest || ''
|
|
||||||
| Pef.submit()
|
| Pef.submit()
|
||||||
| longer = 44
|
| longer = 44
|
||||||
| return false
|
| return false
|
||||||
|
|
|
@ -553,6 +553,9 @@ _request_description_vCard
|
||||||
_request_friendship_implied
|
_request_friendship_implied
|
||||||
|## no output
|
|## no output
|
||||||
|
|
||||||
|
_notice_update_scratchpad
|
||||||
|
|[_page_scratchpad] has changed ([_size_scratchpad] bytes).
|
||||||
|
|
||||||
_request_call_link
|
_request_call_link
|
||||||
|[_nick] would like to speak to you. Use [_page_call] to answer the call.
|
|[_nick] would like to speak to you. Use [_page_call] to answer the call.
|
||||||
|
|
||||||
|
|
|
@ -453,7 +453,7 @@ htget(prot, query, headers, qs, data, noprocess) {
|
||||||
# ifdef PLACE_SCRATCHPAD
|
# ifdef PLACE_SCRATCHPAD
|
||||||
sTextPath(query["layout"] || MYNICK, query["lang"], "html");
|
sTextPath(query["layout"] || MYNICK, query["lang"], "html");
|
||||||
if (!noprocess && (!qs || query["scratchpad"])) {
|
if (!noprocess && (!qs || query["scratchpad"])) {
|
||||||
string rand, buf;
|
string rand, buf, len;
|
||||||
// microscopic wiki functionality .. cheap imitation of tobi's save.pike
|
// microscopic wiki functionality .. cheap imitation of tobi's save.pike
|
||||||
//
|
//
|
||||||
// things one could add:
|
// things one could add:
|
||||||
|
@ -475,7 +475,7 @@ htget(prot, query, headers, qs, data, noprocess) {
|
||||||
// his changes first.. well. might not happen.
|
// his changes first.. well. might not happen.
|
||||||
// TODO: prefix id with epoch?
|
// TODO: prefix id with epoch?
|
||||||
if (stringp(query["scratchpad"])
|
if (stringp(query["scratchpad"])
|
||||||
&& strlen(query["scratchpad"]) > 1
|
&& (len = strlen(query["scratchpad"])) > 1
|
||||||
//
|
//
|
||||||
// id logic serves the purpose of not changing the scratchpad while going
|
// id logic serves the purpose of not changing the scratchpad while going
|
||||||
// "back" in the browser history. only a new "post" should change it.
|
// "back" in the browser history. only a new "post" should change it.
|
||||||
|
@ -499,14 +499,14 @@ htget(prot, query, headers, qs, data, noprocess) {
|
||||||
// call_out(#'m_delete, 86400 /* 24 hours */,
|
// call_out(#'m_delete, 86400 /* 24 hours */,
|
||||||
// used, query["id"]);
|
// used, query["id"]);
|
||||||
|
|
||||||
castmsg(ME, "_notice_update_scratchpad",
|
castmsg(ME, "_notice_update_scratchpad", 0, ([
|
||||||
"The [_page_scratchpad] has changed.", ([
|
"_size_scratchpad": len,
|
||||||
#ifdef PRO_PATH // __TLS__
|
#ifdef PRO_PATH // __TLS__
|
||||||
"_page_scratchpad":
|
"_page_scratchpad":
|
||||||
((tls_available() && HTTPS_URL) || HTTP_URL)
|
((tls_available() && HTTPS_URL) || HTTP_URL)
|
||||||
#else
|
#else
|
||||||
// problem with POST over https apparently..
|
// problem with POST over https apparently..
|
||||||
"_page_scratchpad": (HTTP_URL)
|
"_page_scratchpad": (HTTP_URL)
|
||||||
#endif
|
#endif
|
||||||
// TODO: use psycName() here instead
|
// TODO: use psycName() here instead
|
||||||
+"/@"+ MYNICK +"?scratchpad"
|
+"/@"+ MYNICK +"?scratchpad"
|
||||||
|
|
Loading…
Reference in a new issue