Explorar el Código

修改字段名称 creator -> owner

visuddhinanda hace 5 años
padre
commit
9740515564
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      app/group/group.js

+ 4 - 4
app/group/group.js

@@ -132,7 +132,7 @@ function group_list(id, list) {
 					} else {
 						/*
 						关闭子小组功能
-						if (result.info.creator == getCookie("userid")) {
+						if (result.info.owner == getCookie("userid")) {
 							$("#button_new_sub_group").show();
 						}
 						//子小组列表
@@ -144,7 +144,7 @@ function group_list(id, list) {
 								html += "<div style='flex:1;'>" + key++ + "</div>";
 								html += "<div style='flex:2;'>" + iterator.name + "</div>";
 								html += "<div style='flex:2;'>";
-								if (iterator.creator == getCookie("userid")) {
+								if (iterator.owner == getCookie("userid")) {
 									html += gLocal.gui.owner;
 								}
 								html += "</div>";
@@ -155,7 +155,7 @@ function group_list(id, list) {
 									gLocal.gui.enter +
 									"</a></div>";
 								html += "<div style='flex:1;'><div class='hover_button'>";
-								if (iterator.creator == getCookie("userid")) {
+								if (iterator.owner == getCookie("userid")) {
 									html +=
 										"<button onclick=\"group_del('" +
 										iterator.id +
@@ -285,7 +285,7 @@ function member_list(id) {
 							}
 							html += "</div>";
 							html += "<div style='flex:1;'><div class='hover_button'>";
-							//if (iterator.creator == getCookie("userid"))
+							//if (iterator.owner == getCookie("userid"))
 							{
 								html +=
 									"<button onclick=\"member_del('" +