rabin 7 years ago
parent
commit
b137453aab

+ 3 - 0
tm/template_dir/bottom.html

@@ -44,6 +44,9 @@ function loadLogin()
 function toast(content, url)
 {
     var e = $(".toast");
+    if (!url) {
+        url = false;
+    }
     e.html(content).show();
     var func = function(url)
     {

+ 1 - 2
tm/template_dir/events_infos.html

@@ -66,8 +66,7 @@ function help()
     $.getJSON(url, {events_id:'<{$info.id}>', help_id:'<{$help_id}>', help_session:'<{$help_session}>', source_user:'<{$source_user}>'}, function(t)
     {
         if (t.ok) {
-            toast('助力成功!');
-            location.reload();
+            toast('助力成功!', false);
         } else {
             toast(t.msg, 1);
         }

+ 1 - 1
tm/template_dir/events_try.html

@@ -105,7 +105,7 @@ KISSY.use('node, io', function (S, Node, IO) {
 			, function (data) {
 				if (data.ok) {
 					//showOkMsg();
-					toast('提交成功,请等待管理员审核');
+					toast('提交成功,请等待管理员审核', false);
 				} else {
 					if(data.msg.url){
 						loadLogin();