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
/******************************************************************** | |
Build checkboxes | |
params: obj= threat object, | |
list_all_input = all inputs received, | |
checkbox_id = checkbox id | |
type=type data | |
*********************************************************************/ | |
function build_checkboxes(obj, list_all_input, array_checked_obj, checkbox_id, type_data){ | |
/* Build control types checkboxes */ | |
$(checkbox_id).empty(); |
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 app = angular.module('app',['ngCookies', 'ui.bootstrap'], | |
// Change interpolation symbols | |
function ($interpolateProvider) { | |
$interpolateProvider.startSymbol('{$'); | |
$interpolateProvider.endSymbol('$}'); | |
}); | |
app.config(['$httpProvider', function($httpProvider) { | |
// Change content type for POST so Django gets correct request object | |
$httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; |
NewerOlder