This file contains 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 httpRequest; | |
var makeHTTPRequest = function (url) { // se vc quiser tirar o parametro url, vc precisa passar a url na linha 22 | |
if (window.XMLHttpRequest) { | |
httpRequest = new XMLHttpRequest(); | |
} else if (window.ActiveXObject) { // quando nao for Chrome ou Safari | |
try { | |
httpRequest = new ActiveXObject("Msxml2.XMLHTTP"); | |
} | |
catch (e) { | |
try { |
This file contains 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
[ | |
{"name": "Afghanistan", "code": "AF"}, | |
{"name": "Åland Islands", "code": "AX"}, | |
{"name": "Albania", "code": "AL"}, | |
{"name": "Algeria", "code": "DZ"}, | |
{"name": "American Samoa", "code": "AS"}, | |
{"name": "AndorrA", "code": "AD"}, | |
{"name": "Angola", "code": "AO"}, | |
{"name": "Anguilla", "code": "AI"}, | |
{"name": "Antarctica", "code": "AQ"}, |
This file contains 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
{ | |
"swagger": "2.0", | |
"info": { | |
"description": "Api Documentation", | |
"version": "1.0", | |
"title": "Api Documentation", | |
"termsOfService": "urn:tos", | |
"contact": {}, | |
"license": { | |
"name": "Apache 2.0", |
This file contains 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
angular.module("emailOverviewApp").factory('requestInterceptor', [ | |
'$rootScope', '$q', '$log', function($rootScope, $q, $log) { | |
var checkSession, noCache, setRequestHeader; | |
noCache = function(url) { | |
return url + "?_=" + (Math.random()); | |
}; | |
checkSession = function(request) { | |
if (request.status === 401) { | |
// Feedback.fail("Não autenticado"); | |
$rootScope.$emit("loginRequired"); |
This file contains 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
// acao que deveria inserir o pedaco do dom no form | |
$scope.newField = (element) -> | |
element = $('#newFundamentalCause').children() | |
$scope.formCausa.push(element) | |
// botao que adiciona o campo chamando a funcao newField() | |
<button type="button" class="btn btn-primary pull-right" ng-click="newField()"><i class="fa fa-file"></i> {{'actions.NOVO' | translate}} </button> |