From f4415686d24a76c2af0a3d8ad38a3849d0aaf424 Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 30 Nov 2020 17:36:52 +0100 Subject: [PATCH] Updated: bootbox.js v5.4.1 -> v5.5.2 (#188) --- modules/internal/targets.js | 2 +- pages/updates/updates.html | 1 + resources/bootbox.js/5.4.1/bootbox.min.jsm | 1 - resources/bootbox.js/5.5.2/bootbox.min.jsm | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 resources/bootbox.js/5.4.1/bootbox.min.jsm create mode 100644 resources/bootbox.js/5.5.2/bootbox.min.jsm diff --git a/modules/internal/targets.js b/modules/internal/targets.js index 98bf33b8..a6e31efb 100644 --- a/modules/internal/targets.js +++ b/modules/internal/targets.js @@ -128,7 +128,7 @@ targets.setLastVersion = function (type, version) { } else if (type.startsWith('/bootbox.js/4.')) { return '4.4.0'; } else if (type.startsWith('/bootbox.js/5.')) { - return '5.4.1'; + return '5.5.2'; } else if (type.startsWith('/bootstrap/3.')) { return '3.4.1'; } else if (type.startsWith('/bootstrap/4.')) { diff --git a/pages/updates/updates.html b/pages/updates/updates.html index e338bd0e..edefc70d 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -31,6 +31,7 @@
  • Updated: algoliasearch v4.8.0 -> v4.8.2 (#186)
  • Fixed: Data type of update notification (#174)
  • Added: jQuery v1.11.2 (#187)
  • +
  • Updated: bootbox.js v5.4.1 -> v5.5.2 (#188)
  • diff --git a/resources/bootbox.js/5.4.1/bootbox.min.jsm b/resources/bootbox.js/5.4.1/bootbox.min.jsm deleted file mode 100644 index a4a38a1b..00000000 --- a/resources/bootbox.js/5.4.1/bootbox.min.jsm +++ /dev/null @@ -1 +0,0 @@ -!function(t,o){"use strict";"function"==typeof define&&define.amd?define(["jquery"],o):"object"==typeof exports?module.exports=o(require("jquery")):t.bootbox=o(t.jQuery)}(this,function o(p,u){"use strict";var r,n,i,l;Object.keys||(Object.keys=(r=Object.prototype.hasOwnProperty,n=!{toString:null}.propertyIsEnumerable("toString"),l=(i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){if("function"!=typeof t&&("object"!=typeof t||null===t))throw new TypeError("Object.keys called on non-object");var o,e,a=[];for(o in t)r.call(t,o)&&a.push(o);if(n)for(e=0;e
    ',header:'',footer:'',closeButton:'',form:'
    ',button:'',option:"",promptMessage:'
    ',inputs:{text:'',textarea:'',email:'',select:'',checkbox:'
    ',radio:'
    ',date:'',time:'',number:'',password:'',range:''}},m={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body",value:"",inputType:"text",swapButtonOrder:!1,centerVertical:!1,multiple:!1,scrollable:!1};function c(t,o,e){return p.extend(!0,{},t,function(t,o){var e=t.length,a={};if(e<1||2").attr("label",o.group)),e=i[o.group]);var a=p(f.option);a.attr("value",o.value).text(o.text),e.append(a)}),g(i,function(t,o){r.append(o)}),r.val(n.value);break;case"checkbox":var s=p.isArray(n.value)?n.value:[n.value];if(!(l=n.inputOptions||[]).length)throw new Error('prompt with "inputType" set to "checkbox" requires at least one option');r=p('
    '),g(l,function(t,e){if(e.value===u||e.text===u)throw new Error('each option needs a "value" property and a "text" property');var a=p(f.inputs[n.inputType]);a.find("input").attr("value",e.value),a.find("label").append("\n"+e.text),g(s,function(t,o){o===e.value&&a.find("input").prop("checked",!0)}),r.append(a)});break;case"radio":if(n.value!==u&&p.isArray(n.value))throw new Error('prompt with "inputType" set to "radio" requires a single, non-array value for "value"');if(!(l=n.inputOptions||[]).length)throw new Error('prompt with "inputType" set to "radio" requires at least one option');r=p('
    ');var c=!0;g(l,function(t,o){if(o.value===u||o.text===u)throw new Error('each option needs a "value" property and a "text" property');var e=p(f.inputs[n.inputType]);e.find("input").attr("value",o.value),e.find("label").append("\n"+o.text),n.value!==u&&o.value===n.value&&(e.find("input").prop("checked",!0),c=!1),r.append(e)}),c&&r.find('input[type="radio"]').first().prop("checked",!0)}return a.append(r),a.on("submit",function(t){t.preventDefault(),t.stopPropagation(),o.find(".bootbox-accept").trigger("click")}),""!==p.trim(n.message)&&(e=p(f.promptMessage).html(n.message),a.prepend(e)),n.message=a,(o=d.dialog(n)).off("shown.bs.modal",v),o.on("shown.bs.modal",function(){r.focus()}),!0===t&&o.modal("show"),o},d}); diff --git a/resources/bootbox.js/5.5.2/bootbox.min.jsm b/resources/bootbox.js/5.5.2/bootbox.min.jsm new file mode 100644 index 00000000..9a9af025 --- /dev/null +++ b/resources/bootbox.js/5.5.2/bootbox.min.jsm @@ -0,0 +1 @@ +!function(t,e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):t.bootbox=e(t.jQuery)}(this,function e(c,p){"use strict";var r,n,i,l;Object.keys||(Object.keys=(r=Object.prototype.hasOwnProperty,n=!{toString:null}.propertyIsEnumerable("toString"),l=(i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){if("function"!=typeof t&&("object"!=typeof t||null===t))throw new TypeError("Object.keys called on non-object");var e,o,a=[];for(e in t)r.call(t,e)&&a.push(e);if(n)for(o=0;o
    ',header:'',footer:'',closeButton:'',form:'
    ',button:'',option:"",promptMessage:'
    ',inputs:{text:'',textarea:'',email:'',select:'',checkbox:'
    ',radio:'
    ',date:'',time:'',number:'',password:'',range:''}},b={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body",value:"",inputType:"text",swapButtonOrder:!1,centerVertical:!1,multiple:!1,scrollable:!1,reusable:!1};function f(t,e,o){return c.extend(!0,{},t,function(t,e){var o=t.length,a={};if(o<1||2").attr("label",e.group)),o=i[e.group]);var a=c(d.option);a.attr("value",e.value).text(e.text),o.append(a)}),w(i,function(t,e){r.append(e)}),r.val(n.value);break;case"checkbox":var l=c.isArray(n.value)?n.value:[n.value];if(!(a=n.inputOptions||[]).length)throw new Error('prompt with "inputType" set to "checkbox" requires at least one option');r=c('
    '),w(a,function(t,o){if(o.value===p||o.text===p)throw new Error('each option needs a "value" property and a "text" property');var a=c(d.inputs[n.inputType]);a.find("input").attr("value",o.value),a.find("label").append("\n"+o.text),w(l,function(t,e){e===o.value&&a.find("input").prop("checked",!0)}),r.append(a)});break;case"radio":if(n.value!==p&&c.isArray(n.value))throw new Error('prompt with "inputType" set to "radio" requires a single, non-array value for "value"');if(!(a=n.inputOptions||[]).length)throw new Error('prompt with "inputType" set to "radio" requires at least one option');r=c('
    ');var s=!0;w(a,function(t,e){if(e.value===p||e.text===p)throw new Error('each option needs a "value" property and a "text" property');var o=c(d.inputs[n.inputType]);o.find("input").attr("value",e.value),o.find("label").append("\n"+e.text),n.value!==p&&e.value===n.value&&(o.find("input").prop("checked",!0),s=!1),r.append(o)}),s&&r.find('input[type="radio"]').first().prop("checked",!0)}return o.append(r),o.on("submit",function(t){t.preventDefault(),t.stopPropagation(),e.find(".bootbox-accept").trigger("click")}),""!==c.trim(n.message)&&(a=c(d.promptMessage).html(n.message),o.prepend(a)),n.message=o,(e=u.dialog(n)).off("shown.bs.modal",g),e.on("shown.bs.modal",function(){r.focus()}),!0===t&&e.modal("show"),e},u});