CC-1724:Phone home statistics

Temp commit
This commit is contained in:
james 2011-06-09 09:56:32 -04:00
parent 6dc3d4d29a
commit 11b601308e
10 changed files with 446 additions and 6 deletions

View file

@ -13,5 +13,39 @@ $(document).ready(function() {
h3.addClass("close");
}
});
$('#Register').click(function(event){
event.preventDefault();
$.get("/Preference/register", {format:"json"}, function(json){
var dialog = $(json.dialog);
dialog.dialog({
autoOpen: false,
title: 'Register Airtime',
width: 400,
height: 500,
modal: true,
buttons: {"Ok": function() {
dialog.remove();
}}
});
dialog.dialog('open');
var form = $("form");
form.find("h3").click(function(){
var h3 = $(this);
h3.next().toggle();
if(h3.hasClass("close")) {
h3.removeClass("close");
}
else {
h3.addClass("close");
}
});
})
})
});