Skip to content

Commit 9d41488

Browse files
committed
remove defaults button and js
1 parent 382e9e2 commit 9d41488

3 files changed

Lines changed: 0 additions & 15 deletions

File tree

src/index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
</div>
3333
<button class="btn btn-success" id='updateProfiles' type='button' onClick="saveProfile()">Save</button>
3434
<button class="btn btn-danger" id='rmProfile'> <span class="close">&times;</span></button>
35-
<button class="btn btn-default auth-field" name='authBtn' type="button" name="resetProfile" id="resetButton" onClick="loadDefaults()">Load Defaults</button>
3635
</form>
3736
</div>
3837
</div>

src/js/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,6 @@ $(document).ready(function() {
181181
if ((document.getElementById("appIDField").value == '' ) && (document.getElementById("appKeyField").value == '')) {
182182
if (localStorage.getItem('lastProfile') == 'authProfile') {
183183
loadProfile('authProfile');
184-
} else {
185-
loadDefaults();
186184
}
187185
}
188186

src/js/profiles.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,3 @@ function removeProfile(profileName) {
105105
localStorage.setItem('userProfiles', p.toString());
106106
}
107107

108-
function loadDefaults() {
109-
var defaultProfile = "New Profile";
110-
$('#hostField').val("devcop.brightspace.com");
111-
$('#portField').val("443");
112-
$('#appIDField').val('31brpbcCLsVim_K4jJ8vzw');
113-
$('#appKeyField').val('sagYSTT_HOts39qrGQTFWA');
114-
$('#schemeField').prop('checked', true);
115-
$('#profileNameField').parent().show();
116-
$('#rmProfile').hide();
117-
$("#userProfiles").val(defaultProfile);
118-
localStorage.setItem('lastProfile', defaultProfile);
119-
}

0 commit comments

Comments
 (0)