var name; var activeHint = $('li.CodeMirror-hint-active'); if (activeHint.is(':visible')) { name = activeHint.text(); if (showAtHint) {
e.preventDefault(); if ($('.modal.in').length) { if ($(ReactDOM.findDOMNode(self.refs.chooseFileType)).is(':visible')) { self.exportBySave();
// // Called when the user double clicks something in the content editor. // // No return value. // function handleDoubleClick(event) { // Show appropriate panels on double-click if($(event.target).is('a[href]')) $('#link-panel').panel('show'); if($(event.target).is('figure.image, img')) $('#image-panel').panel('show'); if($(event.target).is('[data-embed]')) $('#embed-panel').panel('show'); }
this.$dialog.on('mousedown.dismiss.bs.modal', function () { that.$element.one('mouseup.dismiss.bs.modal', function (e) { if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true }) })
function checkTable(event) { const checkbox = $(event.target); const table = checkbox.parents("table").first(); const checkboxes = table.find("tbody tr td input[type=checkbox]"); checkboxes.prop("checked", checkbox.is(":checked")); }
onInitListener() { $(document).on('click', '#view-accounting .accounting-period', function() { const $yearPicker = $('#view-accounting .js-year-picker'); if ($yearPicker.is(':visible')) { $yearPicker.hide(); } else { $yearPicker.show(); } return false; }); }
origin.on('mouseleave', function (e) { // If hover on origin then to something other than dropdown content, then close var toEl = e.toElement || e.relatedTarget; // added browser compatibility for target element if (!$(toEl).closest('.dropdown-content').is(activates)) { activates.stop(true, true); hideDropdown(); open = false; } });
// Keep the filter dropdown on screen $('#post-filter').on('shown.bs.dropdown', function() { let dropdown = $(this).find('.dropdown-menu'); $(dropdown) // Remove alignment class to check position .removeClass('dropdown-menu-right') // Assign alignment class if the menu is off-screen .toggleClass('dropdown-menu-right', $(dropdown).is(':off-right')); });
// Remove selection when clicking outside of a post $('main').on('click', (event) => { if(!$(event.target).parents().addBack().is('.post-item')) { $('#posts').selectable('selectNone'); } });
$('body').on('click', '.holdOrderKeyboard .key', function() { if($("#holdOrderInput").is(":focus")) { searchOpenOrders(); } });
this.$dialog.on('mousedown.dismiss.bs.modal', function () { that.$element.one('mouseup.dismiss.bs.modal', function (e) { if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true }) })
activates.on('mouseleave', function (e) { // Mouse out var toEl = e.toElement || e.relatedTarget; if (!$(toEl).closest('.dropdown-button').is(origin)) { activates.stop(true, true); hideDropdown(); open = false; } });
this.$dialog.on('mousedown.dismiss.bs.modal', function () { that.$element.one('mouseup.dismiss.bs.modal', function (e) { if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true }) })
this.$dialog.on('mousedown.dismiss.bs.modal', function () { that.$element.one('mouseup.dismiss.bs.modal', function (e) { if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true }) })
this.$dialog.on('mousedown.dismiss.bs.modal', function () { that.$element.one('mouseup.dismiss.bs.modal', function (e) { if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true }) })