Sha256: d98355f21bb13dd4a84aa91d5f46efbccc49d6d4770a77492b092c5b7ac1c9ca
Contents?: true
Size: 1.32 KB
Versions: 101
Compression:
Stored size: 1.32 KB
Contents
/** * Depends on Masked Input jQuery plugin by Josh Bush: * http://digitalbush.com/projects/masked-input-plugin * * @file masked input plugin for jquery-jeditable * @author Mika Tuupola, Nicolas CARPi * @home https://github.com/NicolasCARPi/jquery_jeditable * @licence MIT (see LICENCE file) * @copyright © 2007 Mika Tuupola, Nicolas CARPi * @name PluginMaskedInput */ 'use strict'; (function ($) { $.editable.addInputType('masked', { element : function(settings, original) { var input = $('<input />').attr({ autocomplete: 'off', list: settings.list, maxlength: settings.maxlength, pattern: settings.pattern, placeholder: settings.placeholder, tooltip: settings.tooltip, type: 'text' }).mask(settings.mask); if (settings.width !== 'none') { input.css('width', settings.width); } if (settings.height !== 'none') { input.css('height', settings.height); } if (settings.size) { input.attr('size', settings.size); } if (settings.maxlength) { input.attr('maxlength', settings.maxlength); } $(this).append(input); return(input); } }); })(jQuery);
Version data entries
101 entries across 101 versions & 2 rubygems