Изменения

Перейти к навигации Перейти к поиску
нет описания правки
Строка 132: Строка 132:     
CommentToVk.prototype.publish = function() {
 
CommentToVk.prototype.publish = function() {
 +
var instance = this;
 
var link = this.publishFormLink.val();
 
var link = this.publishFormLink.val();
 
var text = this.publishFormText.val();
 
var text = this.publishFormText.val();
Строка 140: Строка 141:  
owner_id : -47630162,
 
owner_id : -47630162,
 
from_group : 1,
 
from_group : 1,
message : text + '\n\n' + link,
+
message : text,
 +
attachments : link,
 
signed : 0,
 
signed : 0,
 
publish_date : Math.floor(date.getTime() / 1000),
 
publish_date : Math.floor(date.getTime() / 1000),
Строка 146: Строка 148:  
console.log(r);
 
console.log(r);
 
if (r.response) {
 
if (r.response) {
this.publishDialog.dialog("close");
+
localStorage['CommentsToVk_lastDate'] = date.getTime();
 +
instance.publishDialog.dialog("close");
 +
return;
 
}
 
}
 
if (r.error) {
 
if (r.error) {
Анонимный участник

Навигация