Commit 242e255b by Manuel De la Penna

#1 se cambia tarea segun token en frontend

parent a871d708
......@@ -209,7 +209,6 @@
Interfaz.loadReadings(); /*levanta historia de lecturas (ocultas)*/
Interfaz.addListeners();
Interfaz.setModoLadoView();
Relevador.tarea = 'v31a2017';
Relevador.version = '1.0';
Interfaz.setAppData();
});
......
......@@ -16,14 +16,15 @@ Interfaz.addHistory=function(positionObject){
Interfaz.setAppData=function(){
Relevador.token = token;
$('#version').text(Relevador.version);
$('#tarea').text(Relevador.tarea);
var token = LocalStorage.get('token');
if($.isEmptyObject(token)){
$('#logout').addClass('hidden');
$('#login').removeClass('hidden');
$('#tarea').text('');
$('#usuario').text('');
}else{
$('#usuario').text(token.usuario);
$('#tarea').text(token.tarea);
$('#logout').removeClass('hidden');
$('#login').addClass('hidden');
}
......
CACHE MANIFEST
# Version 0.0.17
# Version 0.0.18
#--------------------------- HTMLs ---------------------------------
index.html
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment