Skip to content

Commit

Permalink
se corrije el atributo imagenes - issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
florenperetti committed Jun 23, 2017
1 parent d883a5e commit 194cb63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions www/js/get_activities.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ var gobAbiertoAPI = "https://gobiernoabierto.cordoba.gob.ar/api";
if(item.inicia != null){
// var event_date_aux = new Date(item.inicia);
start_date = new Date(dateFormat(item.inicia, "mmmm dd, yyyy h:MM TT"));
if (item.image != undefined ){
var event_image = item.image.thumbnail.replace(/^http:\/\//i, 'https://');
if (item.imagen != undefined ){
var event_image = item.imagen.thumbnail.replace(/^http:\/\//i, 'https://');
}else{
var event_image = "img/default-event.png";
}
Expand Down
4 changes: 2 additions & 2 deletions www/js/get_evento.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ var gobAbiertoAPI = "https://gobiernoabierto.cordoba.gob.ar/api";
$.each(data.results, function(i, item) {
if(item.inicia != null){
var event_date_aux = new Date(item.inicia);
if (item.image != undefined ){
var event_image = item.image.original.replace(/^http:\/\//i, 'https://');
if (item.imagen != undefined ){
var event_image = item.imagen.original.replace(/^http:\/\//i, 'https://');
}else{
var event_image = "img/default-event.png";
}
Expand Down
4 changes: 2 additions & 2 deletions www/js/get_search_results.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function handleData(data) {
$.each(data.results, function(i, item) {
if (item.inicia != null) {
var event_date_aux = new Date(item.inicia);
if (item.image != undefined) {
var event_image = item.image.original.replace(/^http:\/\//i, 'https://');
if (item.imagen != undefined) {
var event_image = item.imagen.original.replace(/^http:\/\//i, 'https://');
} else {
var event_image = "img/default-event.png";
}
Expand Down

0 comments on commit 194cb63

Please sign in to comment.