v1.1.3 fix hide bug

git-svn-id: https://plugins.svn.wordpress.org/pagemash/trunk@49191 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
jmash 2008-06-05 08:04:26 +00:00
parent 157f42aa69
commit 41e664b6a9
2 changed files with 9 additions and 10 deletions

View File

@ -3,7 +3,7 @@ Contributors: JoelStarnes
Tags: order pages, ajax, re-order, drag-and-drop, admin, manage, page, pages, sidebar, header, hide, Tags: order pages, ajax, re-order, drag-and-drop, admin, manage, page, pages, sidebar, header, hide,
Requires at least: 2.1 Requires at least: 2.1
Tested up to: 2.5 Tested up to: 2.5
Stable tag: 1.1.2 Stable tag: 1.1.3
Organise page order and manage page structure with this simple drag-and-drop Ajax interface. Organise page order and manage page structure with this simple drag-and-drop Ajax interface.
@ -51,6 +51,9 @@ Any good up-to-date browser should work fine. I test in Firefox, IE7, Safari and
==Change Log== ==Change Log==
* 1.1.3
* Fixed hide bug that appeared on some systems
* 1.1.2 * 1.1.2
* Added Expand all | Collapse all buttons * Added Expand all | Collapse all buttons

View File

@ -4,7 +4,7 @@ Plugin Name: pageMash
Plugin URI: http://joelstarnes.co.uk/pagemash/ Plugin URI: http://joelstarnes.co.uk/pagemash/
Description: pageMash > pageManagement [WP_Admin > Manage > pageMash] Description: pageMash > pageManagement [WP_Admin > Manage > pageMash]
Author: Joel Starnes Author: Joel Starnes
Version: 1.1.2 Version: 1.1.3
Author URI: http://joelstarnes.co.uk/ Author URI: http://joelstarnes.co.uk/
CHANGELOG: CHANGELOG:
@ -20,6 +20,7 @@ Release: Date: Description:
1.1.0 24 Apr 2008 Added quick rename, externalised scripts, changed display of edit|hide|rename links, deregisters prototype 1.1.0 24 Apr 2008 Added quick rename, externalised scripts, changed display of edit|hide|rename links, deregisters prototype
1.1.1 29 Apr 2008 Fix a bug with console.log for safari, removed php code from js&css scripts to fix error 1.1.1 29 Apr 2008 Fix a bug with console.log for safari, removed php code from js&css scripts to fix error
1.1.2 24 May 2008 Added Expand all | Collapse all buttons 1.1.2 24 May 2008 Added Expand all | Collapse all buttons
1.1.3 04 Jun 2008 Fixed hide bug that appeared on some systems
*/ */
#########CONFIG OPTIONS############################################ #########CONFIG OPTIONS############################################
@ -78,13 +79,8 @@ function pageMash_getPages($post_parent){
if ($pageposts == true){ //if $pageposts == true then it does have sub-page(s), so list them. if ($pageposts == true){ //if $pageposts == true then it does have sub-page(s), so list them.
echo (0 === $post_parent) ? '<ul id="pageMash_pages">' : '<ul>'; //add this ID only to root 'ul' element echo (0 === $post_parent) ? '<ul id="pageMash_pages">' : '<ul>'; //add this ID only to root 'ul' element
foreach ($pageposts as $page): //list pages, [the 'li' ID must be pm_'page ID'] foreach ($pageposts as $page): //list pages, [the 'li' ID must be pm_'page ID'] ?>
if(get_option('exclude_pages')){ //need this for first time run when exclude_pages are undefined <li id="pm_<?php echo $page->ID; ?>"<?php if(get_option('exclude_pages')){ if(in_array($page->ID, $excludePagesList)) echo ' class="remove"'; }//if page is in exclude list, add class remove ?>>
if(in_array($page->ID, $excludePagesList))
$liClass="remove"; //if page is in exclude list, add class remove
}
?>
<li id="pm_<?php echo $page->ID;?>"<?php if($liClass) echo ' class="'.$liClass.'"'; ?>>
<span class="title"><?php echo $page->post_title;?></span> <span class="title"><?php echo $page->post_title;?></span>
<span class="pageMash_box"> <span class="pageMash_box">
<span class="pageMash_more">&raquo;</span> <span class="pageMash_more">&raquo;</span>
@ -116,7 +112,7 @@ function pageMash_main(){
<div id="debug_list"></div> <div id="debug_list"></div>
<div id="pageMash" class="wrap"> <div id="pageMash" class="wrap">
<div id="pageMash_checkVersion" style="float:right; font-size:.7em; margin-top:5px;"> <div id="pageMash_checkVersion" style="float:right; font-size:.7em; margin-top:5px;">
version [1.1.2] version [1.1.3]
</div> </div>
<h2 style="margin-bottom:0; clear:none;">pageMash - pageManagement</h2> <h2 style="margin-bottom:0; clear:none;">pageMash - pageManagement</h2>
<p style="margin-top:4px;"> <p style="margin-top:4px;">