OSDN Git Service
(root)
/
newslash
/
newslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16210e7
)
js/newslash.js: add changeEmail()
author
hylom
<hylom@users.sourceforge.jp>
Mon, 5 Nov 2018 11:27:12 +0000
(20:27 +0900)
committer
hylom
<hylom@users.sourceforge.jp>
Mon, 5 Nov 2018 11:27:12 +0000
(20:27 +0900)
src/newslash_web/public/js/newslash.js
patch
|
blob
|
history
diff --git
a/src/newslash_web/public/js/newslash.js
b/src/newslash_web/public/js/newslash.js
index
c41d145
..
cb97f79
100644
(file)
--- a/
src/newslash_web/public/js/newslash.js
+++ b/
src/newslash_web/public/js/newslash.js
@@
-134,6
+134,13
@@
function _initNewslash() {
return this.post(url, data);
};
+ Newslash.prototype.changeEmail = function (newAddress) {
+ options = options || {};
+ var url = "/user";
+ var data = { type: "email", address: newAddress, };
+ return this.post("/user", data);
+ };
+
Newslash.prototype.getMessageSettings = function getMessageSettings () {
return this.get("/user?type=message_config");
};