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
// test for resolve | |
it('Should set isValid flag when user is not member of organization', function(done) { | |
var param = { | |
username: "sanketteam", | |
userId: 42808, | |
switchedOrgId: 7607 //[email protected] | |
} | |
var promise = usermanagement.checkOrganization(param); // returns a promise and uses the service code to return it | |
// this will be in case of resolve |
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
// Permissions.js | |
canAddFields: function(){ | |
var returnVal = this.checkPermissions('isNotExternalUser','hasAddFieldsAccess'); | |
return returnVal; | |
}, | |
checkPermissions : function() { | |
var args = _.toArray(arguments); | |
var returnargs = _(args).every(lang.hitch(this, function(propName) { | |
return this[propName].bind(this).call(); |
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
https://github.com/Atmosphere/atmosphere-samples/ |
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
http://a5hik.github.io/ng-sortable/#/sprint, https://github.com/a5hik/ng-sortable | |
https://github.com/angular-ui/ui-sortable/blob/master/demo/demo.js |
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
define([],function(){ | |
var messages = { | |
'login': { | |
201: 'Email already taken', | |
400: 'Bad request', | |
503: 'The server is currently unavailable.' | |
} | |
}; | |
return { | |
getMessage : function(prefix,statusCode) { |
NewerOlder