Skip to content

Commit 9f0a352

Browse files
remove transparency slider from colorpicker #56
1 parent 976ba3d commit 9f0a352

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

Views/MainAdmin/SubPlots.cshtml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
.BindTo(new SelectList(Model.colorList))
146146
.SelectedIndex(0))</td-->
147147
<td>
148-
<input type="text" id="Color" style="height:28px;border-width:2px;width:180px;" class="demo" data-opacity=".5" data-swatches="#00ff00|#ff0000|#ffa07a|#000000|#bebebe|#ffffff|#ee82ee|#add8e6|#4682b4|#00ffff|#d8bfd8|#0000ff|#a020f0|#2e8b57|#b03060|#f5deb3|#d2691e|ffa500|#90ee90|#ebebeb|#ffff00|#a52a2a|#ffeeee|#c71585" value="#f00">
148+
<input type="text" id="Color" style="height:28px;border-width:2px;width:180px;" class="demo" data-opacity="1" value="#f00">
149149
</td>
150150
<td>Coordinate Type:</td>
151151
<td>
@@ -361,24 +361,31 @@
361361
keywords: $(this).attr('data-keywords') || '',
362362
inline: $(this).attr('data-inline') === 'true',
363363
letterCase: $(this).attr('data-letterCase') || 'lowercase',
364-
opacity: $(this).attr('data-opacity'),
364+
//opacity: $(this).attr('data-opacity'),
365365
position: $(this).attr('data-position') || 'bottom left',
366-
swatches: $(this).attr('data-swatches') ? $(this).attr('data-swatches').split('|') : [],
367-
change: function (hex, opacity) {
368-
var log;
369-
try {
370-
log = hex ? hex : 'transparent';
371-
if (opacity) log += ', ' + opacity;
372-
console.log(log);
373-
} catch (e) { }
374-
},
366+
//change: function(value, opacity) {
367+
// if (!value) return;
368+
// if (opacity) value += ', ' + opacity;
369+
// if (typeof console === 'object') {
370+
// console.log(value);
371+
// }
372+
// },
375373
theme: 'default'
376374
});
377375
378376
});
379377
380378
});
381379
380+
//function (hex, opacity) {
381+
// var log;
382+
// try {
383+
// log = hex ? hex : 'transparent';
384+
// if (opacity) log += ', ' + opacity;
385+
// console.log(log);
386+
// } catch (e) { }
387+
//},
388+
382389
function ComboBox_onChange(e) {
383390
var didntChange = $(".plotids").not(e);
384391
didntChange.val("");

0 commit comments

Comments
 (0)