Oops. Forgot to add the themepreview.png file which is a dummy icon for themes that don't include screenshots. Also in last commit several changes weren't documented, including: Moved several page manipulation functions from PageUtils to PageProcess. Fixed debug message in l10n.js. Started switchover to new rollback API and log_id column replacing time_id as key.
+ − // Page toolbar - selecting buttons
+ −
+ − function unselectAllButtonsMajor()
+ − {
+ − if ( !document.getElementById('pagebar_main') )
+ − return false;
+ − obj = document.getElementById('pagebar_main').firstChild;
+ − while(obj)
+ − {
+ − if(obj.id == 'mdgToolbar_article' || obj.id == 'mdgToolbar_discussion')
+ − {
+ − $dynano(obj).rmClass('selected');
+ − }
+ − obj = obj.nextSibling;
+ − }
+ − }
+ −
+ − function unselectAllButtonsMinor()
+ − {
+ − if ( !document.getElementById('pagebar_main') )
+ − return false;
+ − obj = document.getElementById('pagebar_main').firstChild.nextSibling;
+ − while(obj)
+ − {
+ − if ( !$dynano(obj).hasClass('selected') )
+ − {
+ − obj = obj.nextSibling;
+ − continue;
+ − }
+ − if(obj.id != 'mdgToolbar_article' && obj.id != 'mdgToolbar_discussion')
+ − {
+ − if ( obj.className )
+ − $dynano(obj).rmClass('selected');
+ − }
+ − obj = obj.nextSibling;
+ − }
+ − }
+ −
+ − function selectButtonMajor(which)
+ − {
+ − if ( !document.getElementById('pagebar_main') )
+ − return false;
+ − var dom = document.getElementById('mdgToolbar_'+which);
+ − if ( !dom )
+ − return false;
+ − if(typeof(dom) == 'object')
+ − {
+ − unselectAllButtonsMajor();
+ − $dynano('mdgToolbar_'+which).addClass('selected');
+ − }
+ − }
+ −
+ − function selectButtonMinor(which)
+ − {
+ − if ( !document.getElementById('pagebar_main') )
+ − return false;
+ − if(typeof(document.getElementById('mdgToolbar_'+which)) == 'object')
+ − {
+ − unselectAllButtonsMinor();
+ − $dynano('mdgToolbar_'+which).addClass('selected');
+ − }
+ − }
+ −