PATH:
home
/
letacommog
/
crmleta
/
libraries
/
jquery
/** * Allows text inputs to display a placeholder message until it gets focus, at which point the input * is set to empty. * * This simulated the placeholder attribute in html5. * http://dev.w3.org/html5/spec/Overview.html#the-placeholder-attribute * * @copyright Clock Limited 2010 * @license http://opensource.org/licenses/bsd-license.php New BSD License * @author Paul Serby <paul.serby@clock.co.uk> */ (function ($) { $.fn.placeholder = function (text) { return this.each(function () { var context = $(this), placeholderText, nativePlaceholderSupport = ('placeholder' in document.createElement('input')); function onBlur(event) { checkIfEmpty($(event.target)); } function checkIfEmpty() { if (context.val() === '') { if (context.attr('type') === 'password') { try { context.attr('type', 'text'); } catch(e) { return false; } } context.val(placeholderText); context.addClass('ui-placeholder'); } } function onFocus(event) { context.removeClass('ui-placeholder'); if (context.val() === placeholderText) { context.val(''); } } if (text === undefined) { placeholderText = $(this).attr('placeholder'); } else { placeholderText = text; } if (!nativePlaceholderSupport || (jQuery.browser.msie && jQuery.browser.version == 10)) { checkIfEmpty(context.blur(onBlur).focus(onFocus)); context.parents('form').submit(function(event) { if (context.val() === placeholderText) { context.val(''); } }); } else { context.attr('placeholder', placeholderText); } }); }; })(jQuery);
[+]
..
[+]
rochal-jQuery-slimScroll
[+]
jqplot
[-] jquery.stickytableheaders.min.js
[edit]
[+]
pdfjs
[-] jquery.ba-outside-events.min.js
[edit]
[-] jquery.form.js
[edit]
[-] jquery.placeholder.js
[edit]
[+]
datepicker
[-] jquery_windowmsg.js
[edit]
[+]
ckeditor
[+]
dangrossman-bootstrap-daterangepicker
[+]
garand-sticky
[+]
malihu-custom-scrollbar
[-] jquery.jqote2.min.js
[edit]
[+]
colorpicker
[-] jquery.virtualpages.js
[edit]
[-] jquery.additions.js
[edit]
[+]
boxslider
[+]
lazyYT
[+]
autosize
[+]
gridster
[+]
twitter-text-js
[+]
defunkt-jquery-pjax
[-] jquery.hoverIntent.minified.js
[edit]
[-] jquery.blockUI.js
[edit]
[+]
bootstrapswitch
[-] jquery.class.min.js
[edit]
[-] jquery.ajaxq.js
[edit]
[-] jquery.easing.1.3.js
[edit]
[-] vtchart.js
[edit]
[-] VtJqplotInterface.js
[edit]
[+]
multiplefileupload
[+]
jquery-ui
[+]
timepicker
[+]
posabsolute-jQuery-Validation-Engine
[-] jquery-visibility.min.js
[edit]
[+]
node-inflection
[-] jqueryRating.js
[edit]
[-] license.txt
[edit]
[+]
instaFilta
[-] jquery.printf.min.js
[edit]
[-] jstorage.min.js
[edit]
[-] jquery.spin.min.js
[edit]
[+]
select2
[-] jquery.sparkline.min.js
[edit]
[-] jquery.fitvids.js
[edit]
[+]
pnotify
[-] jquery.jeditable.min.js
[edit]
[+]
gantt
[-] jquery.tagcloud.js
[edit]
[+]
chosen
[+]
pivot
[+]
Viewer.js
[+]
handsontable
[-] jquery.min.js
[edit]
[+]
video-js
[+]
jquery.datepick.package-4.1.0
[-] jquery.cycle.min.js
[edit]