Plugin Directory

Changeset 2579975


Ignore:
Timestamp:
08/08/2021 04:56:55 PM (5 years ago)
Author:
elgreatly
Message:

fix small bigs

Location:
magic-meta-box/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • magic-meta-box/trunk/includes/repeated-fields/textarea.php

    r1779994 r2579975  
    55    <div class="contentMetaDesc">
    66        <textarea class="textarea" name="<?php echo $field_id ?>" rows="5" cols="50"
    7             <?php if(isset($opt['placeholder']) && !empty($opt['placeholder'])){  ?> placeholder="<?php echo $opt['placeholder'] ?>" <?php } ?>>
    8             <?php echo esc_attr($value_field); ?>
    9         </textarea>
     7            <?php if(isset($opt['placeholder']) && !empty($opt['placeholder'])){  ?> placeholder="<?php echo $opt['placeholder'] ?>" <?php } ?>><?php echo esc_attr($value_field); ?></textarea>
    108    </div>
    119    <?php
  • magic-meta-box/trunk/includes/repeater-fields.php

    r1780015 r2579975  
    22$fieldsArray = array('text', 'password', 'textarea', 'url', 'email', 'date', 'DateTime', 'time', 'num', 'checkbox', 'multicheckbox', 'radio', 'select', 'multiselect', 'color', 'image', 'gallery', 'file', 'embed', 'slider', 'editor');
    33$count_repeat = 0;
    4 $data = (self::gsmb_get($id) == null)? get_post_meta($post->ID,$id,true) : array();
     4$data = (self::gsmb_get($id) == null)? get_post_meta($post->ID,$id,true) : array();
     5$data = $data ? $data : array();
    56?>
    67<div class="containerAddNew">
  • magic-meta-box/trunk/js/meta-box-file.js

    r1151081 r2579975  
    77    var meta_file_frame;
    88    // Runs when the image button is clicked.
    9     $('.meta-file-button').live('click', function(e){
     9    $('.meta-file-button').on('click', function(e){
    1010        $this = $(this);
    1111        console.log('here');
     
    5151    });
    5252    //remove Image
    53     $('.metaboxImage .removeImage').live('click',function(){
     53    $('.metaboxImage .removeImage').on('click',function(){
    5454        $(this).parents('.imageUploadMeta').find('.metaboxImageTitle p').html(''); 
    5555        $(this).parents('.imageUploadMeta').find('img').slideUp('normal',function(){
  • magic-meta-box/trunk/js/meta-box-image.js

    r1142770 r2579975  
    66    var meta_image_frame;
    77    // Runs when the image button is clicked.
    8     $('.meta-image-button').live('click', function(e){
     8    $('.meta-image-button').on('click', function(e){
    99        $this = $(this);
    1010        // Prevents the default action from occuring.
     
    3838    });
    3939    //remove Image
    40     $('.metaboxImage .removeImage').live('click',function(){
     40    $('.metaboxImage .removeImage').on('click',function(){
    4141        $(this).parents('.imageUploadMeta').find('img').slideUp('normal',function(){
    4242            $(this).parents('.imageUploadMeta').find('.metaboxImage').css({'display':'none'});
  • magic-meta-box/trunk/js/metabox-gallery.js

    r1142770 r2579975  
    11jQuery(document).ready(function($){
    22    // The click event for the gallery manage button
    3     $('.manage_gallery').live('click', function() {
     3    $('.manage_gallery').on('click', function() {
    44        $this = $(this);
    55        // Create the shortcode from the current ids in the hidden field
     
    4141        });
    4242    });
    43     $('.clear_gallery').live('click', function() {
     43    $('.clear_gallery').on('click', function() {
    4444        $this = $(this);
    4545        $this.closest('.metaboxGallery').find('.galleryIDs').val('');
  • magic-meta-box/trunk/js/metabox.js

    r1930168 r2579975  
    143143    /* Slider End */
    144144    /* Embed Start */
    145     $('.embedButton').live('click', function(){
     145    $('.embedButton').on('click', function(){
    146146        $(this).closest('.embedContainer').find('.embedIframe').html($(this).closest('.embedContainer').find('.embed').val());
    147147    });
     
    367367    /* Add New Repeat Box End */
    368368    /* Remove Repeat Box Start */
    369     $(".removeMeta").live('click', function() {
     369    $(".removeMeta").on('click', function() {
    370370        var number_repeat = $(this).data('number');
    371371        var number_metabox = $(this).data('number_metabox');
  • magic-meta-box/trunk/js/show-hide-metabox.js

    r1166402 r2579975  
    8181        $.each(gs_show_hide.show[k], function( index, value ) {
    8282            if(index != 'template' && index != 'post_format'){
    83                 $('#' + index + 'checklist input[type="checkbox"]').live('click', function(){
     83                $('#' + index + 'checklist input[type="checkbox"]').on('click', function(){
    8484                    showHideMetaBox();
    8585                });
  • magic-meta-box/trunk/magic-metabox.php

    r1930168 r2579975  
    44Plugin URI: https://wordpress.org/plugins/magic-meta-box/
    55Description: Easy To Create Metabox For Your Theme
    6 Version: 2.4.1
     6Version: 2.4.2
    77Author: Abdelrhman ElGreatly
    88License: GPLv2
Note: See TracChangeset for help on using the changeset viewer.