@@ -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 } ;
0 commit comments