Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var sammyApp = $.sammy(function() {
- this.get('#/', function () {
- clearRegLogin();
- });
- this.get('#/register', function () {
- $.get(base_url + '/register', {}, function(html){
- clearRegLogin();
- $('#reg_login_form').html(html);
- });
- });
- this.get('#/login', function () {
- $.get(base_url + '/login', {}, function(html){
- clearRegLogin();
- $('#reg_login_form').html(html);
- });
- });
- });
- $(function () {
- sammyApp.run('#/');
- });
- function clearRegLogin() {
- $("#reg_login_form").remove();
- $('#content-change').prepend('<div id="reg_login_form"></div>');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement