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
| package com.mediture.truchart.rest.resources; | |
| import java.util.*; | |
| import javax.ws.rs.GET; | |
| import javax.ws.rs.Path; | |
| import javax.ws.rs.Produces; | |
| import javax.ws.rs.core.Context; | |
| import javax.ws.rs.core.MediaType; | |
| import javax.ws.rs.core.Response; |
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
| var previous = null, lastPrevious = null, memos = {}; | |
| $rootScope.$on("$transitionStart", function(evt, $transition$) { | |
| lastPrevious = previous; | |
| previous = $transition$.from; | |
| $transition$.promise.then(commit).catch(revert); | |
| function commit() { lastPrevious = null; } | |
| function revert() { previous = lastPrevious; } | |
| }); |
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
| .directive("nameEditor", function($timeout) { | |
| return { | |
| controllerAs: 'ctrl', | |
| bindToController: true, | |
| scope: { name: '=name' }, | |
| template: | |
| '<div ng-show="!ctrl.editing" class="col-sm-12">' + | |
| ' <input type="text" ng-model="ctrl.displayname" ng-model-options="{ getterSetter: true }" ng-focus="ctrl.editing = true">' + | |
| '</div>' + |
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
| function decorateit(DDO) { | |
| if (DDO.link) { | |
| var reallink = DDO.link; | |
| DDO.link = function(scope, elem, attrs, ctrls) { | |
| scope.myCoolScopeFunction = function() { | |
| // scope.$on or whatever you need | |
| }; | |
| return reallink(scope, elem, attrs, ctrls); | |
| } |
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
| /* Implement bootstrap tooltip activation based on scope data, not DOM events */ | |
| app.config(function($tooltipProvider) { | |
| $tooltipProvider.setTriggers( {'openTrigger': 'closeTrigger'} ); | |
| }); | |
| app.directive('popPopup', function () { | |
| return { | |
| restrict: 'EA', | |
| replace: true, | |
| scope: { title: '@', content: '@', placement: '@', animation: '&', isOpen: '&' }, |
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
| /** | |
| * State-based routing for AngularJS | |
| * @version v0.2.12-dev-2014-11-20 | |
| * @link http://angular-ui.github.com/ | |
| * @license MIT License, http://www.opensource.org/licenses/MIT | |
| */ | |
| /* commonjs package manager support (eg componentjs) */ | |
| if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){ | |
| module.exports = 'ui.router'; |
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
| /** | |
| * State-based routing for AngularJS | |
| * @version v0.2.12-dev-2014-11-20 | |
| * @link http://angular-ui.github.com/ | |
| * @license MIT License, http://www.opensource.org/licenses/MIT | |
| */ | |
| /* commonjs package manager support (eg componentjs) */ | |
| if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){ | |
| module.exports = 'ui.router'; |
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
| /** | |
| * State-based routing for AngularJS | |
| * @version v0.2.12-dev-2014-11-13 | |
| * @link http://angular-ui.github.com/ | |
| * @license MIT License, http://www.opensource.org/licenses/MIT | |
| */ | |
| /* commonjs package manager support (eg componentjs) */ | |
| if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){ | |
| module.exports = 'ui.router'; |
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
| /** | |
| * State-based routing for AngularJS | |
| * @version v0.2.11-dev-2014-09-22 | |
| * @link http://angular-ui.github.com/ | |
| * @license MIT License, http://www.opensource.org/licenses/MIT | |
| */ | |
| /* commonjs package manager support (eg componentjs) */ | |
| if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){ | |
| module.exports = 'ui.router'; |
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
| /** | |
| * State-based routing for AngularJS | |
| * @version v0.2.12-dev-2014-09-15 | |
| * @link http://angular-ui.github.com/ | |
| * @license MIT License, http://www.opensource.org/licenses/MIT | |
| */ | |
| "undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(a,b,c){"use strict";function d(a,b){return J(new(J(function(){},{prototype:a})),b)}function e(a){return I(arguments,function(b){b!==a&&I(b,function(b,c){a.hasOwnProperty(c)||(a[c]=b)})}),a}function f(a,b){var c=[];for(var d in a.path){if(a.path[d]!==b.path[d])break;c.push(a.path[d])}return c}function g(a){if(Object.keys)return Object.keys(a);var c=[];return b.forEach(a,function(a,b){c.push(b)}),c}function h(a,b){if(Array.prototype.indexOf)return a.indexOf(b,Number(arguments[2])||0);var c=a.length>>>0,d=Number(arguments[2])||0;for(d=0>d?Math.ceil(d):Math.floor(d),0>d&&(d+=c);c>d;d++)if(d in a&&a[d]===b)return d;return-1}function i(a,b,c,d){var e,i=f(c,d),j={},k=[];for(var l in i)if(i[l].params&&(e=g(i[l].params) |