Commit c3f37168 authored by Vivek's avatar Vivek Committed by Kazuhiko Shiozaki

jabberclient: syntax update.

parent 8ef46249
...@@ -517,7 +517,7 @@ ...@@ -517,7 +517,7 @@
.push(function (result_list) {\n .push(function (result_list) {\n
var connection_gadget = result_list[0],\n var connection_gadget = result_list[0],\n
submit_event = result_list[1];\n submit_event = result_list[1];\n
gadget.props.my_server = submit_event.target[0].value; \n gadget.props.my_server = submit_event.target[0].value;\n
gadget.props.my_jid = submit_event.target[1].value;\n gadget.props.my_jid = submit_event.target[1].value;\n
gadget.props.my_password = submit_event.target[2].value;\n gadget.props.my_password = submit_event.target[2].value;\n
return connection_gadget.connect(\n return connection_gadget.connect(\n
...@@ -585,13 +585,13 @@ ...@@ -585,13 +585,13 @@
});\n });\n
$(gadget.props.element).trigger("create");\n $(gadget.props.element).trigger("create");\n
gadget.props.content_element.querySelector("input[type=submit]")\n gadget.props.content_element.querySelector("input[type=submit]")\n
.disabled = false;\n .disabled = false;\n
gadget.props.content_element.querySelector("input[name=new_passwd]")\n gadget.props.content_element.querySelector("input[name=new_passwd]")\n
.value = "";\n .value = "";\n
gadget.props.content_element.querySelector("input[name=repeat_passwd]")\n gadget.props.content_element.querySelector("input[name=repeat_passwd]")\n
.value = "";\n .value = "";\n
gadget.props.content_element.querySelector("input[name=new_passwd]")\n gadget.props.content_element.querySelector("input[name=new_passwd]")\n
.focus();\n .focus();\n
return promiseEventListener(\n return promiseEventListener(\n
gadget.props.content_element.querySelector(\'form.reset-password-form\'),\n gadget.props.content_element.querySelector(\'form.reset-password-form\'),\n
\'submit\',\n \'submit\',\n
...@@ -599,15 +599,15 @@ ...@@ -599,15 +599,15 @@
);\n );\n
})\n })\n
.push(function (submit_event) {\n .push(function (submit_event) {\n
var matched = false;\n var validated = false;\n
new_password = submit_event.target[1].value;\n new_password = submit_event.target[1].value;\n
gadget.props.content_element.querySelector("input[type=submit]")\n gadget.props.content_element.querySelector("input[type=submit]")\n
.disabled = true;\n .disabled = true;\n
matched = validatePassword(\n validated = validatePassword(\n
submit_event.target[1].value,\n submit_event.target[1].value,\n
submit_event.target[2].value\n submit_event.target[2].value\n
);\n );\n
if(matched) {\n if(validated) {\n
return connection_gadget.resetPassword(\n return connection_gadget.resetPassword(\n
submit_event.target[0].value,\n submit_event.target[0].value,\n
submit_event.target[1].value\n submit_event.target[1].value\n
...@@ -618,7 +618,7 @@ ...@@ -618,7 +618,7 @@
}, function (error) {\n }, function (error) {\n
var message = "Password Reset Failed.";\n var message = "Password Reset Failed.";\n
return renderResetPasswordPage(gadget, connection_gadget, message);\n return renderResetPasswordPage(gadget, connection_gadget, message);\n
});\n });\n
} else {\n } else {\n
var message = "Password does not match.";\n var message = "Password does not match.";\n
return renderResetPasswordPage(gadget, connection_gadget, message);\n return renderResetPasswordPage(gadget, connection_gadget, message);\n
...@@ -674,10 +674,7 @@ ...@@ -674,10 +674,7 @@
.allowPublicAcquisition("notifyXMPPConnected", function () {\n .allowPublicAcquisition("notifyXMPPConnected", function () {\n
var gadget = this;\n var gadget = this;\n
gadget.props.connected = true;\n gadget.props.connected = true;\n
return redirectToDefaultPage(gadget)\n return gadget.getDeclaredGadget(CONNECTION_GADGET_SCOPE)\n
.push(function() {\n
return gadget.getDeclaredGadget(CONNECTION_GADGET_SCOPE);\n
})\n
.push(function (connection_gadget) {\n .push(function (connection_gadget) {\n
return connection_gadget.sendPresence();\n return connection_gadget.sendPresence();\n
})\n })\n
...@@ -692,8 +689,11 @@ ...@@ -692,8 +689,11 @@
for (key in all_contacts) {\n for (key in all_contacts) {\n
initializeContact(gadget, all_contacts[key].jid);\n initializeContact(gadget, all_contacts[key].jid);\n
}\n }\n
})\n
.push(function() {\n
return redirectToDefaultPage(gadget);\n
}, function (error) {\n }, function (error) {\n
var error_text = "Fetching Contact List Failed. Please login again.";\n var error_text = "Contact List Update Failed. Please login again.";\n
return renderConnectPage(gadget, error_text);\n return renderConnectPage(gadget, error_text);\n
});\n });\n
})\n })\n
...@@ -998,7 +998,7 @@ ...@@ -998,7 +998,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope1</string> </value> <value> <string>zope</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -1012,7 +1012,7 @@ ...@@ -1012,7 +1012,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>944.54834.23868.16998</string> </value> <value> <string>944.63442.46785.34730</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -1030,7 +1030,7 @@ ...@@ -1030,7 +1030,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1438696276.38</float> <float>1439212776.16</float>
<string>GMT</string> <string>GMT</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