- theming support added

- not caching fake input color as private var because it doesn't work with themes
This commit is contained in:
jean-emmanuel 2016-03-21 19:48:26 +01:00
parent 8469c688d1
commit 6574b8465a
7 changed files with 31 additions and 10 deletions

View file

@ -1,5 +1,4 @@
(function ($) {
var color = String(getComputedStyle(document.documentElement).getPropertyValue("--color-text")).trim()
$.fn.fakeInput = function(options) {
var settings = $.extend({
@ -13,7 +12,7 @@
self.value = undefined
self.height = undefined
self.width = undefined
self.color = color
self.color = undefined
self.center = settings.align == 'center'
self.visible = false
@ -33,6 +32,7 @@
canvas.addClass('visible')
}
self.color = getComputedStyle(document.documentElement).getPropertyValue("--color-text")
self.height=height
self.width=width