mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 20:41:46 +00:00
Change some URLs associated with subscriptions.
Put all the 'API'-ish URLs in the /json/ namespace so that /subscriptions and /subscriptions/add, etc. can be real user-facing URLs if we want them to be. (imported from commit 1455a32d27e44547ab1874b6289243cb40c85dde)
This commit is contained in:
@@ -42,7 +42,7 @@ $(function () {
|
||||
$('#sidebar a[href="#subscriptions"]').click(function () {
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: 'json/subscriptions/',
|
||||
url: 'json/subscriptions/list',
|
||||
dataType: 'json',
|
||||
timeout: 10*1000,
|
||||
success: function (data) {
|
||||
@@ -85,7 +85,7 @@ $.ajaxSetup({
|
||||
|
||||
function sub(zephyr_class) {
|
||||
// TODO: check the return value and handle an error condition
|
||||
$.post('/subscriptions/add', {new_subscription: zephyr_class});
|
||||
$.post('/json/subscriptions/add', {new_subscription: zephyr_class});
|
||||
}
|
||||
|
||||
function compose_button() {
|
||||
|
||||
Reference in New Issue
Block a user