193 // Click on a link into the popup "link to" or other dropdown that ask to close drop down on element click, so close dropdown
194 $(".dropdowncloseonclick").on(\'click\', function () {
195 console.log("Link has class dropdowncloseonclick, so we close/hide the popup ul");
196 //$(this).parent().parent().hide(); // $(this).parent().parent() is ul
197 $(this).parent().parent().removeClass("open"); // $(this).parent().parent() is ul
198 });
199
200 // Click outside of any dropdown
201 $(document).bind(\'click\', function (e) {
202 var $clicked = $(e.target); // This is element we click on
203 if (!$clicked.parents().hasClass("dropdown")) {
204 //console.log("close dropdown dd ul - we click outside");
205 //$(".dropdown dd ul").hide();
206 $(".dropdown dd ul").removeClass("open");
207
208 if ($("input:hidden[name=formfilteraction]").val() == "listafterchangingselectedfields") {
209 console.log("resubmit form saved into lastopendropdown after clicking outside of dropdown and having change selectlist from selectlist field of hamburger dropdown");
257 console.log("We click on tag with .reposition class. this.ref is now "+this.href);
258 }
259 else
260 {
261 console.log("We click on tag with .reposition class but element is not an <a> html tag, so we try to update input form field with name=page_y with value "+page_y);