/** * @file timepicker 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 PluginTimepicker */ 'use strict'; (function ($) { $.editable.addInputType('time', { /* Create input element. */ element : function(settings, original) { /* Create and pulldowns for hours and minutes. Append them to */ /* form which is accessible as variable this. */ var hourselect = $(''); var option; for (var hour=0; hour <= 23; hour++) { if (hour < 10) { hour = '0' + hour; } option = $('