Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
</div>
<button class="btn btn-success" id='updateProfiles' type='button' onClick="saveProfile()">Save</button>
<button class="btn btn-danger" id='rmProfile'> <span class="close">&times;</span></button>
<button class="btn btn-default auth-field" name='authBtn' type="button" name="resetProfile" id="resetButton" onClick="loadDefaults()">Load Defaults</button>
</form>
</div>
</div>
Expand Down Expand Up @@ -66,7 +65,6 @@
</div>
<div id='authButtons' class="form-group">
<div class='col-md-offset-1' id='userDiv'>
<p class="help-block" id='authNotice'> Note: To authenticate against the test server, you can user username "DevCoPStudent" and password "/10T41.Vf\0w~=O". Members can visit the <a href="https://community.brightspace.com/devcop/devenvironment">Dev CoP</a> to access additional accounts. </p>
<input class="btn btn-primary " type="submit" name="authBtn" value="Authenticate" id="authenticateBtn">
<input class="btn btn-default" type="button" id="manualBtn" value="Manually set credentials" name='authBtn' onclick="setCredentials()">
</div>
Expand Down
2 changes: 0 additions & 2 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ $(document).ready(function() {
if ((document.getElementById("appIDField").value == '' ) && (document.getElementById("appKeyField").value == '')) {
if (localStorage.getItem('lastProfile') == 'authProfile') {
loadProfile('authProfile');
} else {
loadDefaults();
}
}

Expand Down
12 changes: 0 additions & 12 deletions src/js/profiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,3 @@ function removeProfile(profileName) {
localStorage.setItem('userProfiles', p.toString());
}

function loadDefaults() {
var defaultProfile = "New Profile";
$('#hostField').val("devcop.brightspace.com");
$('#portField').val("443");
$('#appIDField').val('31brpbcCLsVim_K4jJ8vzw');
$('#appKeyField').val('sagYSTT_HOts39qrGQTFWA');
$('#schemeField').prop('checked', true);
$('#profileNameField').parent().show();
$('#rmProfile').hide();
$("#userProfiles").val(defaultProfile);
localStorage.setItem('lastProfile', defaultProfile);
}
Loading