diff --git a/content/assets/js/addOnto.js b/content/assets/js/addOnto.js
index d1161d5..5c8023b 100644
--- a/content/assets/js/addOnto.js
+++ b/content/assets/js/addOnto.js
@@ -20,7 +20,7 @@ $(document).ready(function(){
.done((data) => {
if (data.items != null) {
- $('#divDemande').html('
');
+ $('#divDemande').html(' ');
$.each(data.items, function (i, obj) {
var content = '' ;
@@ -56,7 +56,7 @@ $(document).ready(function(){
if ( $("#divHistoire").length ) {
- $('#divHistoire').html(' | Histoire | Version | Demande | Resultat | Date |
');
+ $('#divHistoire').html(' | Histoire | Version | Demande | Resultat | Date |
');
$.ajax({
@@ -75,7 +75,7 @@ $(document).ready(function(){
$('#idHistoire').append(content);
- content ='
|
| Operation | Chemin | Nom | Valeur | Précédent |
|
';
+ content ='|
| Operation | Chemin | Nom | Valeur | Précédent |
|
';
console.log("https://smt.esante.gouv.fr/fhir/" + obj.id + "/$diff");
$('#idHistoire').append(content);
$.ajax({
@@ -110,7 +110,7 @@ $(document).ready(function(){
});
}
- });
+ });
});
@@ -211,7 +211,7 @@ $(document).ready(function(){
if($(this).find("tr").length ==1) {
$(this).parent().hide();
}
- $('
').insertBefore($(this));
+ $('
').insertBefore($(this));
firstTr = $(this).find('tr:first').remove()
firstTr.find('td').contents().unwrap().wrap('')
$(this).prepend($('').append(firstTr))
@@ -220,7 +220,6 @@ $(document).ready(function(){
$(".search"+indextable).keyup(function () {
var searchTerm = $(".search"+indextable).val();
- var listItem = $('.results'+indextable +' tbody').children('tr');
var searchSplit = searchTerm.replace(/ /g, "'):containsi('")
$.extend($.expr[':'], {'containsi': function(elem, i, match, array){
@@ -254,7 +253,7 @@ $(document).ready(function(){
if($(this).find("tr").length ==1) {
$(this).parent().hide();
}
- $(' ').insertBefore($(this));
+ $(' ').insertBefore($(this));
firstTr = $(this).find('tr:first').remove()
firstTr.find('td').contents().unwrap().wrap(' | ')
$(this).prepend($('').append(firstTr))
@@ -263,7 +262,6 @@ $(document).ready(function(){
$(".search"+indextable).keyup(function () {
var searchTerm = $(".search"+indextable).val();
- var listItem = $('.results'+indextable +' tbody').children('tr');
var searchSplit = searchTerm.replace(/ /g, "'):containsi('")
$.extend($.expr[':'], {'containsi': function(elem, i, match, array){
diff --git a/content/assets/js/tabs.js b/content/assets/js/tabs.js
index 27290b3..d845f4e 100644
--- a/content/assets/js/tabs.js
+++ b/content/assets/js/tabs.js
@@ -1,6 +1,7 @@
try {
var currentTabIndex = sessionStorage.getItem('fhir-resource-tab-index');
} catch(exception) {
+ console.log(`Exception while retrieving tab index from sessionStorage: ${exception}`);
}
if (!currentTabIndex)
@@ -9,12 +10,12 @@ if (!currentTabIndex)
$( '#tabs' ).tabs({
active: currentTabIndex,
activate: function( event, ui ) {
- var active = $('.selector').tabs('option', 'active');
currentTabIndex = ui.newTab.index();
document.activeElement.blur();
try {
sessionStorage.setItem('fhir-resource-tab-index', currentTabIndex);
} catch(exception) {
+ console.log(`Exception while storing tab index to sessionStorage: ${exception}`);
}
}
});
|