jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/confirm/nativeconfirm.js
Luke Pulverenti 8a6884abef minify
2017-01-27 18:07:14 -05:00

1 line
318 B
JavaScript

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