Skip to content

Instantly share code, notes, and snippets.

@MikePearce
Created June 30, 2010 10:26
Show Gist options
  • Save MikePearce/458493 to your computer and use it in GitHub Desktop.
Save MikePearce/458493 to your computer and use it in GitHub Desktop.
users.prototype = {
init: function() {
// OK, we need to replace the table now
$.getJSON
(
'/settings/getclientuserlist/'+$('#changeDgrp :selected').text(),
function(dataNew)
{
// Make this stuff available in the whole object.
this.data = dataNew;
}
)
},
populateUsersTable: function() {
console.log(this.data);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment