Commit ef31cd51 authored by Vivek's avatar Vivek

erp5_gadget_interface_validator: used simpler router logic.

parent 4d602a6a
......@@ -205,16 +205,12 @@
if(gadget_list.length > 0) {\n
var page_type = fetchPageType(gadget_list[0]);\n
return gadget.redirect({\n
command: \'change\',\n
options: {\n
page: page_type,\n
appcache_url: appcache_url\n
}\n
page: page_type,\n
appcache_url: appcache_url\n
});\n
} else {\n
return gadget.redirect({\n
command: \'change\',\n
options: {found: false}\n
found: false\n
});\n
}\n
});\n
......@@ -365,7 +361,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>946.46361.42674.38161</string> </value>
<value> <string>946.54877.22908.40635</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -383,7 +379,7 @@
</tuple>
<state>
<tuple>
<float>1446476000.92</float>
<float>1446717901.46</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -299,8 +299,7 @@
return validateAppGadgetList(gadget, gadget_list);\n
}, function(error) {\n
return gadget.redirect({\n
command: \'change\',\n
options: {found: false, page: \'form\'}\n
found: false\n
});\n
});\n
})\n
......@@ -473,7 +472,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>946.49108.59205.8413</string> </value>
<value> <string>946.54878.32293.23654</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -491,7 +490,7 @@
</tuple>
<state>
<tuple>
<float>1446476069.46</float>
<float>1446717974.43</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment