[luci] Button runs twice
Priscilla Tse
priscillaating at hotmail.com
Mon Aug 19 06:11:57 CEST 2013
i want to add a Button on my page. i tried below code:
testrun = s:option(Button, "_testrun", "run")testrun.inputstyle = "apply"function testrun.write(self, section) os.execute("lua /root/test.lua") self.inputtitle = translate("test") end
i can see the button in my page. but once i click the button. the command os.execute("lua /root/test.lua") runs twice.
what could be wrong? how to avoid this.
Thank You,
Priscilla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20130819/c018c3b4/attachment.html>
More information about the luci
mailing list