LiveJournal: remove unused variable.

master
Artem Sapegin 2014-11-21 08:06:56 +03:00
parent c79a2fc260
commit b7db698af6
1 changed files with 13 additions and 16 deletions

View File

@ -18,22 +18,19 @@
<script> <script>
var socialLikesButtons = { var socialLikesButtons = {
livejournal: { livejournal: {
click: function(e) { click: function() {
var form = this._livejournalForm; var html = this.widget.data('html')
if (!form) { .replace(/{url}/g, this.options.url)
var html = this.widget.data('html') .replace(/{title}/g, this.options.title)
.replace(/{url}/g, this.options.url) .replace(/&/g, '&amp;')
.replace(/{title}/g, this.options.title) .replace(/"/g, '&quot;');
.replace(/&/g, '&amp;') var form = $(
.replace(/"/g, '&quot;'); '<form action="http://www.livejournal.com/update.bml" method="post" target="_blank" accept-charset="UTF-8">' +
form = $( '<input type="hidden" name="mode" value="full">' +
'<form action="http://www.livejournal.com/update.bml" method="post" target="_blank" accept-charset="UTF-8">' + '<input type="hidden" name="subject" value="' + this.options.title + '">' +
'<input type="hidden" name="mode" value="full">' + '<input type="hidden" name="event" value="' + html + '">' +
'<input type="hidden" name="subject" value="' + this.options.title + '">' + '</form>'
'<input type="hidden" name="event" value="' + html + '">' + );
'</form>'
);
}
form.submit(); form.submit();
} }
} }