Запускаем новый проект!!!
- 24 июня 2016 в 10:44:46
- Просмотров: 618
Мы растем и появляются новые идеи, планы! Вот и готов новый проект "Живые статуи" они отлично вписываются в концепцию любого мероприятия. Живая скульптура встречает гостей, дарит цветы, создает незабываемую атмосферу Вашего праздника. Живые статуи на праздник – отличный инструмент для привлечения внимания аудитории.
Powered by module Blog | News | Reviews | Gallery ver.: 4.34.5 (Commercial) (opencartadmin.com)
');
urll = this.href+'#tab-review';
location = urll;
$('.attention').remove();
return false;
});
} else {
$('#comment .pagination a').live('click', function() {
$('#comment').prepend('
Подождите пожалуйста!
');
urll = this.href+'#tab-review';
location = urll;
$('.attention').remove();
return false;
});
}
function remove_success()
{
$('.success, .warning').fadeIn().animate({
opacity: 0.0
}, 5000, function() {
$('.success, .warning').remove();
});
}
// from config и get
function comment_write(event)
{
$('.success, .warning').remove();
if (typeof(event.data.sorting) == "undefined")
{
sorting = 'none';
} else {
sorting = event.data.sorting;
}
if (typeof(event.data.page) == "undefined")
{
page = '1';
} else {
page = event.data.page;
}
if (typeof(this.id) == "undefined") {
myid = '0';
} else {
myid = this.id.replace('button-comment-','');
}
$('#editor_'+myid).wysibb().sync();
$.ajax(
{
type: 'POST',
url: 'index.php?route=record/record/write&record_id=2&parent=' + myid + '&page=' + page,
dataType: 'json',
data: 'name=' + encodeURIComponent($('#comment_work_'+myid).find('input[name=\'name\']').val()) + '&text=' + encodeURIComponent($('#comment_work_'+myid).find('textarea[name=\'text\']').val()) + '&rating=' + encodeURIComponent($('#comment_work_'+myid).find('input[name=\'rating\']:checked').val() ? $('#comment_work_'+myid).find('input[name=\'rating\']:checked').val() : '') + '&captcha=' + encodeURIComponent($('#comment_work_'+myid).find('input[name=\'captcha\']').val()),
beforeSend: function()
{
$('.success, .warning, .attention').remove();
$('.button-comment').hide();
$('#comment_work_'+myid).hide();
$('#comment_work_'+myid).before('
Подождите пожалуйста!
');
},
success: function(data)
{
$('.button-comment').attr('disabled', false);
$('.success, .attention').remove();
if (data.error)
{
$('#comment_work_'+myid).show();
if ( myid == '0') $('#comment-title').after('
' + data.error + '
');
else
$('#comment_work_'+ myid).prepend('
' + data.error + '
');
}
if (data.success)
{
$.when($('#comment').comments(sorting, page )).done(function(){
if ( myid == '0')
{
$('#comment-title').after('
' + data.success + '
');
}
else
{
$('#comment_work_' + myid).append('
'+ data.success +'
');
}
remove_success();
});
$('.comment_count').html(data.comment_count);
$('.wysibb-text-editor').html('');
$('input[name=\'name\']').val(data.login);
$('textarea[name=\'text\']').val('');
$('input[name=\'rating\']:checked').attr('checked', '');
$('input[name=\'captcha\']').val('');
}
$('.button-comment').show();
}
});
}
ratingdestroy = function (id) {
$('.star-rating-control').each(function() {
$(this).remove();
$(id).removeClass('star-rating-applied').show();
});
}
ratingloader = function (id) {
$(id).rating({
focus: function(value, link){
var tip = $('#hover-test');
var rcolor = $(this).attr('alt');
tip[0].data = tip[0].data || tip.html();
tip.html('
'+link.title+'' || 'value: '+value);
$('.rating-cancel').hide();
},
blur: function(value, link){
var tip = $('#hover-test');
$('#hover-test').html(tip[0].data || '');
$('.rating-cancel').hide();
}
});
$('.rating-cancel').hide();
}
wisybbdestroy = function () {
$('.editor').each(function() {
var data = $(this).data("wbb");
if (data) {
$(this).destroy();
}
});
ratingdestroy('.visual_star');
}
wisybbinit = function(cid) {
if (typeof(this.id) == "undefined") {
myid = '0';
} else {
myid = this.id;
}
if (myid=='0') {
myid = 'editor_'+cid;
}
$('#'+myid).wysibb({
img_uploadurl: "catalog/view/javascript/wysibb/iupload.php",
buttons: 'bold,italic,underline,|,img,video,link,|,fontcolor,fontsize,|'
});
$('.wysibb-body').css('height',$('.blog-textarea_height').css('height'));
$('span.powered').hide();
}
wisybbloader = function(cid) {
wisybbdestroy();
wisybbinit(cid);
ratingloader('.visual_star');
}
$(document).ready(function(){
$('.button-comment').unbind();
$('.button-comment').bind('click',{ }, comment_write);
$('#comment_id_reply_0').click();
//captcha_fun();
});