diff options
author | Jason <jason.daurus@gmail.com> | 2016-06-19 02:53:15 +0800 |
---|---|---|
committer | Jason <jason.daurus@gmail.com> | 2016-06-19 02:53:15 +0800 |
commit | d01e49c6d5e474700956a9b7f1171a4229bfa750 (patch) | |
tree | 1f373fc643dd077f24a8738f793d91a1da43d384 /web/src/js/actions.js | |
parent | 23b976a999f41439e83c1010474ec9dc680b8486 (diff) | |
download | mitmproxy-d01e49c6d5e474700956a9b7f1171a4229bfa750.tar.gz mitmproxy-d01e49c6d5e474700956a9b7f1171a4229bfa750.tar.bz2 mitmproxy-d01e49c6d5e474700956a9b7f1171a4229bfa750.zip |
[web] replace SetttingsActions.update with settings.updateSettings
Diffstat (limited to 'web/src/js/actions.js')
-rw-r--r-- | web/src/js/actions.js | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/web/src/js/actions.js b/web/src/js/actions.js index 588245ae..bb1d0dd6 100644 --- a/web/src/js/actions.js +++ b/web/src/js/actions.js @@ -39,27 +39,6 @@ export var ConnectionActions = { } }; -export var SettingsActions = { - update: function (settings) { - - $.ajax({ - type: "PUT", - url: "/settings", - contentType: 'application/json', - data: JSON.stringify(settings) - }); - - /* - //Facebook Flux: We do an optimistic update on the client already. - AppDispatcher.dispatchViewAction({ - type: ActionTypes.SETTINGS_STORE, - cmd: StoreCmds.UPDATE, - data: settings - }); - */ - } -}; - export var FlowActions = { accept: function (flow) { $.post("/flows/" + flow.id + "/accept"); @@ -119,4 +98,4 @@ export var Query = { SEARCH: "s", HIGHLIGHT: "h", SHOW_EVENTLOG: "e" -};
\ No newline at end of file +}; |