Content-Length: 272684 | pFad | http://github.com/APIJSON/APIJSON-Python/commit/65d9b84874bfd8372e5f36c5d3c61ec1c1a2a2bf

93 apijson-table: fix apijson-post with @role · APIJSON/APIJSON-Python@65d9b84 · GitHub
Skip to content

Commit 65d9b84

Browse files
committed
apijson-table: fix apijson-post with @ROLE
1 parent 425d3f8 commit 65d9b84

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

uliweb_apijson/apijson/templates/vue/inc_apijson_table.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
var thisp = this
5454
return {
5555
l_request_tag: null,
56-
role: "{{=role}}",
56+
role: "{{=role or ''}}",
5757

5858
loading: false,
5959
modal_view: false,
@@ -440,6 +440,9 @@
440440
var d = thisp.add_items[k]
441441
post_params[d.key] = d.value
442442
}
443+
if (thisp.role!="") {
444+
post_params["@role"] = thisp.role
445+
}
443446
params[this.l_request_tag] = post_params
444447
params = thisp.ajax_hook("apijson_post","add",params)
445448
$.ajax({

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/APIJSON/APIJSON-Python/commit/65d9b84874bfd8372e5f36c5d3c61ec1c1a2a2bf

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy