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