first commit
This commit is contained in:
20
functions/xajax-ranker.php
Normal file
20
functions/xajax-ranker.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
global $xajax;
|
||||
$xajax -> register( XAJAX_FUNCTION, 'changePhrasePosition' );
|
||||
$xajax -> register( XAJAX_FUNCTION, 'refreshPhrase' );
|
||||
|
||||
function changePhrasePosition( $phrase_id, $date, $position )
|
||||
{
|
||||
global $mdb;
|
||||
\factory\Ranker::changePhrasePosition( $phrase_id, $date, $position );
|
||||
}
|
||||
|
||||
function refreshPhrase( $phrase_id )
|
||||
{
|
||||
global $mdb;
|
||||
\factory\Ranker::refreshPhrase( $phrase_id );
|
||||
|
||||
$ajax = new \xajaxResponse;
|
||||
$ajax -> script( '$( "#' . $phrase_id . '-' . date( 'Y-m-d' ) . ' span" ).html( "" );' );
|
||||
return $ajax;
|
||||
}
|
||||
Reference in New Issue
Block a user