1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- function ViewerHttpRequestConfig() {
- this.reportStatus = {};
- this.UI = {};
- }
- ViewerHttpRequestConfig.prototype.configure = function(configuration) {
- applyJSONProperties(this, configuration);
- };
- ViewerHttpRequestConfig.prototype.getRequestIndicator = function() {
- if (this.UI) {
- return this.UI.requestIndicator ? this.UI.requestIndicator : null;
- }
- };
- ViewerHttpRequestConfig.prototype.getWorkingDialog = function() {
- if (this.UI) {
- return this.UI.workingDialog ? this.UI.workingDialog : null;
- }
- };
- ViewerHttpRequestConfig.prototype.getReportStatusCallback = function(status) {
- if (this.reportStatus) {
- var callback = this.reportStatus[status];
- if (callback) {
- return callback;
- }
-
- if (status == "complete" && this.reportStatus["initialComplete"]) {
- var tempCallback = this.reportStatus["initialComplete"];
- this.reportStatus["initialComplete"] = null;
- return tempCallback;
- }
- }
- return null;
- };
|