test/oic_op/config_server/static/op_config.js
/**
     * Confirms that a there exists a configuration file on the server. If configuration file exist then it's downloaded
     * @param data - The result returned from the server
     * @param status - The status on the response from the server
     * @param headers - The header on the response from the server
     * @param config - The configuration on the response from the server
     */
Confirms that a there exists a configuration file on the server. If configuration file exist then it's downloaded
@param data - The result returned from the server
@param status - The status on the response from the server
@param headers - The header on the response from the server
@param config - The configuration on the response from the server
Confirms that a there exists a configuration file on the server . If configuration file exist then it ' s downloaded @param data - The result returned from the server @param status - The status on the response from the server @param headers - The header on the response from the server @param config - The configuration on the response from the server
function config_file_exist_for_download_success_callback(data, status, headers, config) {
        if (data['does_config_file_exist']) {
            op_configuration_factory.download_config_file($scope.opConfig).success(downloadConfigFileSuccessCallback).error(error_callback);
        } else {
            showNoConfigAvailable();
        }
    }
function config_file_exist_for_download_success_callback ( data , status , headers , config ) { if ( data [ 'does_config_file_exist' ] ) { op_configuration_factory . download_config_file ( $scope . opConfig ) . success ( downloadConfigFileSuccessCallback ) . error ( error_callback ) ; } else { showNoConfigAvailable ( ) ; } }
Confirms that a there exists a configuration file on the server.
Confirms that a there exists a configuration file on the server .