Version 3.3.4

This commit is contained in:
Neo committed 2025-12-19 00:35:52 -08:00
1 parent 78706903a2
commit fb6b5baabc
2206 files changed
+409828 -382984

No files matched your search

+36 -30
View File
@@ -163,8 +163,8 @@ _temp.prototype.template_editor = {
$('add_css_name').value = '';
acp.template_editor.popups['add_css'].hide();
},
onException: function( f,e ){ alert( "Исключение: " + e ); },
onFailure: function( t ){ alert( "Ошибка: " + t.responseText ); },
onException: function( f,e ){ alert( "Exception: " + e ); },
onFailure: function( t ){ alert( "Failure: " + t.responseText ); },
onComplete: function(t){ acp.template_editor.setLoadingMsg(''); }
});
},
@@ -301,8 +301,8 @@ _temp.prototype.template_editor = {
acp.template_editor.popups['add_bit'].hide();
},
onException: function( f,e ){ alert( "Исключение: " + e ); },
onFailure: function( t ){ alert( "Ошибка: " + t.responseText ); },
onException: function( f,e ){ alert( "Exception: " + e ); },
onFailure: function( t ){ alert( "Failure: " + t.responseText ); },
onComplete: function(t){ acp.template_editor.setLoadingMsg(''); }
});
@@ -415,7 +415,7 @@ _temp.prototype.template_editor = {
acp.template_editor.setLoadingMsg( ipb.lang['templates_loading'] );
var url = ipb.vars['base_url'] + "app=core&module=ajax&section=css&do=getCSSGroups&setID=" + acp.template_editor.currentSetData['set_id'] + '&secure_key=' + ipb.vars['md5_hash'];
new Ajax.Request( url.replace( /&/g, '&' ),
{
method: 'get',
@@ -441,8 +441,8 @@ _temp.prototype.template_editor = {
acp.template_editor.enableToolbar('css', current['id'].replace( 'css_file_', '' ) );
},
onFailure: function(t){ alert("Возникла ошибка при выполнении команды"); Debug.error(t.responseText); return; },
onException: function(f,e){ alert("Возникла исключительная ситуация при выполнении команды"); Debug.error(e); return; },
onFailure: function(t){ alert("There was an error executing this command"); Debug.error(t.responseText); return; },
onException: function(f,e){ alert("There was an exception executing this command"); Debug.error(e); return; },
onComplete: function(t){ acp.template_editor.setLoadingMsg(''); }
});
}
@@ -536,7 +536,7 @@ _temp.prototype.template_editor = {
}
acp.template_editor.setLoadingMsg( ipb.lang['templates_loading'] );
var url = ipb.vars['base_url'] + "app=core&module=ajax&section=css&do=getCSSForEdit&setID=" + acp.template_editor.currentSetData['set_id'] + '&css_id=' + acp.template_editor.checkMap( cssid, 'css' ) + '&secure_key=' + ipb.vars['md5_hash'];
new Ajax.Request( url.replace( /&/g, '&' ),
@@ -560,8 +560,8 @@ _temp.prototype.template_editor = {
//Debug.dir( cssfile );
acp.template_editor.openCSSfile( cssid, cssfile );
},
onFailure: function(t){ alert("Возникла ошибка при выполнении команды"); Debug.error(t.responseText); return; },
onException: function(f,e){ alert("Возникла исключительная ситуация при выполнении команды"); Debug.error(e); return; },
onFailure: function(t){ alert("There was an error executing this command"); Debug.error(t.responseText); return; },
onException: function(f,e){ alert("There was an exception executing this command"); Debug.error(e); return; },
onComplete: function(t){ acp.template_editor.setLoadingMsg(''); }
});
@@ -643,8 +643,8 @@ _temp.prototype.template_editor = {
acp.template_editor.enableToolbar('template', current['id'].replace( 'template_', '' ) );
}
},
onFailure: function(t){ alert("Возникла ошибка при выполнении команды"); Debug.error(t.responseText); return; },
onException: function(f,e){ alert("Возникла исключительная ситуация при выполнении команды"); Debug.error(e); return; },
onFailure: function(t){ alert("There was an error executing this command"); Debug.error(t.responseText); return; },
onException: function(f,e){ alert("There was an exception executing this command"); Debug.error(e); return; },
onComplete: function(t){ $('group_' + group).removeClassName('loading'); }
});
},
@@ -857,8 +857,8 @@ _temp.prototype.template_editor = {
}
}
},
onException: function( f,e ){ alert( "Исключение: " + e ); },
onFailure: function( t ){ alert( "Ошибка: " + t.responseText ); },
onException: function( f,e ){ alert( "Exception: " + e ); },
onFailure: function( t ){ alert( "Failure: " + t.responseText ); },
onComplete: function(t){ acp.template_editor.setLoadingMsg(''); }
});
},
@@ -938,6 +938,7 @@ _temp.prototype.template_editor = {
if( acp.template_editor.checkMap( fileid, 'template' ) != t.responseJSON['templateData']['template_id'] )
{
acp.template_editor.modifyMap['template'][ t.responseJSON['templateData']['template_id'] ] = undefined; // Remove old map
acp.template_editor.modifyMap['template'][ fileid ] = t.responseJSON['templateData']['template_id'];
Debug.write("Updated modify map!");
}
@@ -960,6 +961,7 @@ _temp.prototype.template_editor = {
if ( acp.template_editor.checkMap( fileid, 'css' ) != t.responseJSON['cssData'][ info['css_group'] ]['css_id'] )
{
acp.template_editor.modifyMap['css'][ t.responseJSON['cssData'][ info['css_group'] ]['css_id'] ] = t.responseJSON['cssData'][ info['css_group'] ]['css_id']; // Remove old map
acp.template_editor.modifyMap['css'][ fileid ] = t.responseJSON['cssData'][ info['css_group'] ]['css_id'];
Debug.write("Updated modify map! fileid " + fileid + " is now " + acp.template_editor.modifyMap['css'][ fileid ] );
}
@@ -970,8 +972,8 @@ _temp.prototype.template_editor = {
//Debug.dir( t.responseJSON );
}
},
onException: function( f,e ){ alert( "Исключение: " + e ); },
onFailure: function( t ){ alert( "Ошибка: " + t.responseText ); },
onException: function( f,e ){ alert( "Exception: " + e ); },
onFailure: function( t ){ alert( "Failure: " + t.responseText ); },
onComplete: function(t){ acp.template_editor.setLoadingMsg(''); }
});
},
@@ -1017,8 +1019,8 @@ _temp.prototype.template_editor = {
//Debug.dir( template );
acp.template_editor.openTemplateBit( templateid, template );
},
onException: function( f,e ){ alert( "Исключение: " + e ); },
onFailure: function( t ){ alert( "Ошибка: " + t.responseText ); },
onException: function( f,e ){ alert( "Exception: " + e ); },
onFailure: function( t ){ alert( "Failure: " + t.responseText ); },
onComplete: function(t){ acp.template_editor.setLoadingMsg(''); }
} );
},
@@ -1320,6 +1322,7 @@ _temp.prototype.template_editor = {
if( acp.template_editor.checkMap( fileid, 'css' ) != t.responseJSON['cssData']['css_id'] )
{
acp.template_editor.modifyMap['css'][ t.responseJSON['cssData']['css_id'] ] = t.responseJSON['cssData']['css_id']; // Remove old map
acp.template_editor.modifyMap['css'][ fileid ] = t.responseJSON['cssData']['css_id'];
Debug.write("Updated modify map!");
}
@@ -1331,8 +1334,8 @@ _temp.prototype.template_editor = {
acp.template_editor._buildCSS( true );
},
onException: function( f,e ){ alert( "Исключение: " + e ); },
onFailure: function( t ){ alert( "Ошибка: " + t.responseText ); },
onException: function( f,e ){ alert( "Exception: " + e ); },
onFailure: function( t ){ alert( "Failure: " + t.responseText ); },
onComplete: function(t){ acp.template_editor.setLoadingMsg(''); }
});
},
@@ -1363,7 +1366,7 @@ _temp.prototype.template_editor = {
var _id = current['id'].replace('template_', '');
var fileid = ( Object.isUndefined( acp.template_editor.currentlyOpen.get( 'template_' + _id ) ) ) ? acp.template_editor.checkMap( _id, 'template' ) : _id;
var _data = acp.template_editor.currentlyOpen.get( 'template_' + fileid )['template_data'].replace( '"', "'", 'g' ).replace( ''', "'", 'g' );
var _data = acp.template_editor.currentlyOpen.get( 'template_' + fileid )['template_data'].replace( /"/g, "'" ).replace( /'/g, "'" );
var content = ipb.templates['edit_variables'].evaluate( { id: fileid, value: _data } );
@@ -1434,7 +1437,8 @@ _temp.prototype.template_editor = {
Debug.write("File ID returned: " + t.responseJSON['templateData']['template_id']);
if( acp.template_editor.checkMap( fileid, 'template' ) != t.responseJSON['templateData']['template_id'] )
{
{
acp.template_editor.modifyMap['template'][ t.responseJSON['templateData']['template_id'] ] = undefined; // Remove old map
acp.template_editor.modifyMap['template'][ fileid ] = t.responseJSON['templateData']['template_id'];
Debug.write("Updated modify map!");
}
@@ -1450,8 +1454,8 @@ _temp.prototype.template_editor = {
acp.template_editor.popups.get('variables_' + fileid).hide();
},
onException: function( f,e ){ alert( "Исключение: " + e ); },
onFailure: function( t ){ alert( "Ошибка: " + t.responseText ); },
onException: function( f,e ){ alert( "Exception: " + e ); },
onFailure: function( t ){ alert( "Failure: " + t.responseText ); },
onComplete: function(t){ acp.template_editor.setLoadingMsg(''); }
});
@@ -1513,7 +1517,7 @@ _temp.prototype.template_editor = {
// Set status
acp.template_editor.setLoadingMsg( ipb.lang['tpl_savegeneric'] );
new Ajax.Request( url.replace( /&/g, '&' ),
{
method: 'POST',
@@ -1539,10 +1543,11 @@ _temp.prototype.template_editor = {
if( acp.template_editor.checkMap( fileid, 'template' ) != t.responseJSON['templateData']['template_id'] )
{
acp.template_editor.modifyMap['template'][ t.responseJSON['templateData']['template_id'] ] = undefined; // Remove old map
acp.template_editor.modifyMap['template'][ fileid ] = t.responseJSON['templateData']['template_id'];
Debug.write("Updated modify map!");
}
acp.template_editor.currentlyOpen.set( 'template_' + fileid, t.responseJSON['templateData'] );
acp.tabbedEditor.setFileEditedMode( 'template_' + fileid, false );
/* Rebuild Template groups */
@@ -1553,18 +1558,19 @@ _temp.prototype.template_editor = {
if( acp.template_editor.checkMap( fileid, 'css' )!= t.responseJSON['cssData']['css_id'] )
{
acp.template_editor.modifyMap['css'][ t.responseJSON['cssData']['css_id'] ] = undefined; // Remove old map
acp.template_editor.modifyMap['css'][ fileid ] = t.responseJSON['cssData']['css_id'];
Debug.write("Updated modify map!");
}
acp.template_editor.currentlyOpen.set( 'css_' + fileid, t.responseJSON['cssData'] );
acp.tabbedEditor.setFileEditedMode( 'css_file_' + fileid, false );
/* Rebuild CSS groups */
acp.template_editor._buildCSS( true );
}
},
onException: function( f,e ){ alert( "Исключение: " + e ); },
onFailure: function( t ){ alert( "Ошибка: " + t.responseText ); },
onException: function( f,e ){ alert( "Exception: " + e ); },
onFailure: function( t ){ alert( "Failure: " + t.responseText ); },
onComplete: function(t){ acp.template_editor.setLoadingMsg(''); }
});
},
@@ -1681,7 +1687,7 @@ _temp.prototype.template_editor = {
var _dims = document.viewport.getDimensions();
popup = new ipb.Popup( 'comparison', { type: 'pane', modal: true, w: ( _dims.width - 50 ) + 'px', h: ( _dims.height - 50 ), ajaxURL: url, hideAtStart: false, close: 'a[rel="close"]' }, { 'afterAjax': _callback } );
popup = new ipb.Popup( 'comparison', { type: 'pane', modal: true, w: ( _dims.width - 50 ) + 'px', h: ( _dims.height - 150 ), ajaxURL: url, hideAtStart: false, close: 'a[rel="close"]' }, { 'afterAjax': _callback } );
return false;
},