diff --git a/SRC/public/css/image-picker.css b/SRC/public/css/image-picker.css new file mode 100644 index 0000000..8d31d45 --- /dev/null +++ b/SRC/public/css/image-picker.css @@ -0,0 +1,29 @@ +ul.thumbnails.image_picker_selector { + overflow: auto; + list-style-image: none; + list-style-position: outside; + list-style-type: none; + padding: 0px; + margin: 0px; } + ul.thumbnails.image_picker_selector ul { + overflow: auto; + list-style-image: none; + list-style-position: outside; + list-style-type: none; + padding: 0px; + margin: 0px; } + ul.thumbnails.image_picker_selector li.group_title { + float: none; } + ul.thumbnails.image_picker_selector li { + margin: 0px 12px 12px 0px; + float: left; } + ul.thumbnails.image_picker_selector li .thumbnail { + padding: 6px; + border: 1px solid #dddddd; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; } + ul.thumbnails.image_picker_selector li .thumbnail img { + -webkit-user-drag: none; } + ul.thumbnails.image_picker_selector li .thumbnail.selected { + background: #0088cc; } diff --git a/SRC/public/css/referent.css b/SRC/public/css/referent.css index 0d5f5d4..b23890f 100755 --- a/SRC/public/css/referent.css +++ b/SRC/public/css/referent.css @@ -249,4 +249,10 @@ background: linear-gradient(to bottom, #a7cfdf 0%,#23538a 100%); /* W3C */ } /* Override width of the whole thing */ -.chosen-container { width:220px !important; } \ No newline at end of file +.chosen-container { width:220px !important; } + + +/*For image picker rezise*/ +.thumbnails li img{ + width: 100px; +} diff --git a/SRC/public/js/ListeOeuvre.js b/SRC/public/js/ListeOeuvre.js index 631224d..c70ba96 100755 --- a/SRC/public/js/ListeOeuvre.js +++ b/SRC/public/js/ListeOeuvre.js @@ -6,7 +6,6 @@ $('.listeoeuvre').click(function(event) { $('#oeuvrePic').empty(); url = "/showListOeuvres/" + $(this).children('.idListeOeuvre').val(); - var r = new XMLHttpRequest(); r.open("GET", url, true); r.onreadystatechange = function () { @@ -15,12 +14,13 @@ $('.listeoeuvre').click(function(event) { var data = JSON.parse(r.response); if (data.length == 0 ) $("#oeuvrePic").append("Aucune Oeuvre"); - for (el in data) - { - $("#oeuvrePic").append('