Commit ef31cd51 authored by Vivek's avatar Vivek

erp5_gadget_interface_validator: used simpler router logic.

parent 4d602a6a
...@@ -205,16 +205,12 @@ ...@@ -205,16 +205,12 @@
if(gadget_list.length > 0) {\n if(gadget_list.length > 0) {\n
var page_type = fetchPageType(gadget_list[0]);\n var page_type = fetchPageType(gadget_list[0]);\n
return gadget.redirect({\n return gadget.redirect({\n
command: \'change\',\n page: page_type,\n
options: {\n appcache_url: appcache_url\n
page: page_type,\n
appcache_url: appcache_url\n
}\n
});\n });\n
} else {\n } else {\n
return gadget.redirect({\n return gadget.redirect({\n
command: \'change\',\n found: false\n
options: {found: false}\n
});\n });\n
}\n }\n
});\n });\n
...@@ -365,7 +361,7 @@ ...@@ -365,7 +361,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>946.46361.42674.38161</string> </value> <value> <string>946.54877.22908.40635</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -383,7 +379,7 @@ ...@@ -383,7 +379,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1446476000.92</float> <float>1446717901.46</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -299,8 +299,7 @@ ...@@ -299,8 +299,7 @@
return validateAppGadgetList(gadget, gadget_list);\n return validateAppGadgetList(gadget, gadget_list);\n
}, function(error) {\n }, function(error) {\n
return gadget.redirect({\n return gadget.redirect({\n
command: \'change\',\n found: false\n
options: {found: false, page: \'form\'}\n
});\n });\n
});\n });\n
})\n })\n
...@@ -473,7 +472,7 @@ ...@@ -473,7 +472,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>946.49108.59205.8413</string> </value> <value> <string>946.54878.32293.23654</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -491,7 +490,7 @@ ...@@ -491,7 +490,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1446476069.46</float> <float>1446717974.43</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </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