Version 3.2.3

This commit is contained in:
Neo committed 2025-12-19 00:34:03 -08:00
1 parent ae5c01cc78
commit 78706903a2
2641 files changed
+228363 -201264

No files matched your search

+73 -8
View File
@@ -1,28 +1,91 @@
document.observe("dom:loaded", function()
{
$$("#user_navigation a").each( function(e) { e.setStyle( { 'display' : 'block', 'font-size': '1.4em' } ); } );
$$("#secondary_navigation a").each( function(e) { Event.observe(e, "click", loadUrl ); } );
$$(".touch-row").each(function(e) { Event.observe(e, "click", touchRowClick); addArrow(e); });
$$("a.prev:not(.disabled), a.next:not(.disabled)").invoke("on", "click", loadUrl);
$$(".post").each(function(e) { Event.observe(e, "click", postClick); });
$$('.sd_content').invoke('on', 'click', '.sd_content', toggleDeletedContent);
Event.observe($('options-button'), "click", openNavigation);
if($('filter-option')) {Event.observe($('filter-option'), "click", openFilter);}
$('options-button').setStyle({'display': 'block'});
if( $('nav_markread') ){
$('nav_markread').down('a').observe('click', markAsRead);
};
if( $('show_skins') ){
$('show_skins').on('click', function(e){
$('show_skins').hide();
$('show_skins_box').show();
Event.stop(e);
return false;
});
}
if( $('show_langs') ){
$('show_langs').on('click', function(e){
$('show_langs').hide();
$('show_langs_box').show();
Event.stop(e);
return false;
});
}
/* Set this here to 'toggle' works later */
$('shade').setStyle({'display': 'none'});
if ( $('filter-letters') )
{
if ( $('filter-letters') ){
$('filter-letters').toggleClassName('hidden');
}
// Set up user nav box
var items = $("user_navigation").down("ul").select("li").size();
var diff = 3 - (items % 3);
for(i=0; i<diff; i++){
$("user_navigation").down("ul").insert({bottom: new Element("li").addClassName("dummy").insert( new Element("span") ) });
}
});
function toggleDeletedContent(e, element)
{
Event.stop(e);
var id = element.id.replace('seeContent_', '');
$('postsDelete-' + id).hide();
$('post-' + id).show();
}
function markAsRead(e)
{
if( !confirm( ipb.lang['clear_markboard'] ) ){
Event.stop(e);
}
}
function mobileFilter( e, element )
{
// Does the pane exist?
if( !$( element.id + '_pane' ) ){
return;
}
$('shade').toggle();
$( element.id + '_pane' ).show();
}
function closePane( e, element )
{
Event.stop(e);
$(element).up(".ipsFilterPane").hide();
$('shade').hide();
}
/**
* Add the touch arrow */
function addArrow(e)
{
d = e.getDimensions();
t = ( d.height / 2 ) - 12;
t = ( d.height / 2 ) - 18;
if ( ! e.inspect().match( '<h2' ) )
{
@@ -48,16 +111,18 @@ function loadUrl( e )
function postClick()
{
$(this.id + '-controls').toggleClassName('visible');
if( $(this.id + '-controls') ){
$(this.id + '-controls').toggleClassName('visible');
}
}
function openNavigation()
{
vp = document.viewport.getDimensions();
//vp = document.viewport.getDimensions();
var elem = $( document.body ).getLayout();
$('user_navigation').toggle();
$('user_navigation').setStyle( { 'position': 'absolute', 'width': ( vp.width - 20 ) + 'px' } );
$('options-button').update($('user_navigation').visible() ? '&laquo;' : '&raquo;');
$('user_navigation').setStyle( { 'position': 'absolute', 'width': elem.get('margin-box-width') + 'px' } );
$('shade').toggle();
}