PageSourceSearch

https://cdkarportal.com/lib/angular/angular-bootbox.js

js cdkarportal.com collected 2026-10-07 20:56:00 UTC 1,369 bytes, 54 lines download raw bytes

1'use strict';
2angular.module('angular-bootbox', []).factory('ngBootbox', [function () {
3    return bootbox;
4}]).provider('$bootbox', function () {
5    return {
6        setDefaults: function (options) {
7            bootbox.setDefaults(options);
8        },
9        $get: function () {
10            return {
11                
12            }
13        }
14    }
15});
16
17
18/* example of usage (alert / confirm / diaglog), only dialog can be applied with AR Portal custom style */
19
20/*  
21    bootbox.alert("Your message here…");
22
23    bootbox.confirm('Are you sure you want to delete this record?', function (result) {
24      if (result){ // result would be true or false
25        PortalMessageSetupSvc.deletePortalMessage(id);
26      }
27     // return true;
28    });
29
30
31    bootbox.dialog({
32      message: "Are you sure you want to delete this record",
33      title: "AR Portal Message",
34      className: "custom-alert-css",  //ar portal custom css
35      buttons: {
36        cancel: {
37          label: "Cancel",
38          className: "btn-danger",
39          callback: function() {
40            console.log("cancel clicked");
41          }
42        },
43        main: {
44          label: "OK",
45          className: "btn-primary",
46          callback: function() {
47            console.log("OK clicked");
48            PortalMessageSetupSvc.deletePortalMessage(id);
49          }
50        }
51      }
52    });
53
54*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.