Plugin Directory

Changeset 630205


Ignore:
Timestamp:
11/26/2012 05:10:27 PM (13 years ago)
Author:
markparolisi
Message:

adding license

Location:
voce-post-widgets/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • voce-post-widgets/trunk/README.txt

    r630182 r630205  
    55Requires at least: 3.3
    66Tested up to: 3.4
    7 Stable tag: .4
     7Stable tag: .5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5656== Changelog ==
    5757
     58= 0.5 =
     59* Updated documentation
     60* Fixing JS error for undefined vars
     61
    5862= 0.2 =
    5963* Updated documentation.
  • voce-post-widgets/trunk/js/voce-post-widgets.js

    r630146 r630205  
    1 /*global document, $, jQuery, ajaxurl*/
     1/*global document, $, jQuery, ajaxurl, widgetsAdmin*/
    22(function(document, $) {
    33    "use strict";
     
    99        sidebar: '',
    1010        originalSidebar: '',
     11       
    1112        /**
    12      * Handle all of the events
    13      */
     13        * Handle all of the events
     14        * @method init
     15        */
    1416        init : function init() {
    1517            var the_id, rem, $first;
     
    1719            pageWidgets.sidebarWidgets = $.parseJSON(widgetsAdmin.sidebars_widgets.replace(/"/g, '"'));
    1820
    19             // @todo: update hight as widgets are added / expanded
     21            // @todo: update height as widgets are added / expanded
    2022            $('.sidebar').css('height', $('.column-1').height());
    2123
     
    2931            pageWidgets.originalSidebar = $first.closest('.widget').attr('data-sidebar');
    3032
    31             /**
    32          *
    33          */
    3433            $('#sidebar_admin #widget-list, #sidebar_admin #sidebar-widget-list').children('.widget').draggable({
    3534                connectToSortable: '.sidebar',
     
    5251            });
    5352
    54             /**
    55          *
    56          */
    5753            $('.column-2 .sidebar').droppable({
    5854                accept: '.widget',
     
    6157            });
    6258
    63             /**
    64          *
    65          */
    6659            $('.column-2 .sidebar').sortable({
    6760                placeholder: 'placeholder',
     
    10295
    10396            /**
    104          * When the close link is clicked on a widget or a sidebar
    105          * hide the widget-inside element.
    106          */
     97            * When the close link is clicked on a widget or a sidebar
     98            * hide the widget-inside element.
     99            */
    107100            $('a.widget-control-close').live('click', function(e){
    108101                e.preventDefault();
     
    111104
    112105            /**
    113          * When an avilable widget is clicked, show the description
    114          */
     106            * When an avilable widget is clicked, show the description
     107            */
    115108            $('.column-1 .widget-action').live('click', function(e) {
    116109                e.preventDefault();
     
    119112
    120113            /**
    121          * When the arrown on an active widget is clicked, show the form options
    122          */
     114            * When the arrown on an active widget is clicked, show the form options
     115            */
    123116            $('.column-2 .widget-action').live('click', function(e) {
    124117                e.preventDefault();
     
    127120
    128121            /**
    129          * When the delete link is clicked on a widget, remove it from
    130          * the DOM and save the sidebar's state.
    131          */
     122            * When the delete link is clicked on a widget, remove it from
     123            * the DOM and save the sidebar's state.
     124            */
    132125            $('.column-2 .widget-control-remove').live('click', function(e) {
    133126                e.preventDefault();
     
    137130
    138131            /**
    139          * When the save button of an active widget is clicked, make an
    140          * AJAX request and save the form data.
    141          */
     132            * When the save button of an active widget is clicked, make an
     133            * AJAX request and save the form data.
     134            */
    142135            $('.column-2 .widget-control-save').live('click', function(e) {
    143136                e.preventDefault();
     
    146139
    147140            /**
    148          * When a sidebar is clicked set this objects sidebar and originalSidebar
    149          * attributes, and make an AJAX request to get the active widgets for that
    150          * sidebar.
    151          */
     141            * When a sidebar is clicked set this objects sidebar and originalSidebar
     142            * attributes, and make an AJAX request to get the active widgets for that
     143            * sidebar.
     144            */
    152145            $('.column-3 .widget-top').live('click', function(e) {
    153146                e.preventDefault();
     
    183176            });
    184177
    185             /**
    186             * When the save button of a sidebar is clicked, do an AJAX request
    187             * and save the form data.
    188             */
     178            /**
     179            * When the save button of a sidebar is clicked, do an AJAX request
     180            * and save the form data.
     181            */
    189182            $('.column-3 .widget-control-save').live('click', function(e) {
    190183                e.preventDefault();
     
    211204        },
    212205
     206        /**
     207         *@method save
     208         */
    213209        save : function save(widget, del, animate, order) {
    214210            var data, a;
     
    254250            }
    255251        },
    256 
     252       
     253        /**
     254        * When calling the widgets-order AJAX action, you must post
     255        * ALL of the sidebars and widgets, not just the one(s) you are
     256        * updating.
     257        * @method saveOrder
     258        */
    257259        saveOrder : function saveOrder() {
    258             var a;
    259             /**
    260          * When calling the widgets-order AJAX action, you must post
    261          * ALL of the sidebars and widgets, not just the one(s) you are
    262          * updating.
    263          */
     260            var a, sidebar;
     261       
    264262            a = {
    265263                action: 'widgets-order',
     
    284282                );
    285283        },
    286 
     284       
     285        /**
     286         * @method close
     287         */
    287288        close : function close(widget) {
    288289            widget.children('.widget-inside').slideUp('fast', function(){
  • voce-post-widgets/trunk/voce-post-widgets.php

    r630182 r630205  
    55  Description: A better interface for managing your widgets.
    66  Author: johnciacia, markparolisi, voceplatforms
    7   Version: 0.4
     7  Version: 0.5
    88  Author URI: http://vocecommunications.com
     9  License: GPLv2 or later
     10  License URI: http://www.gnu.org/licenses/gpl-2.0.html
    911 */
    1012
Note: See TracChangeset for help on using the changeset viewer.