/* * Timepicker for Jeditable * * Copyright (c) 2008-2009 Mika Tuupola * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * * Project home: * http://www.appelsiini.net/projects/jeditable * * Revision: $Id$ * */ $.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 = $(''); for (var hour=0; hour <= 23; hour++) { if (hour < 10) { hour = '0' + hour; } var option = $('