Plugin Directory

Changeset 1897498


Ignore:
Timestamp:
06/23/2018 05:09:52 AM (8 years ago)
Author:
rahburma
Message:

Fixed display issue in web design code snippets

Location:
code-editor-and-compiler/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code-editor-and-compiler/trunk/admin/compilebin-admin.php

    r1895982 r1897498  
    77   public function __construct() {
    88      $this->plugin_name = "code-editor-and-compiler";
    9       $this->plugin_version = "1.2.3";
     9      $this->plugin_version = "1.2.4";
    1010      add_action('admin_enqueue_scripts', array(&$this, 'enqueueScripts'));
    1111      add_action('admin_enqueue_scripts', array(&$this, 'enqueueStyles'));
  • code-editor-and-compiler/trunk/compilebin.php

    r1895982 r1897498  
    1010 * Plugin URI:        https://www.compilebin.com
    1111 * Description:       Execute code online.
    12  * Version:           1.2.3
     12 * Version:           1.2.4
    1313 * Author:            Compilebin
    1414 * Author URI:        https://www.compilebin.com/about
  • code-editor-and-compiler/trunk/public/compilebin-public.php

    r1895982 r1897498  
    77   public function __construct() {
    88      $this->plugin_name = "code-editor-and-compiler";
    9       $this->plugin_version = "1.2.3";
     9      $this->plugin_version = "1.2.4";
    1010      add_action('wp_enqueue_scripts', array(&$this, 'enqueueScripts'));
    1111      add_action('wp_enqueue_scripts', array(&$this, 'enqueueStyles'));
  • code-editor-and-compiler/trunk/public/js/editor-handler-public.js

    r1893890 r1897498  
    277277           
    278278            var elemId = this.id;
    279             var htmlCode = document.getElementById(cdbx_reverseId(elemId) + 'html').innerHTML;
    280             var cssCode = document.getElementById(cdbx_reverseId(elemId) + 'css').innerHTML;
    281             var jsCode = document.getElementById(cdbx_reverseId(elemId) + 'js').innerHTML;
     279            var htmlCode = '';
     280            var cssCode = '';
     281            var jsCode = '';
     282            var htmlElemDiv = document.getElementById(cdbx_reverseId(elemId) + 'html');
     283            var cssElemDiv = document.getElementById(cdbx_reverseId(elemId) + 'css');
     284            var jsElemDiv = document.getElementById(cdbx_reverseId(elemId) + 'js');
     285            if (htmlElemDiv) htmlCode = htmlElemDiv.innerHTML;
     286            if (cssElemDiv) cssCode = cssElemDiv.innerHTML;
     287            if (jsElemDiv) jsCode = jsElemDiv.innerHTML;
    282288
    283289            $(CDBX_HIDDEN_CONTENT_HTML).html(htmlCode);
  • code-editor-and-compiler/trunk/readme.txt

    r1895982 r1897498  
    55Requires at least: 3.1
    66Tested up to: 4.9.4
    7 Stable tag: 1.2.3
     7Stable tag: 1.2.4
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
     
    3535
    3636== Changelog ==
     371.2.4
     38Fixed display issue for web design code snippets.
     39
    37401.2.3
    3841Resolved notices thrown in wp_debug mode.
Note: See TracChangeset for help on using the changeset viewer.