Version 3.2.3
This commit is contained in:
1 parent
ae5c01cc78
commit
78706903a2
2641 files changed
+228363
-201264
No files matched your search
+26
-6
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
var IPBACP = Class.create({
|
||||
|
||||
autocompleteWrap: new Template("<ul id='#{id}' class='ipbmenu_content' style='width: 250px;'></ul>"),
|
||||
@@ -29,7 +29,13 @@ var IPBACP = Class.create({
|
||||
onSuccess: function(t){
|
||||
if( t.responseText == 'logout' )
|
||||
{
|
||||
alert( "Сессия истекла. Нажмите OK для перехода к форме входа." );
|
||||
alert( ipb.lang['session_timed_out'] );
|
||||
window.location.href = ipb.vars['base_url'];
|
||||
}
|
||||
|
||||
if( t.responseJSON && t.responseJSON['__session__expired__log__out__'] )
|
||||
{
|
||||
alert( ipb.lang['session_timed_out'] );
|
||||
window.location.href = ipb.vars['base_url'];
|
||||
}
|
||||
}
|
||||
@@ -42,7 +48,21 @@ var IPBACP = Class.create({
|
||||
$$('.ajaxWithDialogueTrigger').each( function( elem ) {
|
||||
elem.identify();
|
||||
elem.observe( 'click', acp.ajaxWithResultClickThrough );
|
||||
})
|
||||
});
|
||||
|
||||
/* License expired notification close */
|
||||
if( $('license-close') )
|
||||
{
|
||||
$('license-close').observe( 'click', function( elem ) {
|
||||
var cookieExpire = new Date();
|
||||
cookieExpire.setDate( cookieExpire.getDate()+30 );
|
||||
|
||||
ipb.Cookie.set( 'ignore-license-notice', 1, cookieExpire.toUTCString() );
|
||||
var effect = new Effect.Fade( $('license_notice_expired'), { duration: 0.3, afterFinish: function(){
|
||||
$$('body')[0].removeClassName('expired_license');
|
||||
} } );
|
||||
} );
|
||||
}
|
||||
|
||||
}.bind(this));
|
||||
},
|
||||
@@ -94,7 +114,7 @@ var IPBACP = Class.create({
|
||||
{
|
||||
if ( ! t.responseJSON )
|
||||
{
|
||||
acp.errorDialogue( 'Oops, something has gone wrong. Sadly I am unable to tell you what. :(' );
|
||||
acp.errorDialogue( 'К сожалению, возникла проблема при обработке запроса :(' );
|
||||
}
|
||||
if ( t.responseJSON['error'] )
|
||||
{
|
||||
@@ -115,7 +135,7 @@ var IPBACP = Class.create({
|
||||
*/
|
||||
errorDialogue: function( text )
|
||||
{
|
||||
content = "<h3>Error</h3><div class='ajax-inline-error' style='height: 20px; text-align:center'><p>" + text + "</p></div>";
|
||||
content = "<h3>Ошибка</h3><div class='ajax-inline-error' style='height: 20px; text-align:center'><p>" + text + "</p></div>";
|
||||
|
||||
new ipb.Popup( 'generic__errorDialogue', { type: 'pane',
|
||||
initial: content,
|
||||
@@ -134,7 +154,7 @@ var IPBACP = Class.create({
|
||||
*/
|
||||
okDialogue: function( text )
|
||||
{
|
||||
content = "<h3>Message</h3><div class='ajax-inline-message' style='height: 20px; text-align:center'><p>" + text + "</p></div>";
|
||||
content = "<h3>Сообщение</h3><div class='ajax-inline-message' style='height: 20px; text-align:center'><p>" + text + "</p></div>";
|
||||
|
||||
new ipb.Popup( 'generic__okDialogue', { type: 'pane',
|
||||
initial: content,
|
||||
|
||||
Reference in new issue
Block a user