()
| 110 | } |
| 111 | |
| 112 | afterInsert () { |
| 113 | let search, spy, userID |
| 114 | super.afterInsert() |
| 115 | if (search = utils.getQueryVariable('search')) { |
| 116 | $('#user-search').val(search) |
| 117 | $('#user-search-button').click() |
| 118 | } |
| 119 | if (spy = utils.getQueryVariable('spy')) { |
| 120 | if (this.amActually) { |
| 121 | this.stopSpying() |
| 122 | } else { |
| 123 | $('#espionage-name-or-email').val(spy) |
| 124 | $('#enter-espionage-mode').click() |
| 125 | } |
| 126 | } |
| 127 | if ((me.isAdmin() || me.isOnlineTeacher()) && (userID = utils.getQueryVariable('user'))) { |
| 128 | return this.openModalView(new AdministerUserModal({}, userID)) |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | clearQueryParams () { return window.history.pushState({}, '', document.location.href.split('?')[0]) } |
| 133 |
nothing calls this directly
no test coverage detected