Created
August 24, 2014 14:51
-
-
Save godDLL/6dfeb1e3e4aa6dcbe69f to your computer and use it in GitHub Desktop.
Fixes reordering of nestedSortable Pages in Wolf CMS admin panel.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
htdocs/wolf/app/views/page/children.php | 4 ++-- | |
htdocs/wolf/app/views/page/index.php | 3 +-- | |
2 files changed, 3 insertions(+), 4 deletions(-) | |
diff --git a/htdocs/wolf/app/views/page/children.php b/htdocs/wolf/app/views/page/children.php | |
index 35de777..eda18d5 100644 | |
--- a/htdocs/wolf/app/views/page/children.php | |
+++ b/htdocs/wolf/app/views/page/children.php | |
@@ -19,7 +19,7 @@ | |
<ul<?php if ($level == 1) echo ' id="site-map" class="sortable tree-root"'; else echo ' class="sortable child"'; ?>> | |
<?php foreach($childrens as $child): ?> | |
<li id="page_<?php echo $child->id; ?>" class="node level-<?php echo $level; if ( ! $child->has_children) echo ' no-children'; else if ($child->is_expanded) echo ' children-visible'; else echo ' children-hidden'; ?>"> | |
- <span> | |
+ <div class='content-children'> | |
<div class="page"> | |
<span class="w1"> | |
<?php if ($child->has_children): ?><img align="middle" alt="toggle children" class="expander<?php if($child->is_expanded) echo ' expanded'; ?>" src="<?php echo PATH_PUBLIC;?>wolf/admin/images/<?php echo $child->is_expanded ? 'collapse': 'expand'; ?>.png" title="" /><?php endif; ?> | |
@@ -47,7 +47,7 @@ | |
<?php endif; ?> | |
<a href="#" id="copy-<?php echo $child->id; ?>" class="copy-page"><img src="<?php echo PATH_PUBLIC;?>wolf/admin/images/copy.png" align="middle" title="<?php echo __('Copy Page'); ?>" alt="<?php echo __('Copy Page'); ?>" /></a> | |
</div> | |
- </span> | |
+ </div><!-- /.content-children --> | |
<?php if ($child->is_expanded) echo $child->children_rows; ?> | |
</li> | |
<?php endforeach; ?> | |
diff --git a/htdocs/wolf/app/views/page/index.php b/htdocs/wolf/app/views/page/index.php | |
index f7d5ab6..8538107 100644 | |
--- a/htdocs/wolf/app/views/page/index.php | |
+++ b/htdocs/wolf/app/views/page/index.php | |
@@ -177,7 +177,7 @@ | |
placeholder: 'placeholder', | |
tabSize: 25, | |
tolerance: 'pointer', | |
- toleranceElement: '> span', | |
+ toleranceElement: '> .content-children', | |
listType: 'ul', | |
helper: 'clone', | |
beforeStop: function(event, ui) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment