Contacts
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
$('.OwnerContactName', $item).text(item.contactName);
|
||||
$('.OwnerContactEmailAddress', $item).text(item.contactEmailAddress);
|
||||
$('.OwnerContactPhone', $item).text(item.contactPhone);
|
||||
$('.OwnerStatusDesc', $item).text(item.statusDesc).removeClass(function (idx, name) { return (name.match(/(^|\s)sbc-status-\S+/g) || []).join(' '); }).addClass('sbc-status-' + item.statusCode.toLowerCase());
|
||||
$('.OwnerStatusDesc', $item).text(item.statusDesc).removeStatusClasses().addClass('sbc-status-' + item.statusCode.toLowerCase());
|
||||
// Actions.
|
||||
let fnUpd = function () { io.updateItem($item, item) };
|
||||
var $bgr = $('.sbc-burger', $item).hide();
|
||||
@@ -111,17 +111,16 @@
|
||||
$dlg.item.dialog('option', 'title', sbc.dlg.title.createItem);
|
||||
io.openOwnerDlg();
|
||||
}
|
||||
io.clearItem = function ()
|
||||
{
|
||||
$('.sbc-input,.sbc-textarea,.sbc-select', $frm.item).val('');
|
||||
sbc.populateSelectCodeDesc('#cbOwnerStatus', sbc.data.statuses);
|
||||
sbc.clearControlErrors();
|
||||
}
|
||||
io.openOwnerDlg = function ()
|
||||
{
|
||||
sbc.openDialog($dlg.item, 600, 600);
|
||||
}
|
||||
io.clearItem = function ()
|
||||
{
|
||||
let frm = $frm.item;
|
||||
$('.OwnerExists,.OwnerId,input[type="text"],textarea,select', frm).val('');
|
||||
sbc.populateSelectCodeDesc('#cbOwnerStatus', sbc.data.statuses);
|
||||
sbc.clearControlErrors();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
io.updateItem = function ($item, item)
|
||||
@@ -166,7 +165,7 @@
|
||||
$dlg.item.dialog('close');
|
||||
|
||||
var item = response.owner;
|
||||
var $item = $('#' + io.getItemId(item));
|
||||
var $item = $('#' + io.getItemId(item), $pnl.table);
|
||||
if (!$item.length)
|
||||
{
|
||||
$item = io.getItemRowTemplate();
|
||||
|
||||
Reference in New Issue
Block a user