|
@@ -176,7 +176,7 @@ state(Key,Value) -> erlang:put(Key,Value).
|
|
|
|
|
|
% Redirect and purge connection nitro:redirect
|
|
% Redirect and purge connection nitro:redirect
|
|
|
|
|
|
-redirect(Url) -> nitro:wire(#jq{target='window.top',property=location,args=simple,right=Url}).
|
|
|
|
|
|
+redirect(Url) -> nitro:wire(#jq{target='window',property=location,args=simple,right=Url}).
|
|
%header(K,V) -> nitro:context((?CTX)#cx{req=cowboy_req:set_resp_header(K,V,?CTX#cx.req)}).
|
|
%header(K,V) -> nitro:context((?CTX)#cx{req=cowboy_req:set_resp_header(K,V,?CTX#cx.req)}).
|
|
|
|
|
|
setAttr(Element, Attr, Value) ->
|
|
setAttr(Element, Attr, Value) ->
|