Merge pull request #1199 from hmhealey/plt600

PLT-600 Renamed channel description to channel header and added channel purpose field
Этот коммит содержится в:
Corey Hulen
2015-10-28 14:44:02 -07:00
родитель 9312272234 019bf6a7fe
Коммит 89f67cd11d
20 изменённых файлов: 535 добавлений и 201 удалений

Просмотреть файл

@@ -589,21 +589,38 @@ export function updateChannel(channel, success, error) {
track('api', 'api_channels_update');
}
export function updateChannelDesc(data, success, error) {
export function updateChannelHeader(data, success, error) {
$.ajax({
url: '/api/v1/channels/update_desc',
url: '/api/v1/channels/update_header',
dataType: 'json',
contentType: 'application/json',
type: 'POST',
data: JSON.stringify(data),
success,
error: function onError(xhr, status, err) {
var e = handleError('updateChannelDesc', xhr, status, err);
var e = handleError('updateChannelHeader', xhr, status, err);
error(e);
}
});
track('api', 'api_channels_desc');
track('api', 'api_channels_header');
}
export function updateChannelPurpose(data, success, error) {
$.ajax({
url: '/api/v1/channels/update_purpose',
dataType: 'json',
contentType: 'application/json',
type: 'POST',
data: JSON.stringify(data),
success,
error: function onError(xhr, status, err) {
var e = handleError('updateChannelPurpose', xhr, status, err);
error(e);
}
});
track('api', 'api_channels_purpose');
}
export function updateNotifyProps(data, success, error) {