Skip to content

Instantly share code, notes, and snippets.

@natecavanaugh
Forked from eduardolundgren/gist:1642112
Created January 19, 2012 19:47
Show Gist options
  • Select an option

  • Save natecavanaugh/1642136 to your computer and use it in GitHub Desktop.

Select an option

Save natecavanaugh/1642136 to your computer and use it in GitHub Desktop.

Revisions

  1. @eduardolundgren eduardolundgren created this gist Jan 19, 2012.
    32 changes: 32 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    Liferay.Service('user/get-user-by-id', fn);
    Liferay.Service('user/get-user-by-id', {}, fn);



    Liferay.Service({
    'user/get-user-by-id': {}
    }, fn);


    Liferay.Service({
    service: 'assetvocabulary/get-vocabularies',
    data: { vocabularyIds: [10455,13014] },
    on: {
    success: function(event){
    console.log(this.get('responseData');
    }
    }
    }
    });

    Liferay.Service({
    service: {
    'user/get-user-by-id': {}
    },
    on: {
    success: function(event){
    console.log(this.get('responseData');
    }
    }
    }
    });