Plugin Directory

Changeset 1766105


Ignore:
Timestamp:
11/14/2017 03:39:55 PM (8 years ago)
Author:
alexvorn2
Message:

A new patch for some css problems

Location:
text-widget-fullscreen/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • text-widget-fullscreen/trunk/includes/admin/css/widgets.css

    r1765252 r1766105  
    77}
    88
    9 body.mce-fullscreen #widgets-right .widget.text {
    10     z-index: 9999;
     9body.mce-fullscreen #widgets-right .widget_text {
     10    z-index: 9999 !important;
    1111}
  • text-widget-fullscreen/trunk/includes/admin/js/text-widget-fullscreen-add-widget-classes.js

    r1765252 r1766105  
    88    text_widget_fullscreen_add_widget_classes = {
    99        init : function() {
    10 
    1110            $( '#widgets-right' ).find( 'div.widget' ).each( function() {
    1211                var widget = $( this );
    13                 var widget_slug = widget.children( '.widget-inside' ).find( 'input.id_base' ).val();
    14                 if ( ! widget.hasClass( widget_slug ) ) {
    15                     widget.addClass( widget_slug );
    16                 }
     12                text_widget_fullscreen_add_widget_classes.widget_add_class( widget );
    1713            } );
    1814           
     15            $(document).on('widget-added', function (e, widget) {
     16                e.preventDefault();
     17
     18                text_widget_fullscreen_add_widget_classes.widget_add_class( widget );
     19            });
     20        },
     21
     22        widget_add_class : function( widget ) {
     23            var widget_slug = widget.children( '.widget-inside' ).find( 'input.id_base' ).val();
     24            if ( ! widget.hasClass( widget_slug ) ) {
     25                if ( widget_slug == 'text' ) {
     26                    widget.addClass( 'widget_' + widget_slug );
     27                }
     28            }
    1929        }
    2030    };
  • text-widget-fullscreen/trunk/readme.txt

    r1765252 r1766105  
    33Tags: text, text-widget, widget, editor, fullscreen
    44Requires at least: 4.8.2
    5 Tested up to: 4.8.2
    6 Stable tag: 1.1
     5Tested up to: 4.9
     6Stable tag: 1.2
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5656== Changelog ==
    5757
     58= 1.2 =
     59
     60* Add z-index value to new widgets that were added
     61
    5862= 1.1 =
    5963
  • text-widget-fullscreen/trunk/text-widget-fullscreen.php

    r1765252 r1766105  
    44 Plugin URI: https://wordpress.org/plugins/text-widget-fullscreen
    55 Description: This plugin will add a fullscreen button to your Text Widget.
    6  Version: 1.1
     6 Version: 1.2
    77 Author: Alexandru Vornicescu
    88 Author URI: https://profiles.wordpress.org/alexvorn2
     
    4444        /** Versions **********************************************************/
    4545
    46         $this->version         = '1.1';
     46        $this->version         = '1.2';
    4747
    4848        // Setup some base path and URL information
Note: See TracChangeset for help on using the changeset viewer.