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