Skip to content

Commit 1068a0b

Browse files
authored
Merge pull request #274 from JoomJunk/development
Update to 8.1.6
2 parents 556dca3 + 216e78a commit 1068a0b

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

changelog.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
- -> Removed
1515
! -> Note
1616

17+
Version 8.1.6
18+
# Fixed some instances where the Ajax request URL wasn't working
19+
1720
Version 8.1.5
1821
# Fixed refreshIncludePaths() method being remove in Joomla 3.6
1922
! Minimum version for Joomla 3.6

mod_shoutbox/media/js/mod_shoutbox.js

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@ jQuery(document).ready(function($) {
453453
{
454454
// Assemble variables to submit
455455
var request = {
456+
'option' : 'com_ajax',
457+
'module' : 'shoutbox',
458+
'method' : 'checkTimestamp',
459+
'format' : 'raw',
456460
'jjshout[title]' : title,
457461
'jjshout[id]' : id
458462
};
@@ -466,7 +470,6 @@ jQuery(document).ready(function($) {
466470
// AJAX request
467471
$.ajax({
468472
type: 'POST',
469-
url: 'index.php?option=com_ajax&module=shoutbox&method=checkTimestamp&format=raw',
470473
data: request,
471474
success: function(response){
472475

@@ -516,6 +519,10 @@ jQuery(document).ready(function($) {
516519

517520
// Assemble variables to submit
518521
var request = {
522+
'option' : 'com_ajax',
523+
'module' : 'shoutbox',
524+
'method' : 'submit',
525+
'format' : 'json',
519526
'jjshout[id]' : params.shoutId,
520527
'jjshout[type]' : params.type,
521528
'jjshout[name]' : params.name,
@@ -550,7 +557,6 @@ jQuery(document).ready(function($) {
550557
// AJAX request
551558
$.ajax({
552559
type: 'POST',
553-
url: 'index.php?option=com_ajax&module=shoutbox&method=submit&format=json',
554560
data: request,
555561
success: function(response){
556562
if (response.success)
@@ -632,6 +638,10 @@ jQuery(document).ready(function($) {
632638

633639
// Assemble variables to submit
634640
var request = {
641+
'option' : 'com_ajax',
642+
'module' : 'shoutbox',
643+
'method' : 'getPosts',
644+
'format' : 'json',
635645
'jjshout[title]' : params.title,
636646
};
637647

@@ -644,7 +654,6 @@ jQuery(document).ready(function($) {
644654
// AJAX request
645655
$.ajax({
646656
type: 'POST',
647-
url: 'index.php?option=com_ajax&module=shoutbox&method=getPosts&format=json',
648657
data: request,
649658
success: function(response){
650659
if (response.success)
@@ -702,6 +711,10 @@ jQuery(document).ready(function($) {
702711
{
703712
// Assemble variables to submit
704713
var request = {
714+
'option' : 'com_ajax',
715+
'module' : 'shoutbox',
716+
'method' : 'getPosts',
717+
'format' : 'json',
705718
'jjshout[title]' : title,
706719
'jjshout[offset]' : offset,
707720
};

mod_shoutbox/mod_shoutbox.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<extension type="module" version="3.4" client="site" method="upgrade">
2+
<extension type="module" version="3.6" client="site" method="upgrade">
33
<name>JJ Shoutbox</name>
44
<author>JoomJunk</author>
55
<creationDate>05-Mar-2012</creationDate>
66
<copyright>Copyright (C) 2011 - 2016 JoomJunk</copyright>
77
<license>http://www.gnu.org/licenses/gpl-3.0.html</license>
88
<authorEmail>admin@joomjunk.co.uk</authorEmail>
99
<authorUrl>http://www.joomjunk.co.uk</authorUrl>
10-
<version>8.1.5</version>
10+
<version>8.1.6</version>
1111
<description>JJSHOUTBOX_DESCRIPTION</description>
1212

1313
<install>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Placeholder file for database changes for version 8.1.6
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Placeholder file for database changes for version 8.1.6

0 commit comments

Comments
 (0)