META-INF.resources.butterfaces-dist-js.butterfaces-multiline-placeholder.jquery.js Maven / Gradle / Ivy
///
(function ($) {
// extend jQuery --------------------------------------------------------------------
$.fn.multilinePlaceholder = function () {
return this.each(function () {
var $originalElement = $(this);
var $textarea = $originalElement.find("textarea");
var placeholder = $textarea.attr("placeholder");
var multilinePlaceholder = placeholder.replace(/\\n/g, "\n");
$textarea.attr("placeholder", multilinePlaceholder);
});
};
}(jQuery));
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJ1dHRlcmZhY2VzLW11bHRpbGluZS1wbGFjZWhvbGRlci5qcXVlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsa0VBQWtFO0FBRWxFLENBQUMsVUFBVSxDQUFNO0lBQ2IscUZBQXFGO0lBQ3JGLENBQUMsQ0FBQyxFQUFFLENBQUMsb0JBQW9CLEdBQUc7UUFFeEIsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDO1lBQ2IsSUFBSSxnQkFBZ0IsR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUM7WUFDL0IsSUFBSSxTQUFTLEdBQUcsZ0JBQWdCLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxDQUFDO1lBQ2xELElBQUksV0FBVyxHQUFHLFNBQVMsQ0FBQyxJQUFJLENBQUMsYUFBYSxDQUFDLENBQUM7WUFDaEQsSUFBSSxvQkFBb0IsR0FBRyxXQUFXLENBQUMsT0FBTyxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsQ0FBQztZQUM3RCxTQUFTLENBQUMsSUFBSSxDQUFDLGFBQWEsRUFBRSxvQkFBb0IsQ0FBQyxDQUFDO1FBQ3hELENBQUMsQ0FBQyxDQUFDO0lBRVAsQ0FBQyxDQUFDO0FBQ04sQ0FBQyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMiLCJmaWxlIjoiYnV0dGVyZmFjZXMtbX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