diff --git a/com_podcastmanager/admin/models/fields/podcastmedia.php b/com_podcastmanager/admin/models/fields/podcastmedia.php index 513ba4dd..0fdc30de 100644 --- a/com_podcastmanager/admin/models/fields/podcastmedia.php +++ b/com_podcastmanager/admin/models/fields/podcastmedia.php @@ -73,7 +73,7 @@ protected function getInput() $script[] = ' if (old_id != id) {'; $script[] = ' var elem = document.id(id)'; $script[] = ' elem.value = value;'; - $script[] = ' elem.onchange();'; + $script[] = ' elem.dispatchEvent(new Event(\'change\'));'; $script[] = ' }'; $script[] = ' }'; diff --git a/com_podcastmanager/admin/models/podcast.php b/com_podcastmanager/admin/models/podcast.php index 20ef4cfd..26eb8ec4 100644 --- a/com_podcastmanager/admin/models/podcast.php +++ b/com_podcastmanager/admin/models/podcast.php @@ -569,7 +569,7 @@ protected function loadFormData() * * @since 1.6 */ - protected function prepareTable(&$table) + protected function prepareTable($table) { // Set the publish date to now if ($table->published == 1 && intval($table->publish_up) == 0) diff --git a/com_podcastmanager/admin/tables/podcast.php b/com_podcastmanager/admin/tables/podcast.php index 85215b98..d884b329 100644 --- a/com_podcastmanager/admin/tables/podcast.php +++ b/com_podcastmanager/admin/tables/podcast.php @@ -96,7 +96,7 @@ protected function _getAssetTitle() * * @since 2.0 */ - protected function _getAssetParentId($table = null, $id = null) + protected function _getAssetParentId(JTable $table = null, $id = null) { // Initialise variables. $assetId = null; diff --git a/script.php b/script.php index d276f045..4b13f7c6 100644 --- a/script.php +++ b/script.php @@ -174,6 +174,7 @@ public function update($parent) */ public function postflight($type, $parent, $results) { + $strapped = false; // If in CMS 3, install the Strapped layouts if (version_compare(JVERSION, '3.0', 'ge') && $type == 'install') {