mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Shorten optional text-argument processing
This commit is contained in:
parent
24eb41548e
commit
5e7a7b3f61
1 changed files with 2 additions and 3 deletions
|
|
@ -48,9 +48,8 @@
|
|||
|
||||
(function ($) {
|
||||
$.fn.placeholder = function(seed, text) {
|
||||
if (typeof(text) === "undefined") {
|
||||
text = seed;
|
||||
}
|
||||
// set optional argument "text" to value of "seed" if undefined
|
||||
text = text || seed;
|
||||
|
||||
var hash = md5(seed),
|
||||
maxRange = parseInt('ffffffffffffffffffffffffffffffff', 16),
|
||||
|
|
|
|||
Loading…
Reference in a new issue