frontend: use camelCase instead of snake_case

This commit is contained in:
Adhityaa
2018-06-16 18:55:27 +05:30
parent 91c2d047d5
commit ef21599109
12 changed files with 18 additions and 18 deletions

View File

@@ -29,7 +29,7 @@
if (idx == -1) {
data.domains[data.cd].moderators.push({"email": email, "timeAgo": "just now"});
global.buttonDisable("#new-mod-button");
global.post(global.commento_origin + "/api/domain/moderator/new", json, function(resp) {
global.post(global.commentoOrigin + "/api/domain/moderator/new", json, function(resp) {
global.buttonEnable("#new-mod-button");
if (!resp.success) {
@@ -68,7 +68,7 @@
if (idx != -1) {
data.domains[data.cd].moderators.splice(idx, 1);
global.post(global.commento_origin + "/api/domain/moderator/delete", json, function(resp) {
global.post(global.commentoOrigin + "/api/domain/moderator/delete", json, function(resp) {
if (!resp.success) {
global.globalErrorShow(resp.message);
return