rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
that.resultsPager.events.onModelChange.addListener(function () { | that.resultsPager.events.onModelChange.addListener(function (newModel, oldModel) { | var bindEventHandlers = function (that) { var searchSubmitHandler = handleSubmitSearch(that); that.locate("searchButton").click(searchSubmitHandler); that.locate("keywords").fluid("activatable", searchSubmitHandler); that.events.modelChanged.addListener(function () { displaySe... |
var record = that.model.results[index]; | var record = that.model.results[newModel.pageSize * newModel.pageIndex + index]; | var bindEventHandlers = function (that) { var searchSubmitHandler = handleSubmitSearch(that); that.locate("searchButton").click(searchSubmitHandler); that.locate("keywords").fluid("activatable", searchSubmitHandler); that.events.modelChanged.addListener(function () { displaySe... |
that.applier.requestChange("termsUsed", data.termsUsed); | var bindEventHandlers = function (that) { setupConfirmation(that); that.events.onSave.addListener(validateIdentificationNumber(that.dom, that.container, that.options.strings.identificationNumberRequired)); that.events.onSave.addListener(function () { cspace.util.displayTimestampedMes... | |
return validate(that.dom, that.userListEditor.detailsApplier); | return validate(that.dom, that.userListEditor.detailsApplier, that.passwordValidator); | var bindEventHandlers = function (that) { that.locate("searchButton").click(submitSearch(that.dom, that.userListEditor)); that.locate("unSearchButton").click(restoreUserList(that.userListEditor.listDC, that.dom)).hide(); that.userListEditor.details.events.onSave.addListener(function () { ... |
that.userListEditor.events.afterAddNewListRow.addListener(function () { that.passwordValidator.bindEvents(); }); | var bindEventHandlers = function (that) { that.locate("searchButton").click(submitSearch(that.dom, that.userListEditor)); that.locate("unSearchButton").click(restoreUserList(that.userListEditor.listDC, that.dom)).hide(); that.userListEditor.details.events.onSave.addListener(function () { ... | |
if (that.options.pivoting) { that.resultsPager.events.onModelChange.addListener(function () { that.locate("resultsRow").click(function (event) { var row = $(event.currentTarget); var rows = that.locate("resultsRow"); var index = rows.index(row); var record = that.model.results[index]; if (!record) { return; } var e... | var bindEventHandlers = function (that) { var searchSubmitHandler = handleSubmitSearch(that); that.locate("searchButton").click(searchSubmitHandler); that.locate("keywords").fluid("activatable", searchSubmitHandler); that.events.modelChanged.addListener(function () { displaySe... | |
}); $.each(["Delete", "Add"], function (i, event) { that.events["after" + event].addListener(function () { processDeleteInput(that.locate("remove").eq(0), that.fetchModel()); }); | var bindEventHandlers = function (that) { var elPath = that.options.elPath; // Waiting to ensure that the change request went through before changing the model. // Also fires when fields get modified. that.applier.modelChanged.addListener(elPath, function (model) { ... | |
that.locate("newUser").click(addNewUser(that.container, that.userListEditor, that.dom, that.options.uispec)); | var bindEventHandlers = function (that) { that.locate("searchButton").click(submitSearch(that.dom, that.userListEditor)); that.locate("unSearchButton").click(restoreUserList(that.userListEditor.listDC, that.dom)).hide(); that.locate("newUser").click(addNewUser(that.container, that.userL... | |
that.relationManager.events.onCreateNewRecord.addListener(that.listEditor.addNewListRow); that.listEditor.detailsDC.events.afterCreate.addListener(function (data) { var newRelation = [{ source: { csid: that.applier.model.csid, recordtype: that.recordType }, target: { csid: data.csid, recordtype: "objects" }, type: "aff... | var bindEventHandlers = function (that) { that.applier.modelChanged.addListener("relations", function () { that.listEditor.options.updateList(that.listEditor, that.listEditor.list.refreshView); }); that.listEditor.events.pageReady.addListener(function () { that.events.afte... | |
that.locate("newUser").click(addNewUser(that)); | that.locate("newUser").click(addNewUser(that.container, that.userListEditor, that.dom, that.options.uispec)); | var bindEventHandlers = function (that) { that.locate("searchButton").click(submitSearch(that.dom, that.userListEditor)); that.locate("unSearchButton").click(restoreUserList(that.userListEditor.listDC, that.dom)).hide(); that.locate("newUser").click(addNewUser(that)); that.userLi... |
return validate(that.dom, that.userListEditor.detailsApplier, that.passwordValidator); | return validate(that.dom, that.userListEditor.detailsApplier); | var bindEventHandlers = function (that) { that.locate("searchButton").click(submitSearch(that.dom, that.userListEditor)); that.locate("unSearchButton").click(restoreUserList(that.userListEditor.listDC, that.dom)).hide(); that.locate("newUser").click(addNewUser(that)); that.userLi... |
that.dataContext.events.afterAddRelations.addListener(updateRelations(that.applier)); | that.dataContext.events.afterAddRelations.addListener(updateRelations(that.applier, that.recordType)); | var bindEventHandlers = function (that) { that.locate("addButton").click(function (e) { if (that.applier.model.csid) { that.locate("messageContainer", "body").hide(); cspace.addDialogInst.prepareDialog(that.recordType); cspace.addDialogInst.dlg.bind("di... |
cspace.util.corner(); | var bindEventHandlers = function (that) { setupConfirmation(that); that.events.onSave.addListener(validateIdentificationNumber(that.dom, that.container, that.options.strings.identificationNumberRequired)); that.events.onSave.addListener(function () { cspace.util.displayTimestampedMes... | |
that.events.onSelect.addListener(that.options.onSelectHandler); | var bindEventHandlers = function (that) { var list = that.container; var rows = that.locate("row"); list.fluid("selectable", { selectableElements: rows, onSelect: function (row) { if (row) { rows.removeClass(that.options.styles.selecting);... | |
fluid.model.setBeanValue(that.model, elPath, fluid.model.getBeanValue(model, elPath)); | fluid.model.setBeanValue(that.model, elPath, that.fetchModel(model)); | var bindEventHandlers = function (that) { var elPath = that.options.elPath; // Waiting to ensure that the change request went through before changing the model. // Also fires when fields get modified. that.applier.modelChanged.addListener(elPath, function (model) { ... |
that.locate("add").click(function () { | that.container.delegate("click", that.options.selectors.add, function () { | var bindEventHandlers = function (that) { var elPath = that.options.elPath; // Waiting to ensure that the change request went through before changing the model. // Also fires when fields get modified. that.applier.modelChanged.addListener(elPath, function (model) { ... |
that.refreshView(); | renderFinalRow(that); that.events.afterRender.fire(); | var bindEventHandlers = function (that) { var elPath = that.options.elPath; // Waiting to ensure that the change request went through before changing the model. // Also fires when fields get modified. that.applier.modelChanged.addListener(elPath, function (model) { ... |
that.locate("remove").click(function () { | that.container.delegate("click", that.options.selectors.remove, function () { | var bindEventHandlers = function (that) { var elPath = that.options.elPath; // Waiting to ensure that the change request went through before changing the model. // Also fires when fields get modified. that.applier.modelChanged.addListener(elPath, function (model) { ... |
requestChange(that, deleteRow, index); that.refreshView(); | requestChange(that, deleteRow, index); var repeats = that.locate("repeat"); $(repeats[index]).remove(); that.events.afterRender.fire(); | var bindEventHandlers = function (that) { var elPath = that.options.elPath; // Waiting to ensure that the change request went through before changing the model. // Also fires when fields get modified. that.applier.modelChanged.addListener(elPath, function (model) { ... |
that.locate("primary").click(function () { | that.container.delegate("click", that.options.selectors.primary, function () { | var bindEventHandlers = function (that) { var elPath = that.options.elPath; // Waiting to ensure that the change request went through before changing the model. // Also fires when fields get modified. that.applier.modelChanged.addListener(elPath, function (model) { ... |
that.events.passwordSubmitted.addListener(function () { showPasswordReset(that.dom); | that.events.passwordSubmitted.addListener(function (data, statusText) { showPasswordReset(that.dom, data); | var bindEventHandlers = function (that) { that.locate("requestReset").click(function(e){ cspace.util.hideMessage(that.dom); showResetRequestForm(that.dom); }); that.locate("submitEmail").click(makeEmailSubmitter(that)); that.locate("submitNewPassword").click(makePas... |
fluid.invokeGlobalFunction(func, [that.model.fields.csid, that.model[data]]); | args.push(that.model[data]); | var bindEventHandlers = function (that) { that.dataContext.events.afterCreate.addListener(function (modelPath, data) { that.applier.requestChange(that.options.idField, data.fields.csid); that.events.afterCreateObjectDataSuccess.fire(data, that.options.strings.createSuccessfulMessage); ... |
else { fluid.invokeGlobalFunction(func, [that.model.fields.csid]); } | fluid.invokeGlobalFunction(func, args); | var bindEventHandlers = function (that) { that.dataContext.events.afterCreate.addListener(function (modelPath, data) { that.applier.requestChange(that.options.idField, data.fields.csid); that.events.afterCreateObjectDataSuccess.fire(data, that.options.strings.createSuccessfulMessage); ... |
setupConfirmation(that); | var bindEventHandlers = function (that) { that.dataContext.events.afterCreate.addListener(function (modelPath, data) { that.applier.requestChange(that.options.idField, data.fields.csid); that.events.afterCreateObjectDataSuccess.fire(data, that.options.strings.createSuccessfulMessage); ... | |
that.events.afterRender.fire(); | that.events.afterRender.fire(that); | var bindEventHandlers = function (that) { that.locate("searchButton").click(submitSearch(that.userListEditor, that.dom, that.options.queryURL, that.events.afterSearch)); that.locate("unSearchButton").click(restoreUserList(that.userListEditor, that.dom)).hide(); that.userListEditor.details.event... |
that.locate("newRole").click(addNewRole(that.container, that.roleListEditor, that.dom, that.options.uispec)); that.roleListEditor.details.events.onSave.addListener(function () { }); | var bindEventHandlers = function (that) { that.locate("newRole").click(addNewRole(that.container, that.roleListEditor, that.dom, that.options.uispec)); that.roleListEditor.details.events.onSave.addListener(function () { }); that.roleListEditor.events.pageReady.addListener(function () { ... | |
addDialog.dialog("close"); | that.close(); | var bindEventHandlers = function (that, addDialog) { that.locate("addButton", addDialog).click(handleAddClick(that)); that.locate("closeButton", addDialog).click(function () { addDialog.dialog("close"); }); that.locate("createNewButton", addDialog).click(function () { ... |
that.dlg.dialog("close"); | that.close(); | var bindEventHandlers = function (that, addDialog) { that.locate("addButton", addDialog).click(handleAddClick(that)); that.locate("closeButton", addDialog).click(function () { addDialog.dialog("close"); }); that.locate("createNewButton", addDialog).click(function () { ... |
that.applier.modelChanged.addListener("relations", function(model, oldModel, changeRequest) { fluid.model.copyModel(that.recordList.model.items, cspace.util.buildRelationsList(model.relations, recordsLists[that.options.recordType])); | var elPath = "relations." + that.options.recordType; that.applier.modelChanged.addListener(elPath, function(model, oldModel, changeRequest) { fluid.model.copyModel(that.recordList.model.items, buildRelationsList(model.relations, that.options.recordType) || []); | bindEventHandlers = function (that) { that.applier.modelChanged.addListener("relations", function(model, oldModel, changeRequest) { fluid.model.copyModel(that.recordList.model.items, cspace.util.buildRelationsList(model.relations, recordsLists[that.options.recordType])); that.recordList... |
retrieveUserList(that.userList, that.userListApplier.model); }); that.dataContext.events.afterUpdate.addListener(function () { | var bindEventHandlers = function (that) { that.locate("searchButton").click(submitSearch(that.dom, that.userList, that.userListApplier.model)); that.locate("unSearchButton").click(restoreUserList(that.dom, that.userList, that.userListApplier.model)).hide(); that.locate("newUser").click(... | |
retrieveUserList(that.userList, that.userListApplier.model); | retrieveUserList(that.dom, that.userList, that.userListApplier.model); | var bindEventHandlers = function (that) { that.locate("searchButton").click(submitSearch(that.dom, that.userList, that.userListApplier.model)); that.locate("unSearchButton").click(restoreUserList(that.dom, that.userList, that.userListApplier.model)).hide(); that.locate("newUser").click(... |
that.locate("addButton").click(function () { | that.locate("add").click(function () { | var bindEventHandlers = function (that) { var elPath = that.options.elPath; // Waiting to ensure that the change request went through before changing the model. // Also fires when fields get modified. that.applier.modelChanged.addListener(elPath, function (model) { ... |
that.locate("deleteButton").click(function () { | that.locate("remove").click(function () { | var bindEventHandlers = function (that) { var elPath = that.options.elPath; // Waiting to ensure that the change request went through before changing the model. // Also fires when fields get modified. that.applier.modelChanged.addListener(elPath, function (model) { ... |
that.locate("addButton").click(function (e) { if (that.model.csid) { that.locate("messageContainer", "body").hide(); that.searchToRelateDialog.dlg.dialog("open"); } else { cspace.util.displayTimestampedMessage(that.dom, that.options.strings.pleaseSaveFirst); } }); | if (that.showAddButton.visible) { that.locate("addButton").click(function (e) { if (that.model.csid) { that.locate("messageContainer", "body").hide(); that.searchToRelateDialog.open(); } else { cspace.util.displayTimestampedMessage(that.dom, that.options.strings.pleaseSaveFirst); } }); } else { that.locate("addButton")... | var bindEventHandlers = function (that) { that.locate("addButton").click(function (e) { if (that.model.csid) { that.locate("messageContainer", "body").hide(); that.searchToRelateDialog.dlg.dialog("open"); } else { cspace.util.displayTimestamp... |
var searchSubmitHandler = submitSearchRequest(that); | var searchSubmitHandler = handleSubmitSearch(that); | var bindEventHandlers = function (that) { var searchSubmitHandler = submitSearchRequest(that); that.locate("searchButton").click(searchSubmitHandler); that.locate("keywords").fluid("activatable", searchSubmitHandler); that.events.modelChanged.addListener(function () { displayS... |
displaySearchResults(that, that.model.recordType); | displaySearchResults(that); | var bindEventHandlers = function (that) { var searchSubmitHandler = submitSearchRequest(that); that.locate("searchButton").click(searchSubmitHandler); that.locate("keywords").fluid("activatable", searchSubmitHandler); that.events.modelChanged.addListener(function () { displayS... |
that.options.listPopulationStrategy(that.model, that.recordType, that.options, function (data) { that.list.refreshView(); }); | that.options.updateList(that, that.list.refreshView); | var bindEventHandlers = function (that) { that.detailsDC.events.afterSave.addListener(function () { that.options.listPopulationStrategy(that.model, that.recordType, that.options, function (data) { that.list.refreshView(); }); }); that.detailsDC.events.afterC... |
that.locate("newListRow").hide(); that.showDetails(false); | showDetails(that.dom, false); | var bindEventHandlers = function (that) { that.detailsDC.events.afterSave.addListener(function () { that.options.listPopulationStrategy(that.model, that.recordType, that.options, function (data) { that.list.refreshView(); }); }); that.detailsDC.events.afterC... |
that.locate("newListRow").hide(); | var bindEventHandlers = function (that) { that.detailsDC.events.afterSave.addListener(function () { that.options.listPopulationStrategy(that.model, that.recordType, that.options, function (data) { that.list.refreshView(); }); }); that.detailsDC.events.afterC... | |
loadDetails(model, that.detailsDC); | that.options.loadDetails(model, that.detailsDC); | var bindEventHandlers = function (that) { that.detailsDC.events.afterSave.addListener(function () { that.options.listPopulationStrategy(that.model, that.recordType, that.options, function (data) { that.list.refreshView(); }); }); that.detailsDC.events.afterC... |
that.locate("addNewListRowButton").click(that.addNewListRow); | var bindEventHandlers = function (that) { that.detailsDC.events.afterSave.addListener(function () { that.options.listPopulationStrategy(that.model, that.recordType, that.options, function (data) { that.list.refreshView(); }); }); that.detailsDC.events.afterC... | |
$(that.options.selectors.confirmationInclude + ":not(" + that.options.selectors.confirmationExclude + ")").live("click", that.showConfirmation); | $(that.options.selectors.confirmationInclude).live("click", confirmationTriggerMaker(that.options.selectors.confirmationExclude, that.showConfirmation)); | var bindEventHandlers = function (that) { $(that.options.selectors.confirmationInclude + ":not(" + that.options.selectors.confirmationExclude + ")").live("click", that.showConfirmation); that.events.onSave.addListener(validateIdentificationNumber(that.dom, that.container, that.options.strings.identifi... |
that.applier.requestChange("csid", data.csid); that.locate("deleteButton").removeAttr("disabled").removeClass("deactivate"); that.events.afterCreateObjectDataSuccess.fire(data, that.options.strings.createSuccessfulMessage); that.applier.requestChange("termsUsed", data.termsUsed); cspace.util.displayTimestampedMessage(t... | recordSaveHandler(that, data, "Create"); that.locate("deleteButton").removeAttr("disabled").removeClass("deactivate"); | var bindEventHandlers = function (that) { $(that.options.selectors.confirmationInclude + ":not(" + that.options.selectors.confirmationExclude + ")").live("click", that.showConfirmation); that.events.onSave.addListener(validateIdentificationNumber(that.dom, that.container, that.options.strings.identifi... |
that.events.afterUpdateObjectDataSuccess.fire(data, that.options.strings.updateSuccessfulMessage); that.applier.requestChange("termsUsed", data.termsUsed); cspace.util.displayTimestampedMessage(that, that.options.strings.updateSuccessfulMessage, Date()); that.unsavedChanges = false; | recordSaveHandler(that, data, "Update"); | var bindEventHandlers = function (that) { $(that.options.selectors.confirmationInclude + ":not(" + that.options.selectors.confirmationExclude + ")").live("click", that.showConfirmation); that.events.onSave.addListener(validateIdentificationNumber(that.dom, that.container, that.options.strings.identifi... |
var setUnchanged = function () { | that.applier.modelChanged.addListener("fields", function (model, oldModel, changeRequest) { | var bindEventHandlers = function (that) { $(that.options.selectors.confirmationInclude + ":not(" + that.options.selectors.confirmationExclude + ")").live("click", that.showConfirmation); that.events.onSave.addListener(validateIdentificationNumber(that.dom, that.container, that.options.strings.identifi... |
}; that.applier.modelChanged.addListener("*", setUnchanged); | }); | var bindEventHandlers = function (that) { $(that.options.selectors.confirmationInclude + ":not(" + that.options.selectors.confirmationExclude + ")").live("click", that.showConfirmation); that.events.onSave.addListener(validateIdentificationNumber(that.dom, that.container, that.options.strings.identifi... |
that.list.events.onSelect.addListener(function (model) { | that.list.events.afterSelect.addListener(function (model) { | var bindEventHandlers = function (that) { that.detailsDC.events.afterSave.addListener(function () { that.options.updateList(that, that.list.refreshView); }); that.detailsDC.events.afterCreate.addListener(function () { that.locate("newListRow").hide(); }); tha... |
that.events.onSave.addListener(validateIdentificationNumber(that.dom, that.options.strings.identificationNumberRequired)); | that.events.onSave.addListener(validateIdentificationNumber(that.dom, that.container, that.options.strings.identificationNumberRequired)); | var bindEventHandlers = function (that) { setupConfirmation(that); that.events.onSave.addListener(validateIdentificationNumber(that.dom, that.options.strings.identificationNumberRequired)); that.events.onSave.addListener(function () { cspace.util.displayTimestampedMessage(that, that.... |
cspace.util.setZIndex(); | var bindEventHandlers = function (that) { setupConfirmation(that); that.events.onSave.addListener(function () { cspace.util.displayTimestampedMessage(that, that.options.strings.savingMessage, ""); }); that.options.dataContext.events.afterCreate.addListener(function (data) { ... | |
displaySearchResults(that, that.locate("recordType").val()); | var recordType = that.locate("recordType").val(); if (recordType.indexOf("authorities-") === 0) { recordType = recordType.substring(12); } displaySearchResults(that, recordType); | var bindEventHandlers = function (that) { var searchSubmitHandler = submitSearchRequest(that); that.locate("searchButton").click(searchSubmitHandler); that.locate("keywords").fluid("activatable", searchSubmitHandler); that.events.modelChanged.addListener(function () { displayS... |
that.locate("add").click(function () { that.applier.requestChange(elPath, addRow(fluid.model.getBeanValue(that.model, elPath))); | that.locate("add").click(function () { requestChange(that, addRow); | var bindEventHandlers = function (that) { var elPath = that.options.elPath; // Waiting to ensure that the change request went through before changing the model. // Also fires when fields get modified. that.applier.modelChanged.addListener(elPath, function (model) { ... |
that.locate("primary").click(function () { var index = that.locate("primary").index(this); requestChange(that, updatePrimary, index); that.events.afterUpdatePrimary.fire(); }); | var bindEventHandlers = function (that) { var elPath = that.options.elPath; // Waiting to ensure that the change request went through before changing the model. // Also fires when fields get modified. that.applier.modelChanged.addListener(elPath, function (model) { ... | |
that.applier.modelChanged.addListener("relations", function (model, oldModel, changeRequest) { that.listEditor.options.listPopulationStrategy(that.listEditor.model, that.recordType, {data: model.relations}, function () { that.listEditor.list.refreshView(); }); | that.applier.modelChanged.addListener("relations", function () { that.listEditor.options.updateList(that.listEditor, that.listEditor.list.refreshView); | var bindEventHandlers = function (that) { that.applier.modelChanged.addListener("relations", function (model, oldModel, changeRequest) { that.listEditor.options.listPopulationStrategy(that.listEditor.model, that.recordType, {data: model.relations}, function () { that.listEditor.list... |
that.userListEditor.details.events.afterRender.addListener(function () { that.locate("deleteButton")[that.isCurrentUser(that.userListEditor.details.model.csid) ? "hide" : "show"](); }); | var bindEventHandlers = function (that) { that.locate("searchButton").click(submitSearch(that.userListEditor, that.dom, that.options.queryURL, that.events.afterSearch)); that.locate("unSearchButton").click(restoreUserList(that.userListEditor, that.dom)).hide(); that.userListEditor.details.event... | |
that.events.afterRender.addListener(function () { that.locate("save").click(that.requestSave); that.locate("deleteButton").click(that.remove); that.locate("cancel").click(function () { that.locate("messageContainer", "body").hide(); that.unsavedChanges = false; that.events.onCancel.fire(); }); cspace.util.setZIndex(); ... | var bindEventHandlers = function (that) { $(that.options.selectors.confirmationInclude).live("click", confirmationTriggerMaker(that.options.selectors.confirmationExclude, that.showConfirmation)); $(that.options.selectors.forms).submit(function (event) { var form = $(this... | |
setupConfirmation(that); | $(that.options.selectors.confirmationInclude + ":not(" + that.options.selectors.confirmationExclude + ")").live("click", that.showConfirmation); | var bindEventHandlers = function (that) { setupConfirmation(that); that.events.onSave.addListener(validateIdentificationNumber(that.dom, that.container, that.options.strings.identificationNumberRequired)); that.events.onSave.addListener(function () { cspace.util.displayTimestampedMes... |
var setUnchanged = function () { that.unsavedChanges = true; }; for (var selector in that.uispec) { if (that.uispec.hasOwnProperty(selector)) { if (selector.indexOf(":") !== -1) { selector = selector.substring(0, selector.indexOf(":")); } var el = $(selector); el.change(setUnchanged); } } | var bindEventHandlers = function (that) { setupConfirmation(that); that.events.onSave.addListener(validateIdentificationNumber(that.dom, that.container, that.options.strings.identificationNumberRequired)); that.events.onSave.addListener(function () { cspace.util.displayTimestampedMes... | |
recordtype: that.recordType | recordtype: that.relationManager.options.primaryRecordType | var bindEventHandlers = function (that) { that.applier.modelChanged.addListener("relations", function () { that.listEditor.options.updateList(that.listEditor, that.listEditor.list.refreshView); }); that.listEditor.events.pageReady.addListener(function () { that.events.afte... |
recordtype: "objects" | recordtype: that.recordType | var bindEventHandlers = function (that) { that.applier.modelChanged.addListener("relations", function () { that.listEditor.options.updateList(that.listEditor, that.listEditor.list.refreshView); }); that.listEditor.events.pageReady.addListener(function () { that.events.afte... |
that.unsavedChanges = false; | var bindEventHandlers = function (that) { $(that.options.selectors.confirmationInclude + ":not(" + that.options.selectors.confirmationExclude + ")").live("click", that.showConfirmation); that.events.onSave.addListener(validateIdentificationNumber(that.dom, that.container, that.options.strings.identifi... | |
that.locate("newUser").click(addNewUser(that.container, that.userListEditor, that.dom, that.options.uispec)); | that.locate("newUser").click(addNewUser(that)); | var bindEventHandlers = function (that) { that.locate("searchButton").click(submitSearch(that.dom, that.userListEditor)); that.locate("unSearchButton").click(restoreUserList(that.userListEditor.listDC, that.dom)).hide(); that.locate("newUser").click(addNewUser(that.container, that.userL... |
return validate(that.dom, that.userListEditor.detailsApplier); | return validate(that.dom, that.userListEditor.detailsApplier, that.passwordValidator); | var bindEventHandlers = function (that) { that.locate("searchButton").click(submitSearch(that.dom, that.userListEditor)); that.locate("unSearchButton").click(restoreUserList(that.userListEditor.listDC, that.dom)).hide(); that.locate("newUser").click(addNewUser(that.container, that.userL... |
that.locate("warning").hide(); | cspace.util.hideMessage(that.dom); | var bindEventHandlers = function (that) { that.locate("requestReset").click(function(e){ that.locate("warning").hide(); showResetRequestForm(that.dom); }); that.locate("submitEmail").click(makeEmailSubmitter(that)); that.locate("submitNewPassword").click(makePasswor... |
that.options.dataContext.events.afterFetch.addListener(function (data) { | that.options.dataContext.events.modelChanged.addListener(function (data) { | var bindEventHandlers = function (that) { setupConfirmation(that); that.events.onSave.addListener(validateIdentificationNumber(that.dom, that.container, that.options.strings.identificationNumberRequired)); that.events.onSave.addListener(function () { cspace.util.displayTimestampedMes... |
that.applier.modelChanged.addListener("relations", function () { | var elPath = "relations." + that.recordType; that.applier.modelChanged.addListener(elPath, function () { | var bindEventHandlers = function (that) { that.applier.modelChanged.addListener("relations", function () { that.listEditor.options.updateList(that.listEditor, that.listEditor.list.refreshView); }); that.listEditor.events.pageReady.addListener(function () { that.events.afte... |
that.locate("addButton").live("click", function (e) { if (that.applier.model.csid) { that.locate("messageContainer", "body").hide(); that.locate("recordTypeString", cspace.addDialogInst.dlg).text(that.options.recordType); cspace.addDialogInst.prepareDialog(that.options.recordType); cspace.addDialogInst.dlg.dialog("open... | bindEventHandlers = function (that) { that.locate("addButton").live("click", function (e) { if (that.applier.model.csid) { that.locate("messageContainer", "body").hide(); that.locate("recordTypeString", cspace.addDialogInst.dlg).text(that.options.recor... | |
var bindEvents = function (that) { var pwField = that.locate("passwordField"); pwField.change(function(event) { that.validateLength(pwField.val()); }); }; | that.bindEvents = function () { bindEvents(that); }; | var bindEvents = function (that) { var pwField = that.locate("passwordField"); pwField.change(function(event) { that.validateLength(pwField.val()); }); }; |
calendarDate.val(that.options.months[date.getMonth()] + " " + date.getDate() + ", " + date.getYear()); | calendarDate.val(formatDate(date, that.options.defaultFormat)); | var bindEvents = function (that) { var datePicker = that.locate("datePicker"); var calendarDate = that.locate("calendarDate"); var table = $(that.datePicker.tableBody_); fluid.deadMansBlur(datePicker, table, function () { closeCalendar(that); }); table.blur(function (e) { table.remov... |
if (that.freeText) { calendarDate.focus(); } | var bindEvents = function (that) { var datePicker = that.locate("datePicker"); var calendarDate = that.locate("calendarDate"); var table = $(that.datePicker.tableBody_); fluid.deadMansBlur(datePicker, table, function () { closeCalendar(that); }); table.blur(function (e) { table.remov... | |
table.blur(function () { | table.blur(function (e) { | var bindEvents = function (that) { var datePicker = that.locate("datePicker"); var calendarDate = that.locate("calendarDate"); var table = $(that.datePicker.tableBody_); fluid.deadMansBlur(datePicker, table, function () { closeCalendar(that); }); table.blur(function () { table.remove... |
table.focus(function () { | table.focus(function (e) { | var bindEvents = function (that) { var datePicker = that.locate("datePicker"); var calendarDate = that.locate("calendarDate"); var table = $(that.datePicker.tableBody_); fluid.deadMansBlur(datePicker, table, function () { closeCalendar(that); }); table.blur(function () { table.remove... |
datePicker.focus(); | var bindEvents = function (that) { var datePicker = that.locate("datePicker"); var calendarDate = that.locate("calendarDate"); var table = $(that.datePicker.tableBody_); fluid.deadMansBlur(datePicker, table, function () { closeCalendar(that); }); table.blur(function () { table.remove... | |
that.options.successHandler(that)(); | that.successHandler(); | var bindEvents = function (that) { that.locate("cancel", that.dlg).click(function () { that.close(); }); that.locate("close", that.dlg).click(function () { that.close(); }); that.locate("proceed", that.dlg).click(function (e) { that.options.success... |
that.navigate(); | that.options.successHandler(that)(); | var bindEvents = function (that) { that.locate("cancel", that.dlg).click(function () { that.close(); }); that.locate("closeButton", that.dlg).click(function () { that.close(); }); that.locate("proceed", that.dlg).click(function (e) { that.navigate(); }); ... |
fluid.deadMansBlur(rows, rows, function (event) { list.hide(); | fluid.deadMansBlur(rows, { exclusions: {rows: rows}, handler: function () { list.hide(); } | var bindEvents = function (that) { var list = that.locate("list"); var rows = that.locate("row"); that.locate("button").click(function () { var list = that.locate("list"); list.toggle(); if (list.is(":visible")) { list.focus(); ... |
that.locate("procede").click(function (e) { | that.locate("closeButton").click(function () { that.container.dialog("close"); }); that.locate("proceed").click(function (e) { | var bindEvents = function (that) { that.locate("cancel").click(function () { that.container.dialog("close"); }); that.locate("procede").click(function (e) { window.location = that.options.model.href; }); that.locate("save").click(function (e) { that.options... |
calendarDate.val(date.getYear() + "/" + (date.getMonth() + 1) + "/" + date.getDate()); | calendarDate.val(that.options.months[date.getMonth()] + " " + date.getDate() + ", " + date.getYear()); | var bindEvents = function (that) { var datePicker = that.locate("datePicker"); var calendarDate = that.locate("calendarDate"); var table = $(that.datePicker.tableBody_); fluid.deadMansBlur(datePicker, table, function () { closeCalendar(that); }); table.blur(function () { table.remove... |
datePicker.hide(); | closeCalendar(that); | var bindEvents = function (that) { var datePicker = that.locate("datePicker"); var calendarDate = that.locate("calendarDate"); var table = $(that.datePicker.tableBody_); fluid.deadMansBlur(datePicker, table, function () { closeCalendar(that); }); table.blur(function () { table.remove... |
fluid.bindFossils = function(node, data, fossils) { $.data(node, fluid.BINDING_ROOT_KEY, {data: data, fossils: fossils}); }; | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | fluid.bindFossils = function(node, data, fossils) { $.data(node, fluid.BINDING_ROOT_KEY, {data: data, fossils: fossils}); }; |
var bindHandlers = function (that) { that.locate("undoControl").click( function () { if (that.state !== STATE_REVERTED) { fluid.model.copyModel(that.extremalModel, that.component.model); that.component.updateModel(that.initialModel, that); that.state = STATE_REVERTED; refreshView(that); that.locate("redoControl").focus... | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | var bindHandlers = function (that) { that.locate("undoControl").click( function () { if (that.state !== STATE_REVERTED) { fluid.model.copyModel(that.extremalModel, that.component.model); that.component.updateModel(that.initialModel, that); ... |
var bindHighlightHandler = function (viewEl, focusStyle, invitationStyle) { var focusOn = function () { viewEl.addClass(focusStyle); viewEl.addClass(invitationStyle); }; var focusOff = function () { viewEl.removeClass(focusStyle); viewEl.removeClass(invitationStyle); }; viewEl.focus(focusOn); viewEl.blur(focusOff); }; | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | var bindHighlightHandler = function (viewEl, focusStyle, invitationStyle) { var focusOn = function () { viewEl.addClass(focusStyle); viewEl.addClass(invitationStyle); }; var focusOff = function () { viewEl.removeClass(focusStyle); viewEl.removeClass(... |
var bindHoverHandlers = function (viewEl, invitationStyle) { var over = function (evt) { viewEl.addClass(invitationStyle); }; var out = function (evt) { viewEl.removeClass(invitationStyle); }; viewEl.hover(over, out); }; | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | var bindHoverHandlers = function (viewEl, invitationStyle) { var over = function (evt) { viewEl.addClass(invitationStyle); }; var out = function (evt) { viewEl.removeClass(invitationStyle); }; viewEl.hover(over, out); }; |
var bindKeyboardHandlers = function (that) { fluid.tabbable(that.viewEl); var guard = makeEditTriggerGuard(that); fluid.activatable(that.viewEl, function (event) { return guard(event); }); }; | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | var bindKeyboardHandlers = function (that) { fluid.tabbable(that.viewEl); var guard = makeEditTriggerGuard(that); fluid.activatable(that.viewEl, function (event) { return guard(event); }); }; |
function bindLinkClick(link, events, eventArg) { link.unbind("click.fluid.pager"); link.bind("click.fluid.pager", function () {events.initiatePageChange.fire(eventArg); }); } | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | function bindLinkClick(link, events, eventArg) { link.unbind("click.fluid.pager"); link.bind("click.fluid.pager", function () {events.initiatePageChange.fire(eventArg); }); } |
container.change(function() { oldValue = container.val(); }); | fluid.autocomplete.bindListener = function(container, options, onSearch) { var outFirer; var oldValue = container.val(); container.keydown(function() { clearTimeout(outFirer); outFirer = setTimeout(function() { var newValue = container.val(); ... | |
fluid.autocomplete.bindListener = function(container, options, onSearch) { var outFirer; var oldValue = container.val(); container.keydown(function() { clearTimeout(outFirer); outFirer = setTimeout(function() { var newValue = container.val(); if (newValue !== oldValue) { oldValue = newValue; onSearch.fire(newValue, new... | fluid.autocomplete.bindListener = function(that) { that.container.keydown(function() { clearTimeout(that.outFirer); that.outFirer = setTimeout(function() { var newValue = that.container.val(); if (newValue !== that.oldValue) { that.oldValue = newValue; that.events.onSearch.fire(newValue, newValue.length >= that.options... | fluid.autocomplete.bindListener = function(container, options, onSearch) { var outFirer; var oldValue = container.val(); container.keydown(function() { clearTimeout(outFirer); outFirer = setTimeout(function() { var newValue = container.val(); ... |
}, options.delay); | }, that.options.delay); | fluid.autocomplete.bindListener = function(container, options, onSearch) { var outFirer; var oldValue = container.val(); container.keydown(function() { clearTimeout(outFirer); outFirer = setTimeout(function() { var newValue = container.val(); ... |
container.change(function() { oldValue = container.val(); | that.container.change(function() { that.oldValue = that.container.val(); | fluid.autocomplete.bindListener = function(container, options, onSearch) { var outFirer; var oldValue = container.val(); container.keydown(function() { clearTimeout(outFirer); outFirer = setTimeout(function() { var newValue = container.val(); ... |
var bindMouseHandlers = function (that) { bindHoverHandlers(that.viewEl, that.options.styles.invitation); that.viewEl.click(makeEditTriggerGuard(that)); }; | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | var bindMouseHandlers = function (that) { bindHoverHandlers(that.viewEl, that.options.styles.invitation); that.viewEl.click(makeEditTriggerGuard(that)); }; |
(function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context)},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^... | bindReady: function() { if ( readyBound ) { return; } readyBound = true; if ( document.readyState === "complete" ) { return jQuery.ready(); } if ( document.addEventListener ) { document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false ); window.addEventListener( "load", jQuery.ready, false ); } ... | (function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context)},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^... |
function bindReady(){ if ( readyBound ) return; readyBound = true; if ( document.addEventListener ) { document.addEventListener( "DOMContentLoaded", function(){ document.removeEventListener( "DOMContentLoaded", arguments.callee, false ); jQuery.ready(); }, false ); } else if ( document.attachEvent ) { document.a... | (function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context)},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^... | function bindReady(){ if ( readyBound ) return; readyBound = true; // Mozilla, Opera and webkit nightlies currently support this event if ( document.addEventListener ) { // Use the handy event callback document.addEventListener( "DOMContentLoaded", function(){ document.removeEventListener( "DOMContentLoaded", argum... |
fluid.model.bindRequestChange = function(that) { | function bindRequestChange(that) { | fluid.model.bindRequestChange = function(that) { that.requestChange = function(path, value, type) { var changeRequest = { path: path, value: value, type: type }; that.fireChangeRequest(changeRequest); } }; |
}; | } | fluid.model.bindRequestChange = function(that) { that.requestChange = function(path, value, type) { var changeRequest = { path: path, value: value, type: type }; that.fireChangeRequest(changeRequest); } }; |
} | }; | function bindRequestChange(that) { that.requestChange = function(path, value, type) { var changeRequest = { path: path, value: value, type: type }; that.fireChangeRequest(changeRequest); } } |
var el = $(this), props = ['position','top','left']; | var el = $(this), props = ['position','top','bottom','left','right']; | $.effects.blind = function(o) { return this.queue(function() { // Create element var el = $(this), props = ['position','top','left']; // Set options var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode var direction = o.options.direction || 'vertical'; // Default direction // Adjust $.effects.... |
block: function() { $.tooltip.blocked = !$.tooltip.blocked; } | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | block: function() { $.tooltip.blocked = !$.tooltip.blocked; } |
self.element.val( self.term ); | if ( self.menu.element.is(":visible") ) { self.element.val( self.term ); } | blur: function( event, ui ) { self.element.val( self.term ); } |
if ( self.menu.element.is(":visible") ) { | if ( self.menu.element.is(":visible") && ( self.element.val() !== self.term ) ) { | blur: function( event, ui ) { if ( self.menu.element.is(":visible") ) { self.element.val( self.term ); } } |
var blurHandler = function (evt) { if (that.isEditing()) { finish(that); } return false; }; | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | var blurHandler = function (evt) { if (that.isEditing()) { finish(that); } return false; }; |
fluid.deadMansBlur(that.editField, $("div.selectbox-wrapper li", that.editContainer), function () { | fluid.deadMansBlur(that.editField, { exclusions: {selectBox: $("div.selectbox-wrapper li", that.editContainer)}, handler: function () { | fluid.inlineEdit.dropdown.blurHandlerBinder = function (that) { fluid.deadMansBlur(that.editField, $("div.selectbox-wrapper li", that.editContainer), function () { that.cancel(); } ); }; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.