ошибка в компонете клубы
ошибка в клубах
elseif(!$is_karma_enabled){ cmsCore::jsonOutput(array('error' => true, 'text' => '<p><strong>'.$_LANG['NEED_KARMA_ALBUM'].'</strong></p><p>'.$_LANG['NEEDED'].' '.$club['album_min_karma'].', '.$_LANG['HAVE_ONLY'].' '.$inUser->karma.'.</p><p>'.$_LANG['WANT_SEE'].' <a href="/users/'.$inUser->id.'/karma.html">'.$_LANG['HISTORY_YOUR_KARMA'].'</a>?</p>'));
cmsCore::jsonOutput(array('error' => true, 'text' =>$_LANG['NEED_KARMA_ALBUM'].$_LANG['NEEDED'].' '.$club['album_min_karma'].', '.$_LANG['HAVE_ONLY'].' '.$inUser->karma));
addAlbum: function(club_id) { core.message(LANG_ADD_PHOTOALBUM); $('#popup_ok').val(LANG_SAVE).show(); $('#popup_message').html('<script type="text/javascript" src="/includes/jquery/jquery.form.js"></script><form action="/components/clubs/ajax/createalbum.php" method="post" id="create_album"><input type="hidden" name="club_id" value="'+club_id+'" /><table border="0" cellspacing="0" cellpadding="10" align="left"><tbody><tr><td width="140"><strong>'+LANG_ALBUM_TITLE+': </strong></td><td><input onkeydown="if(13==event.keyCode){return false;}" type="text" class="text-input" name="title" id="title" style="width:300px"/></td></tr></tbody></table></form>'); $('#title').focus(); $('#popup_progress').hide(); $('#popup_ok').click(function(){ $('#popup_ok').prop('disabled', true); $('.ajax-loader').show(); var options = { success: clubs.doaddAlbum, dataType: 'json' }; $('#create_album').ajaxSubmit(options); }); }, doaddAlbum: function(result, statusText, xhr, $form){ $('.ajax-loader').hide(); if(statusText == 'success'){ if(result.error == true){ core.show_popup_info(result.text, 'error'); $('#popup_ok').prop('disabled', false); } else { window.location.href = '/clubs/photoalbum'+result.album_id; } } else { core.alert(statusText, LANG_ERROR); } }
addAlbum: function(club_id) { core.message(LANG_ADD_PHOTOALBUM); $('#popup_ok').val(LANG_SAVE).show(); $('#popup_message').html('<script type="text/javascript" src="/includes/jquery/jquery.form.js"></script><form action="/components/clubs/ajax/createalbum.php" method="post" id="create_album"><input type="hidden" name="club_id" value="'+club_id+'" /><table border="0" cellspacing="0" cellpadding="10" align="left"><tbody><tr><td width="140"><strong>'+LANG_ALBUM_TITLE+': </strong></td><td><input onkeydown="if(13==event.keyCode){return false;}" type="text" class="text-input" name="title" id="title" style="width:300px"/></td></tr></tbody></table><div class="sess_messages" style="display:none"><div class="message_info" id="error_mess"></div></div></form>'); $('#title').focus(); $('#popup_progress').hide(); $('#popup_ok').click(function(){ $('#popup_ok').prop('disabled', true); $('.ajax-loader').show(); var options = { success: clubs.doaddAlbum, dataType: 'json' }; $('#create_album').ajaxSubmit(options); }); }, doaddAlbum: function(result, statusText, xhr, $form){ $('.ajax-loader').hide(); $('.sess_messages').fadeOut(); if(statusText == 'success'){ if(result.error == true){ $('#error_mess').html(result.text); $('.sess_messages').fadeIn(); $('#popup_ok').prop('disabled', false); } else { window.location.href = '/clubs/photoalbum'+result.album_id; } } else { core.alert(statusText, LANG_ERROR); } }