File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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">×</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>
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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- }
You can’t perform that action at this time.
0 commit comments