1function RecentActivityVm() { 2 var self = this; 3 self.spinnerContainer = ''; 4 self.SelectedAccountId = ko.observable(""); 5 self.PendingCharges = ko.observable(); 6 self.Error = ko.observable(); 7 8 self.SwitchAccount = function (container) { 9 var hideMessages = hideMessages || true; 10 if (container) { 11 self.spinnerContainer = '#' + container; 12 } 13 if (self.SelectedAccountId()) { 14 var options = {}; 15 options.url = window.location.origin + "/Billing/PendingCharges?accountId=" + self.SelectedAccountId(); 16 options.type = "GET"; 17 options.dataType = "json"; 18 options.contentType = "application/json"; 19 options.success = function (result) { 20 if (result.ErrorMessage) { 21 self.Error(result.ErrorMessage); 22 } 23 else { 24 self.PendingCharges(ko.mapping.fromJS(result)); 25 } 26 }; 27 options.error = function (err) { 28 self.Error(err.responseText); 29 }; 30 if (self.spinnerContainer) { 31 options.spinner = true; 32 options.spinnerSelector = self.spinnerContainer; 33 } 34 35 ajaxHelper(options); 36 } 37 } 38 39}
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.