diff --git a/wise-webapp/src/main/webapp/html/css/styles.less b/wise-webapp/src/main/webapp/html/css/styles.less index bb685daa..18d41303 100644 --- a/wise-webapp/src/main/webapp/html/css/styles.less +++ b/wise-webapp/src/main/webapp/html/css/styles.less @@ -54,6 +54,8 @@ body { float: left; border-right: none; position: absolute; + background: @base-color * 14.5; + border: @base-border-size solid @base-color * 14; h2 { font-size: @base-font-size * 1.5; diff --git a/wise-webapp/src/main/webapp/html/workspace.html b/wise-webapp/src/main/webapp/html/workspace.html index 592dcdd0..1e728dcb 100644 --- a/wise-webapp/src/main/webapp/html/workspace.html +++ b/wise-webapp/src/main/webapp/html/workspace.html @@ -75,7 +75,10 @@ "bAutoWidth" : false, "bLengthChange": false, "bInfo": false, - "bPaginate": false + "bPaginate": false, + "oLanguage" : { + "sSearch" : "Rechercher" + } }); $('#maps_filter').appendTo("#toolbar"); @@ -94,24 +97,23 @@ - - - @@ -125,7 +127,7 @@ if ($("#tags").css("opacity") == 0) { $("#tags").css("opacity", 1); $("#maps").animate({ - width: "80%" + width: "77%" }, 1000); } else { $("#maps").animate({ @@ -137,28 +139,46 @@ }); $("#buttons .share").button({ icons: { primary: "ui-icon-transferthick-e-w" } - }); + }).click(function() { + var selectedMaps = $('#maps').dataTableExt.getSelectedMaps(); + var html2 = $('#share-dialog-modal p span').html(selectedMaps.toString()); + + if (selectedMaps.length > 0) { + $( "#share-dialog-modal" ).dialog({ + height: 140, + modal: true, + buttons: { + "Delete": function() { + $( this ).dialog( "close" ); + }, + Cancel: function() { + $( this ).dialog( "close" ); + } + } + }); + } + });; $("#buttons .delete").button({ icons: { primary: "ui-icon-trash" } }).click(function() { var selectedMaps = $('#maps').dataTableExt.getSelectedMaps(); - console.log("Delete maps: " +selectedMaps); var html2 = $('#delete-dialog-modal p span').html(selectedMaps.toString()); - console.log(html2); - $( "#delete-dialog-modal" ).dialog({ - height: 140, - modal: true, - buttons: { - "Delete": function() { - $( this ).dialog( "close" ); - }, - Cancel: function() { - $( this ).dialog( "close" ); + if (selectedMaps.length > 0) { + $( "#delete-dialog-modal" ).dialog({ + height: 140, + modal: true, + buttons: { + "Delete": function() { + $( this ).dialog( "close" ); + }, + Cancel: function() { + $( this ).dialog( "close" ); + } } - } - }); + }); + } }); }) @@ -175,6 +195,10 @@
Are you sure you want to delete maps ?
+ +