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");
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);
270print "\n/* JS CODE TO ENABLE ClipBoard copy paste */\n";
271print '
272 jQuery(document).ready(function() {
273 jQuery(\'.clipboardCPShowOnHover\').hover(
274 function() {
275 console.log("We hover a value with a copy paste feature");
276 $(this).children(".clipboardCPButton, .clipboardCPText").css("display", "inline-block"); /* better than .show() because the show set the display to "inline" */
277 },
278 function() {
279 console.log("We hover out the value with a copy paste feature");
324 $(this).parent().children(".clipboardCPTick").css("display", "inline-block"); /* better than .show() because the show set the display to "inline" */