|
@@ -149,10 +149,7 @@ $(function(){
|
|
onComplete: function(evn) {
|
|
onComplete: function(evn) {
|
|
submitCompany()
|
|
submitCompany()
|
|
console.log('onComplete')
|
|
console.log('onComplete')
|
|
- setTimeout(function(){
|
|
|
|
- window.location.href = '../moments/index.html'
|
|
|
|
- zeroModal.close('1');
|
|
|
|
- },3000);
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -162,7 +159,12 @@ $(function(){
|
|
function submitCompany(){
|
|
function submitCompany(){
|
|
|
|
|
|
var company=window.localStorage.getItem("loginCompany")
|
|
var company=window.localStorage.getItem("loginCompany")
|
|
- company=JSON.parse(company)
|
|
|
|
|
|
+ if(company){
|
|
|
|
+ company=JSON.parse(company)
|
|
|
|
+ }else{
|
|
|
|
+ company={}
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
var time=(1900+new Date().getYear())+"."+(new Date().getMonth()+1)+"."+new Date().getDate()
|
|
var time=(1900+new Date().getYear())+"."+(new Date().getMonth()+1)+"."+new Date().getDate()
|
|
var postmoment={
|
|
var postmoment={
|
|
@@ -180,7 +182,10 @@ $(function(){
|
|
}
|
|
}
|
|
})
|
|
})
|
|
window.localStorage.setItem("postmoment",JSON.stringify(postmoment))
|
|
window.localStorage.setItem("postmoment",JSON.stringify(postmoment))
|
|
-
|
|
|
|
|
|
+ setTimeout(function(){
|
|
|
|
+ window.location.href = '../moments/index.html'
|
|
|
|
+ zeroModal.close('1');
|
|
|
|
+ },3000);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|