浏览代码

add exception message

ming 3 年之前
父节点
当前提交
8d725cb382
共有 1 个文件被更改,包括 4 次插入6 次删除
  1. 4 6
      script_msg.js

+ 4 - 6
script_msg.js

@@ -4,9 +4,7 @@ var left, opacity, scale; //fieldset properties which we will animate
 var animating; //flag to prevent quick multi-click glitasdaches
 
 $(".next").click(function(){
-  if( !validate() ){
-    return false;
-  }
+
   avatar = $('.avatar').val();
   name_title = $('.title_new').val();
   txtARR=[];
@@ -26,7 +24,7 @@ $(".next").click(function(){
 	dataOBJ = {"name":name_title,"text_content":txtARR,"image_urls":imgARR,"avatar":avatar}
 	objstr = JSON.stringify(dataOBJ);
 	console.log(dataOBJ)
-  alert('資料已送出! 請耐心等候')
+
   $.ajax({
 	url: 'http://www.choozmo.com:8888/make_anchor_video_v2',
 	//url: 'http://www.choozmo.com:8888/qqreq',
@@ -35,11 +33,11 @@ $(".next").click(function(){
 	type: 'post',
 	data: objstr,
 	success: function(suc_data) {
-        
+    alert('資料已送出! 請耐心等候')
 	  },
 	//data:JSON.stringify({n1:"12",n2:"22"}),
 	error: function (error) {
-		console.error(error)
+	  alert(error)
 	}
 });