Commit cabe3224677daca3917eb8414c3221dd3682e809
1 parent
12ea9fdd
[+] add jq_dialog_confirm
[!] remove extra blank line button source
Showing
2 changed files
with
22 additions
and
1 deletions
Show diff stats
web/jQuery/jq_dialog.anubis
| ... | ... | @@ -7,6 +7,8 @@ |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | read system/convert.anubis |
| 10 | +read xlib/web/json.anubis | |
| 11 | +read xlib/web/js_tools.anubis | |
| 10 | 12 | read xlib/web/making_a_web_site.anubis |
| 11 | 13 | transmit xlib/web/jquery.anubis |
| 12 | 14 | |
| ... | ... | @@ -33,6 +35,22 @@ public define JQuery_dialog_size |
| 33 | 35 | )= |
| 34 | 36 | percent(all, all). |
| 35 | 37 | |
| 38 | +public define String | |
| 39 | + jq_dialog_confirm | |
| 40 | + ( | |
| 41 | + String dlg_title, | |
| 42 | + String dlg_text, | |
| 43 | + String dlg_ok, | |
| 44 | + String dlg_cancel, | |
| 45 | + String ok_action | |
| 46 | + )= | |
| 47 | + "Xlib.confirm_dialog("+to_JS_String(dlg_title)+", " | |
| 48 | + +to_JS_String(dlg_text)+", " | |
| 49 | + +to_JS_String(dlg_ok)+", " | |
| 50 | + +to_JS_String(dlg_cancel)+", " | |
| 51 | + +to_JS_String(ok_action)+");" | |
| 52 | +. | |
| 53 | + | |
| 36 | 54 | |
| 37 | 55 | public define HTML_Partial_Content |
| 38 | 56 | jq_dialog_create |
| ... | ... | @@ -183,7 +201,8 @@ public define String |
| 183 | 201 | String params |
| 184 | 202 | )= |
| 185 | 203 | _jq_dialog_open(failure, dialog_id, params). |
| 186 | - | |
| 204 | + | |
| 205 | + | |
| 187 | 206 | public define String |
| 188 | 207 | jq_dialog_open |
| 189 | 208 | ( | ... | ... |