WordPress.org

Plugin Directory

Changeset 372720


Ignore:
Timestamp:
04/13/11 23:26:20 (3 years ago)
Author:
bergius
Message:

preparing version 0.1.1

Location:
cms-page-order/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cms-page-order/trunk/cms-page-order.php

    r372624 r372720  
    44Plugin URI: http://wordpress.org/extend/plugins/cms-page-order/ 
    55Description: Change the page order with quick and easy drag and drop. 
    6 Version: 0.1 
     6Version: 0.1.1 
    77Author: Tobias Bergius 
    88Author URI: http://tobiasbergius.se/ 
     
    3232*/ 
    3333 
    34 define( 'CMSPO_VERSION', '0.1' ); 
     34define( 'CMSPO_VERSION', '0.1.1' ); 
    3535define( 'CMSPO_URL', WP_PLUGIN_URL . '/cms-page-order/' ); 
    3636 
     
    6060    wp_enqueue_script( 'jquery-ui-sortable', '', array('jquery'), false ); 
    6161    wp_enqueue_script( 'jquery-ui-effects', '', array('jquery', 'jquery-ui'), false ); 
    62     wp_enqueue_script( 'jquery-ui-nestedsortable', CMSPO_URL . 'scripts/jquery.ui.nestedSortable.js', array('jquery', 'jquery-ui-sortable') ); 
     62    wp_enqueue_script( 'jquery-ui-nestedsortable', CMSPO_URL . 'scripts/jquery.ui.nestedSortable.js', array('jquery', 'jquery-ui-sortable'), '1.3.3' ); 
    6363    wp_enqueue_script( 'cms-page-order', CMSPO_URL . 'scripts/cms-page-order.js', array('jquery', 'jquery-ui-sortable', 'jquery-ui-nestedsortable'), CMSPO_VERSION ); 
    6464    wp_register_style( 'cmspo_stylesheet', CMSPO_URL . 'styles/style.css', '', CMSPO_VERSION ); 
     
    278278    function start_lvl(&$output, $depth) { 
    279279        $indent = str_repeat("\t", $depth); 
    280         $output .= '<ol class="cmspo-children">'; 
     280        $output .= "\n$indent<ol class=\"cmspo-children\">\n"; 
    281281    } 
    282282    function end_lvl(&$output, $depth) { 
    283283        $indent = str_repeat("\t", $depth); 
    284         $output .= "</ol>"; 
     284        $output .= "$indent</ol>\n"; 
    285285    } 
    286286    function start_el(&$output, $page, $depth, $args) { 
     
    375375 
    376376    } 
    377     function end_el(&$output, $page, $depth) { 
    378         $output .= "</li>"; 
    379     } 
    380377} 
    381378 
  • cms-page-order/trunk/readme.txt

    r371219 r372720  
    44Tags: page, pages, posts, order, cms, drag-and-drop, rearrage, reorder, management, manage, admin 
    55Requires at least: 3.1 
    6 Tested up to: 3.1.1 
    7 Stable tag: 0.1 
     6Tested up to: 3.2 
     7Stable tag: 0.1.1 
    88 
    99Change the page order with quick and easy drag and drop. 
     
    4343== Changelog == 
    4444 
     45= 0.1.1 = 
     46* Fixes a problem with permalinks not updating 
     47* Updated nestedSotrtable from 1.3.2 to 1.3.3 
     48 
    4549= 0.1 = 
    4650* Some functions rewritten 
  • cms-page-order/trunk/scripts/jquery.ui.nestedSortable.js

    r371219 r372720  
    11/* 
    22 * jQuery UI Nested Sortable 
    3  * v 1.3.2 / 9 apr 2011 
     3 * v 1.3.3 / 12 apr 2011 
    44 * http://mjsarfatti.com/sandbox/nestedSortable 
    55 * 
     
    116116            var level = this._getLevel(this.placeholder); 
    117117            var childLevels = this._getChildLevels(this.helper); 
    118             var previousItem = (this.placeholder[0].previousSibling && this.placeholder[0].previousSibling.nodeName == 'LI') ? $(this.placeholder[0].previousSibling) : null; 
     118            var previousItem = this.placeholder[0].previousSibling ? $(this.placeholder[0].previousSibling) : null; 
    119119            if (previousItem != null) { 
    120                 while (previousItem[0].nodeType != 1 || previousItem[0] == this.currentItem[0]) { 
     120                while (previousItem[0].nodeName.toLowerCase() != 'li' || previousItem[0] == this.currentItem[0]) { 
    121121                    if (previousItem[0].previousSibling) { 
    122122                        previousItem = $(previousItem[0].previousSibling); 
Note: See TracChangeset for help on using the changeset viewer.