Packages
Nitrogen Web Framework Core Library
Current section
Files
Jump to
Current section
Files
src/actions/action_make_writable.erl
% vim: sw=4 ts=4 et ft=erlang
% Nitrogen Web Framework for Erlang
% Copyright (c) 2012 Milan Svoboda
% See MIT-LICENSE for licensing information.
-module (action_make_writable).
-include("wf.hrl").
-export([
render_action/1
]).
-spec render_action(#make_writable{}) -> actions().
render_action(#make_writable{target=Target}) ->
#script{script=wf:f(<<"objs('~s').prop('readonly',false);">>, [Target])}.