Skip to content

Commit

Permalink
fix: auphonic preset for show applies after saving the episode
Browse files Browse the repository at this point in the history
  • Loading branch information
eteubert committed Feb 15, 2022
1 parent 325bf86 commit c53b084
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/model/download_intent_clean.php
Expand Up @@ -215,8 +215,6 @@ public static function total_downloads_by_show($where)
downloads DESC
';

error_log(print_r($sql, true));

return $wpdb->get_results($sql, ARRAY_A);
}

Expand Down
10 changes: 10 additions & 0 deletions lib/modules/auphonic/admin.js
Expand Up @@ -126,7 +126,13 @@ var PODLOVE = PODLOVE || {};

function initPresetFetching() {
const showWidget = document.getElementById("showschecklist")

if (!showWidget) {
return;
}

const items = showWidget.querySelectorAll('li input');
const currentItem = showWidget.querySelector('li input:checked')

for (const item of items) {
item.addEventListener('click', (e) => {
Expand All @@ -135,6 +141,10 @@ var PODLOVE = PODLOVE || {};
getPresetForShow(input.value)
})
}

if (currentItem) {
getPresetForShow(currentItem.value)
}
}

if (document.readyState !== 'loading') {
Expand Down
5 changes: 5 additions & 0 deletions readme.txt
Expand Up @@ -106,6 +106,11 @@ This product includes GeoLite2 data created by MaxMind, available from http://ww

== Changelog ==

= 2022-02-15 =

* fix: auphonic preset for show applies after saving the episode
* fix: remove debug error log for a shows analytics query

= 3.8.0 =

**New module: Automatic Numbering**
Expand Down

0 comments on commit c53b084

Please sign in to comment.