MCPcopy Index your code
hub / github.com/MALSync/MALSync / buttonclick

Method buttonclick

src/pages-sync/syncPage.ts:1168–1192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1166 }
1167
1168 private async buttonclick() {
1169 this.singleObj.setEpisode(j.$('#malEpisodes').val());
1170 if (j.$('#malVolumes').length) this.singleObj.setVolume(j.$('#malVolumes').val());
1171 this.singleObj.handleScoreCheckbox(j.$('#malUserRating').val());
1172 this.singleObj.handleStatusCheckbox(j.$('#malStatus').val());
1173 if (!this.page.isSyncPage(this.url)) {
1174 this.singleObj.setStreamingUrl(this.url);
1175 }
1176
1177 const rerun = await this.searchObj.openCorrectionCheck();
1178
1179 if (rerun) {
1180 // If malUrl changed
1181 this.handlePage();
1182 return;
1183 }
1184
1185 this.syncHandling()
1186 .then(() => {
1187 return this.singleObj.update();
1188 })
1189 .then(() => {
1190 this.fillUI();
1191 });
1192 }
1193
1194 private browsingtime: number | undefined = Date.now();
1195

Callers 1

loadUIMethod · 0.80

Calls 5

handlePageMethod · 0.95
syncHandlingMethod · 0.95
fillUIMethod · 0.95
openCorrectionCheckMethod · 0.80
setStreamingUrlMethod · 0.45

Tested by

no test coverage detected