events.on('overviewScrollTop', function() { if (!util.getBoolean(self.props.hide)) { container.scrollTop = 0; } });
logs.map(function(log) { var text = 'Date: ' + util.toLocaleString(new Date(log.date)) + '\r\n' + log.text; var hide = (log.hide || (level && !hide && log.level !== level)) ? ' hide' : ''; return ( <li key={log.id} title={log.level.toUpperCase()} className={'w-' + log.level + hide}> <pre> {text && text.length >= 2100 ? <ExpandCollapse text={text} /> : text} </pre> </li> ); })
this.state.logs.forEach(function(log) { if (!log.hide) { logs.push({ id: log.id, text: log.text, level: log.level, date: log.date }); } });
createModal(options, function(d) { dialog = d; if (destroyed) { d.hide(); } else { d.show(); } }, gVarName);
describe("form_onReset", () => { it("hides any error text being shown", () => { const gotoTimeView = new GotoTimeView(options); gotoTimeView.form.emit("reset"); expect(gotoTimeView.errorText.hide).to.have.been.calledOnce; }); });
hide(RegExp.prototype, SYMBOL, length == 2 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) // 21.2.5.11 RegExp.prototype[@@split](string, limit) ? function (string, arg) { return rxfn.call(string, this, arg); } // 21.2.5.6 RegExp.prototype[@@match](string) // 21.2.5.9 RegExp.prototype[@@search](string) : function (string) { return rxfn.call(string, this); } );
followedBtn.click(function() { const url = `/collections/${window.collectionID}/follow`; myHTTP.delete(url).then((res) => { if (res.data.errorCode === ErrorCode.SUCCESS.CODE) { if (res.data.errorCode === ErrorCode.SUCCESS.CODE) { followBtn.show(); followedBtn.hide(); } } }); });
dataCenter.importRemote({ url: url }, getRemoteDataHandler(function(err, data) { self.setState({ pendingValues: false }); if (err) { return; } self.refs.importRemoteValues.hide(); if (data) { self.valuesForm = getJsonForm(data, 'values'); self.refs.confirmImportValues.show(); } }));
$(".settings-sidebar").click(function() { $(".content .ui.section").hide(); $(".content .ui.settings.section").show(); $(this) .parent(".sidebar") .find(".active") .removeClass("active red"); $(this).addClass("active red"); loadSettings(); });
describe("hide", () => { it("hides the popup and restores focus", () => { const gotoTimeView = new GotoTimeView(options); gotoTimeView.hide(); expect(gotoTimeView.node.hide).to.have.been.calledOnce; expect(gotoTimeView.screen.restoreFocus).to.have.been.calledOnce; expect(gotoTimeView.screen.render).to.have.been.calledOnce; }); });
this.container.key(["?", "h", "S-h"], () => { this.gotoTimeView.hide(); this.helpView.toggle(); this.screen.render(); });
followBtn.click(function() { const url = `/collections/${window.collectionID}/follow`; myHTTP.post(url).then((res) => { if (res.data.errorCode === ErrorCode.SUCCESS.CODE) { followBtn.hide(); followedBtn.show(); } }); });
dataCenter.importRemote({ url: url }, getRemoteDataHandler(function(err, data) { self.setState({ pendingSessions: false }); if (err) { return; } self.refs.importRemoteSessions.hide(); self.importAnySessions(data); }));
this.container.key(["g", "S-g"], () => { this.helpView.hide(); this.gotoTimeView.toggle(); this.screen.render(); });