Hi –
Can someone please give me an idea what this code does and if “Origin” is of any real significance or not? I thought it had to do with origin-only JSON GETting but, I’m not certain.
Thx!
Origin.onAction(‘sanAreaCodes’, function () {
var cntrl = $(this);
$(this).after(‘<p class=”loading”>Loading…</p>’);
$.post(‘/San/AreaCodes’,
{ sanNumber: $(this).attr(‘data-san-number’) },
function (result) {
Origin.modal({
content: $(result),
title: “Your Approved Area Codes”,
open: function () { cntrl.siblings(“p.loading”).remove(); }
});
});
});
//
//
//
Origin.onAction(‘sanInfo’, function () {
var view = $(this).attr(‘data-view’);
var title = $(this).attr(‘title’);
Origin.modal({
url: ‘/San/GetContent/’ + view,
title: title,
buttons: [{
label: ‘Ok’,
click: function () {
$(this).originModalClose();
},
type: ‘primary’
}]
});
});