dataCenter.on('serverInfo', function(data) { self.updateServerInfo(data); data && self.checkServerChanged(data); var curState = !!data; if (curState !== online) { online = curState; if (online) { body.removeClass('w-offline-status'); } else { body.addClass('w-offline-status'); } } self.setState({server: data}); });
viewer.on('mouseenter', STR_SELECTOR, function(e) { if (!(e.ctrlKey || e.metaKey)) { return; } var elem = $(this); if (LINK_RE.test(elem.text())) { elem.addClass('w-is-link'); } }).on('mouseleave', STR_SELECTOR, function() { $(this).removeClass('w-is-link'); }).on('mousedown', STR_SELECTOR, function(e) { if (!(e.ctrlKey || e.metaKey)) { return; } var elem = $(this); if (LINK_RE.test(elem.text())) { window.open((RegExp.$1 || 'http:') + RegExp.$2); } });
$(this).removeClass('w-is-link'); }).on('mousedown', LINK_SELECTOR, function(e) { if (!isEditor() || !(e.ctrlKey || e.metaKey)) {
this.backdrop(function () { that.$body.removeClass('modal-open') that.resetAdjustments() that.resetScrollbar() that.$element.trigger('hidden.bs.modal') })
// Resets the control to its original state function reset() { $('#locater').removeClass('loading'); $('#locater-input').val(''); $('#locater-results').html('').prop('hidden', true); lastQuery = ''; }
saveToAPI(null, null, this.serverUrl + "release_funds", function(){ self.status = 6; self.tabState = "summary"; self.getData(); }, '', resData).always(() => { $(e.target).removeClass('loading'); });
$active .one('bsTransitionEnd', function () { $next.removeClass([type, direction].join(' ')).addClass('active') $active.removeClass(['active', direction].join(' ')) that.sliding = false setTimeout(function () { that.$element.trigger(slidEvent) }, 0) }) .emulateTransitionEnd(Carousel.TRANSITION_DURATION)
function handleLogout() { for(key in window.swaggerUi.api.clientAuthorizations.authz){ window.swaggerUi.api.clientAuthorizations.remove(key) } window.enabledScopes = null; $('.api-ic.ic-on').addClass('ic-off'); $('.api-ic.ic-on').removeClass('ic-on'); // set the info box $('.api-ic.ic-warning').addClass('ic-error'); $('.api-ic.ic-warning').removeClass('ic-warning'); }
connection.on('error', () => { $('#testSMTPButton').removeClass('loading'); app.simpleMessageModal.open({ title: window.polyglot.t('errorMessages.smtpServerError'), message: window.polyglot.t('errorMessages.noSMTPConnection') }); });
// Hides the locater control function hide() { // Remove bindings $(document).off('.locater'); $('#locater-overlay').off('.locater'); $('#locater-input').off('.locater'); // Hide it $('html').removeClass('has-modal'); $('#locater, #locater-overlay').animateCSS('fadeOut', 100, function() { $(this).prop('hidden', true); }); }
btn.on('click', function(){ var othis = $(this), index = othis.index(); othis.addClass('xubox_tabnow').siblings().removeClass('xubox_tabnow'); main.eq(index).show().siblings().hide(); });
function selectElement(element) { $(element).parent().children().removeClass('s'); $(element).addClass('s'); }
// 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')); });
$active .one('bsTransitionEnd', function () { $next.removeClass([type, direction].join(' ')).addClass('active') $active.removeClass(['active', direction].join(' ')) that.sliding = false setTimeout(function () { that.$element.trigger(slidEvent) }, 0) }) .emulateTransitionEnd(Carousel.TRANSITION_DURATION)
this.backdrop(function () { that.$body.removeClass('modal-open') that.resetAdjustments() that.resetScrollbar() that.$element.trigger('hidden.bs.modal') })