Plugin Directory

Changeset 1719993


Ignore:
Timestamp:
08/27/2017 01:55:40 AM (9 years ago)
Author:
soojooko
Message:

minor bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chroma-lightbox/trunk/admin/class-chroma_lightbox-settings.php

    r1719991 r1719993  
    5858            $field .= "id='".$name."' ";
    5959            $field .= "name='chroma_lightbox[settings][".$name."]' ";
    60             if ($args["dep"]) {
     60            if (isset($args["dep"])) {
    6161                $field .= "data_dep='".$args["dep"]."' ";
    6262            }
     
    190190                $this->settings_fields("section_2", "wrapper-element", "Wrapper Element", "input", "text", array("dep"=>"gallery-active"));
    191191                $this->settings_fields("section_3", "background-color", "Background Color", "input", "text", array());
    192                 $this->settings_fields("section_3", "background-opacity", "Background Opacity", "input", "number", array());
     192                $this->settings_fields("section_3", "background-opacity", "Background Opacity", "input", "number", array("step"=>0.01, "min"=>0, "max"=>1));
    193193                $this->settings_fields("section_4", "frame-active", "Activate Frame", "input", "checkbox", array());
    194194                $this->settings_fields("section_4", "frame-width", "Frame Width (px)", "input", "number", array("dep"=>"frame-active"));
Note: See TracChangeset for help on using the changeset viewer.