Beautified all js in web dashboard

This commit is contained in:
Vasily 2018-10-23 01:05:09 +03:00
parent 5895f209e7
commit 6bfd795635
346 changed files with 72978 additions and 375 deletions

View file

@ -1 +1,16 @@
define([],function(){"use strict";function replaceAll(str,find,replace){return str.split(find).join(replace)}return function(options){"string"==typeof options&&(options={label:"",text:options});var label=replaceAll(options.label||"","<br/>","\n"),result=prompt(label,options.text||"");return result?Promise.resolve(result):Promise.reject(result)}});
define([], function() {
"use strict";
function replaceAll(str, find, replace) {
return str.split(find).join(replace)
}
return function(options) {
"string" == typeof options && (options = {
label: "",
text: options
});
var label = replaceAll(options.label || "", "<br/>", "\n"),
result = prompt(label, options.text || "");
return result ? Promise.resolve(result) : Promise.reject(result)
}
});