This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
# use ../ as lib location | |
use File::Basename; | |
use FindBin qw($RealBin); | |
use lib dirname($RealBin); | |
use lib dirname($RealBin)."/Kernel/cpan-lib"; | |
use strict; | |
# to get it readable for the webserver user and writable for otrs | |
# group (just in case) | |
umask 002; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input[type="text"], | |
input[type="password"], | |
input[type="email"], | |
input[type="tel"], | |
input[type="search"], | |
input[type="url"], | |
input[type="number"], | |
textarea { | |
-moz-box-sizing: border-box; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// helper for iterating NodeList of element objects | |
var forEach = Array.prototype.forEach; | |
forEach.call( | |
document.querySelectorAll('form p input + button[type="reset"], form p textarea + button[type="reset"]'), | |
function( el ) { | |
el.addEventListener ('mousedown', function () { | |
var field = document.querySelector('input:focus , textarea:focus'); | |
field.value = field.defaultValue; | |
}); |
NewerOlder