Created
March 25, 2011 00:39
-
-
Save simensen/886167 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// Global | |
var filter = null; | |
$(document).ready(function(){ | |
var $left = $('#container_left'); | |
var $right = $('#container_right'); | |
var $vars = null; | |
getQueue($vars, $left); | |
getFilter(); | |
}); | |
function getFilter() { | |
if( filter ) { $('#container_right').html(filter); } | |
else { | |
$.post('/admin/getEventsFilter',{ | |
target:"container_right", | |
__csrf_token:"<?=CsrfFilter::getSessionNonce()?>" | |
},function(result){ | |
//$('#container_right').html(result); | |
$('#container_right').html(filter = result); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment