From 9f0a3521da0f1d9822d00bcc636ca44c1ee4ad79 Mon Sep 17 00:00:00 2001 From: Petzold Date: Wed, 24 Mar 2021 12:09:09 +0100 Subject: [PATCH] remove transparency slider from colorpicker #56 --- Views/MainAdmin/SubPlots.cshtml | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/Views/MainAdmin/SubPlots.cshtml b/Views/MainAdmin/SubPlots.cshtml index fab6033..b881ab6 100644 --- a/Views/MainAdmin/SubPlots.cshtml +++ b/Views/MainAdmin/SubPlots.cshtml @@ -145,7 +145,7 @@ .BindTo(new SelectList(Model.colorList)) .SelectedIndex(0)) - + Coordinate Type: @@ -361,17 +361,15 @@ keywords: $(this).attr('data-keywords') || '', inline: $(this).attr('data-inline') === 'true', letterCase: $(this).attr('data-letterCase') || 'lowercase', - opacity: $(this).attr('data-opacity'), + //opacity: $(this).attr('data-opacity'), position: $(this).attr('data-position') || 'bottom left', - swatches: $(this).attr('data-swatches') ? $(this).attr('data-swatches').split('|') : [], - change: function (hex, opacity) { - var log; - try { - log = hex ? hex : 'transparent'; - if (opacity) log += ', ' + opacity; - console.log(log); - } catch (e) { } - }, + //change: function(value, opacity) { + // if (!value) return; + // if (opacity) value += ', ' + opacity; + // if (typeof console === 'object') { + // console.log(value); + // } + // }, theme: 'default' }); @@ -379,6 +377,15 @@ }); + //function (hex, opacity) { + // var log; + // try { + // log = hex ? hex : 'transparent'; + // if (opacity) log += ', ' + opacity; + // console.log(log); + // } catch (e) { } + //}, + function ComboBox_onChange(e) { var didntChange = $(".plotids").not(e); didntChange.val("");