Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Method that gets executed when user navigates away from the component that had defined the method, just before the element is to be removed from the DOM. The difference between this method and `onBeforeLeave` is that when this method is executed, there is no way to abort the navigation. This effectively means that the ...
onAfterLeave(context) { // user implementation example: storeTimeSpentOnTheView(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "disconnectedCallback() {\n this.ancestor.dispatchEvent(Events.createLeaving(this));\n }", "onBeforeLeave(context) {\n // user implementation example:\n if (this.hasUnfinishedChanges()) {\n return context.cancel();\n }\n }", "disconnectedCallback() {\n back.removeEventListener();\n }", ...
[ "0.66666806", "0.5781419", "0.56073636", "0.5566079", "0.5513166", "0.5509178", "0.54705185", "0.54705185", "0.54705185", "0.54705185", "0.54705185", "0.54705185", "0.5442709", "0.54044896", "0.5383112", "0.5367027", "0.53515524", "0.53506804", "0.5326099", "0.5300945", "0.52...
0.5234163
25
Method that gets executed after the outlet contents is updated with the new element. If the router navigates to the same path twice in a row, in the second time the method is not called. The WebComponent instance on which the callback has been invoked is available inside the callback through the `this` reference. This ...
onAfterEnter(context) { // user implementation example: sendVisitStatistics(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "connectedCallback() {\n // Do things when component is added to the DOM\n }", "connectedCallback(){\n\n //Though here DOM is inserted, but not rendered, so you can change the attribute \n //but you cannot manipulate the DOM \n\n //You can not programatically add or remove the element...
[ "0.6655523", "0.6480401", "0.63853073", "0.6374795", "0.6212071", "0.6197971", "0.61490995", "0.60373193", "0.59821707", "0.5975999", "0.5967512", "0.59496856", "0.5936098", "0.5932703", "0.5878134", "0.58732176", "0.5869449", "0.58614534", "0.57294536", "0.5714517", "0.56705...
0.0
-1
Main Function for calling sorting function
function sortArray() { var myLoc = { name: "Shashank Saxena", latitude: "28.535517", longitude: "77.391029", }; let getResult = SortFunc(myLoc) return getResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Sort() {}", "Sort() {\n\n }", "sort() {\n\t}", "sort() {\n\t}", "sort(){\n\n }", "function twpro_sortJobs(){\r\n\t\tif (TWPro.twpro_failure) return;\r\n\t\tvar sortby = TWPro.twpro_jobsort, twpro_jobValues = TWPro.twpro_jobValues;\r\n\t\tvar sortfunc = function(twpro_a, twpro_b){\r\n\t\t\t...
[ "0.8512701", "0.77618915", "0.7700804", "0.7700804", "0.7511111", "0.74833214", "0.7387024", "0.73182356", "0.7252245", "0.7249484", "0.7238653", "0.72168595", "0.71860296", "0.7139234", "0.70251805", "0.7019476", "0.7019476", "0.7019476", "0.7019476", "0.69912535", "0.698537...
0.0
-1
Mostrar msgs de error abaixo do input com id passado por parametro
function mostrar_menssagem_error(id ,msg) { var nova_msg = retira_caracteres_indesejados(msg); var msg = $(id).parent().append("<p class='p-erro'>"+nova_msg+"</p>"); $(id).addClass("error-input"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onError(id) {\n // Por consolamos pasamos el mensaje del error\n console.log(`Sucedió un error al obtener el personaje ${id}`);\n}", "function ShowError(ids, msg) {\r\n document.getElementById(ids)\r\n .innerHTML = msg;\r\n return false;\r\n }", "f...
[ "0.7323802", "0.7259233", "0.7120511", "0.7085883", "0.7033295", "0.6975201", "0.6970403", "0.6945444", "0.69307405", "0.6889652", "0.6882711", "0.6814326", "0.6787061", "0.6785534", "0.66106105", "0.65894216", "0.6586868", "0.6567423", "0.6528864", "0.6516198", "0.64698285",...
0.7234036
2
Retira caracteres indesejados nos campos de erros
function retira_caracteres_indesejados(msg){ if (msg.indexOf("[&quot;") != -1 || msg.indexOf("&quot;]") != -1) { msg = msg.replace("[&quot;" , "").replace("&quot;]" ,""); } return msg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFieldErrorsString() {\n return Object.values(getFieldErrors())\n .filter((x) => !!x)\n .join(', ')\n }", "validateValues() {\n if (this.getBeer() == undefined) {\n return chalk.bgRed('Error reading beer details');\n } else if (this.getTemperature() == undefined)...
[ "0.6114049", "0.5854449", "0.5851766", "0.578244", "0.578244", "0.57665884", "0.57665884", "0.57261443", "0.5707685", "0.5670773", "0.5608902", "0.56067306", "0.5599063", "0.5587287", "0.55375683", "0.5535175", "0.5503758", "0.54978627", "0.5447489", "0.54376465", "0.5425699"...
0.52588207
36
Handle the successful return from the API call
function onSuccess(data) { console.log(data); let listPositions = []; data.positions.values.forEach(element => { listPositions.push(element.title); }); listPositions = listPositions.join(', '); sessionStorage.firstName = data.firstName; sessionStorage.lastName = data.l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleSuccess( response ) {\n\t\t return( response.data.responseObject);\n\t\t }", "function handleSuccess( response ) {\n return( response.data );\n }", "function handleSuccess( response ) {\n return( response.data );\n }...
[ "0.66917926", "0.65221685", "0.65221685", "0.64980274", "0.64949554", "0.6441237", "0.64358264", "0.64358264", "0.64358264", "0.641724", "0.641724", "0.641724", "0.6362934", "0.6332484", "0.6316791", "0.6311101", "0.6296959", "0.62883234", "0.6258863", "0.62281984", "0.622677...
0.0
-1
Handle an error response from the API call
function onError(error) { console.log(error); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleError(response) {\n\t\t\t\t// The API response from the server should be\n\t\t\t\t// returned in a\n\t\t\t\t// normalized format. However, if the request\n\t\t\t\t// was not handled by the\n\t\t\t\t// server (or what not handles properly - ex.\n\t\t\t\t// server error), then we\n\t\t\t\t// may have ...
[ "0.7639449", "0.7639449", "0.76210153", "0.7520492", "0.7447243", "0.7442663", "0.74265546", "0.7402045", "0.7347641", "0.73336136", "0.73156947", "0.72937626", "0.72937626", "0.72656155", "0.72647756", "0.7237419", "0.7236944", "0.7236944", "0.7236944", "0.7236944", "0.72369...
0.0
-1
Use the API call wrapper to request the member's basic profile data
function getProfileData() { // obtener los datos del usuario al iniciar sesión IN.API.Raw("people/~:(first-name,last-name,id,num-connections,picture-url,location,positions,summary,public-profile-url)").result(onSuccess).error(onError); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getProfileData() {\n IN.API.Raw(\"/people/~\").result(onSuccess).error(onError);\n}", "function getProfileData() {\n IN.API.Raw(\"/people/~\").result(onSuccess).error(onError);\n }", "function getProfileData() {\n IN.API.Raw(\"/people/~\").result(onSuccess).error(onError);\n }",...
[ "0.72868", "0.7183139", "0.7183139", "0.7155159", "0.7119098", "0.7056137", "0.6901898", "0.67949116", "0.67591363", "0.6583388", "0.6575575", "0.6536882", "0.6461191", "0.63861465", "0.6373601", "0.63615406", "0.6361148", "0.6359331", "0.6322891", "0.6307126", "0.6303534", ...
0.6904353
6
endregion region draw object Draw brick
function drawBrick(brickObject, spriteAnimation) { if (!brickObject.isShow) { return; } let positionConst; switch (brickObject.type) { case 1: positionConst = sprPosition.brick; break; case 2: positionConst = spriteAnimation; break;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Brick(xPos, yPos, w, h, color) {\n this.x = xPos;\n this.y = yPos;\n this.w = w;\n this.h = h;\n this.color = color;\n this.visible = true;\n}", "function Brick(x, y, width, height, color) {\r\n this.x = x;\r\n this.y = y;\r\n this.width = width;\r\n this.height = height;\r\n this.c...
[ "0.75742257", "0.73793364", "0.7161589", "0.7150559", "0.70704865", "0.7053008", "0.69787115", "0.6951926", "0.6951926", "0.69481325", "0.6943263", "0.6926864", "0.69152695", "0.6909817", "0.6909807", "0.6900007", "0.6893897", "0.6891588", "0.6877475", "0.6861358", "0.6860375...
0.0
-1
endregion region public function endregion region mainflow
function renderplayer() { const sprPos = player.getSpritePosition(); ctx.drawImage(spriteImage, sprPos.x, sprPos.y, 35, 35, player.x, player.y, player.width, player.height); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _____SHARED_functions_____(){}", "transient protected internal function m189() {}", "function Main()\n {\n \n }", "private public function m246() {}", "transient final protected internal function m174() {}", "transient private protected internal function m182() {}", "protected inte...
[ "0.6198997", "0.6046665", "0.6026138", "0.5942976", "0.5932025", "0.5901891", "0.5868679", "0.58512807", "0.58321965", "0.5770028", "0.5730132", "0.5725268", "0.5629261", "0.561653", "0.5613896", "0.5613896", "0.5613896", "0.55581635", "0.5553427", "0.5552883", "0.5522549", ...
0.0
-1
The render Statement renders the board and all 9 squares the divs have classNames of boardrow which refers the Custom CSS in index CSS
render() { return ( <div> <div className="board-row"> {this.renderSquare(0)} {this.renderSquare(1)} {this.renderSquare(2)} </div> <div className="board-row"> {this.renderSquare(3)} {this.renderSquare(4)} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "render() {\n return (\n <div>\n <div className=\"board-row\">\n {this.renderSquare(0)}\n {this.renderSquare(1)}\n {this.renderSquare(2)}\n </div>\n <div className=\"board-row\">\n {this.renderSquare(3)}\n {this.re...
[ "0.7531532", "0.73231524", "0.72353643", "0.71559787", "0.7141218", "0.711063", "0.7110558", "0.70884305", "0.7053434", "0.70273185", "0.70213425", "0.6996778", "0.6996329", "0.6962121", "0.696095", "0.69429684", "0.6910568", "0.68938017", "0.6841775", "0.68387896", "0.682536...
0.7476344
1
render determine what shows up in the game
render() { const history = this.state.history; const current = history[this.state.stepNumber]; //winner call calculateWinner which checks if a player has won and returns the player const winner = calculateWinner(current.squares); //moves returns a list of buttons that will call jumpTo whic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function render (game){\n\t \t}", "function render() {\n\t\t//Drawing background\n drawBackground();\n\t\t//Drawing player paddles\n\t\tdrawPaddles();\n\t\t//Drawing ball\n\t\tdrawBall();\n\n\t\t//If the game is running\n\t\tif(!started)\n\t\t{\n\t\t\tdrawInfo(); //Drawing information (Move your paddle...)\n\...
[ "0.80135816", "0.76659304", "0.7414526", "0.7399891", "0.7340528", "0.72469467", "0.72258323", "0.72132045", "0.7177064", "0.7173929", "0.7161216", "0.7157198", "0.71481156", "0.71475387", "0.7124526", "0.7102866", "0.707798", "0.7070581", "0.7054578", "0.7034928", "0.7010327...
0.0
-1
calculate winner takes in the squares and determines if there is a winner
function calculateWinner(squares) { // lines is all the winning line formation const lines = [ [0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6] ]; //Check to see if there are in winning squares and return X or O or ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calculateWinner(squares) {\n // Declares a multidimensional array ‘lines’, that holds all the winning combinations\n // i.e. there is a winner if there is the same letter (i.e 'X') in boxes 0, 1, and 2 (the first combination below).\n const lines = [\n [0, 1, 2],\n [3, 4, 5],\n ...
[ "0.7980701", "0.79509765", "0.79302055", "0.78623915", "0.78491193", "0.7834457", "0.78326595", "0.78108686", "0.7808935", "0.7808935", "0.7779952", "0.7722373", "0.7704133", "0.7699275", "0.76844215", "0.767066", "0.7660963", "0.7645566", "0.76343745", "0.7537429", "0.751643...
0.7983203
0
Naive approach for compatibility
function naive() { var last = document.getElementsByTagName('*'); var lastlen = last.length; var timer = setTimeout(function check() { // get current state of the document var current = document.getElementsByTagName('*'); var len = current.length; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "transient private protected internal function m182() {}", "private public function m246() {}", "transient protected internal function m189() {}", "static final private internal function m106() {}", "static private internal function m121() {}", "protected internal ...
[ "0.5825407", "0.5686502", "0.5622132", "0.55773467", "0.5552284", "0.5501131", "0.5484762", "0.54779094", "0.54777694", "0.5440074", "0.5440074", "0.5417417", "0.5382552", "0.52949256", "0.527852", "0.52714825", "0.5271369", "0.5237197", "0.5178343", "0.51767355", "0.5173575"...
0.0
-1
callback for the tests
function decide() { if (support.DOMNodeInserted) { window.addEventListener("DOMContentLoaded", function () { if (support.DOMSubtreeModified) { // for FF 3+, Chrome el.addEventListener('DOMSubtreeModified', callback, false); } else { // for FF 2, Sa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mockCallBack() {\n}", "function callback(){}", "function callback() {}", "function callback() {}", "function callback() {}", "function callback() {}", "function callback() {}", "function testRun()\r\n{\r\n}", "function callbackDriver() {\n cb();\n }", "function generateTestCaseCallba...
[ "0.6981118", "0.6699074", "0.66625965", "0.66625965", "0.66625965", "0.66625965", "0.66625965", "0.6558197", "0.64371365", "0.63538414", "0.6335505", "0.6323352", "0.6265766", "0.6232419", "0.62266666", "0.6209334", "0.61589015", "0.6120302", "0.6114533", "0.6102857", "0.6094...
0.0
-1
checks a particular event
function test(event) { el.addEventListener(event, function fn() { support[event] = true; el.removeEventListener(event, fn, false); if (--remain === 0) decide(); }, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function check( evt ) {\n\t\t\t\tthis.check( evt );\n\t\t\t}", "function hasEvent2(event,entry){\n\tfor(var i=0;i<entry[\"events\"].length;i++){\n\t\tif(entry[\"events\"][i] == event){\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "function handler(event) {\n Assert.ok(false, `Received unexpected ev...
[ "0.7124515", "0.66963047", "0.6576718", "0.64863425", "0.64479375", "0.6404324", "0.639049", "0.6307102", "0.6280984", "0.61181724", "0.6090764", "0.60873824", "0.608428", "0.6062405", "0.6062341", "0.60056275", "0.59981215", "0.59920365", "0.59745425", "0.5966165", "0.593736...
0.0
-1
Determines whether a token refresh request must be made to refresh the tokens
static isTokenFresh(token, /** * -10 minutes in seconds */ secondsMargin = 60 * 10 * -1) { if (!token) { return false; } if (token.expiresIn) { const now = getCurrentTimeInSeconds(); return now < token.issuedAt + token.expiresIn + secondsMar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get mustRefresh() {\n return (token === null || token.expiresOnTimestamp - options.forcedRefreshWindowInMs < Date.now());\n }", "get mustRefresh() {\n return (token === null || token.expiresOnTimestamp - options.forcedRefreshWindowInMs < Date.now());\n }", "get mustRefresh()...
[ "0.79875666", "0.79875666", "0.79875666", "0.79875666", "0.79875666", "0.79875666", "0.7835205", "0.7835205", "0.7835205", "0.7835205", "0.7835205", "0.7835205", "0.76497173", "0.7389751", "0.71833247", "0.69723594", "0.6865933", "0.6617554", "0.64122665", "0.64082795", "0.63...
0.68994164
16
Creates a `TokenResponse` from query parameters returned from an `AuthRequest`.
static fromQueryParams(params) { return new TokenResponse({ accessToken: params.access_token, refreshToken: params.refresh_token, scope: params.scope, state: params.state, idToken: params.id_token, tokenType: params.token_type, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static fromTokenResponse(tokenResponse) {\n let expiresAt;\n if (tokenResponse.expiresIn) {\n expiresAt = Math.floor(Date.now() / 1000) + tokenResponse.expiresIn;\n }\n return new AccessToken(tokenResponse.accessToken, expiresAt, tokenResponse.scope);\n }", "async getReq...
[ "0.5718102", "0.5565461", "0.55219924", "0.5486454", "0.546397", "0.5388001", "0.5356907", "0.53567606", "0.53244483", "0.51740927", "0.5087944", "0.50714904", "0.5060282", "0.5008467", "0.49944845", "0.4980126", "0.49722755", "0.4969407", "0.49397266", "0.49391824", "0.49339...
0.72532386
0
Perform a token revocation request.
async performAsync(discovery) { invariant(discovery.revocationEndpoint, `Cannot invoke \`performAsync()\` without a valid revocationEndpoint`); await requestAsync(discovery.revocationEndpoint, { method: 'POST', headers: this.getHeaders(), body: this.getQueryBody(), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function revokeToken() {\n\t\texec_result.innerHTML='';\n\t\tgetAuthToken({\n\t\t\t'interactive': false,\n\t\t\t'callback': revokeAuthTokenCallback,\n\t\t});\n\t}", "async function revokeToken({ token, ipAddress }) {\n const refreshToken = await getRefreshToken(token);\n \n // revoke token and s...
[ "0.71022534", "0.70114076", "0.69650555", "0.68099713", "0.6694041", "0.6465734", "0.62693715", "0.62240195", "0.6202895", "0.61408687", "0.61190814", "0.609146", "0.591816", "0.58493143", "0.5809948", "0.58002114", "0.5773294", "0.57596344", "0.5733927", "0.56916696", "0.568...
0.0
-1
Load contact from browser session storage
function loadContact() { var error = false; var contactToUpdateString; try { contactToUpdateString = sessionStorage.getItem("contactToUpdate"); } catch (e) { alert("Error when reading from Session Storage " + e); error = true; window.locati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadContacts() {\n let storedContacts = JSON.parse(window.localStorage.getItem(\"contacts\"))\n if (storedContacts) {\n contacts = storedContacts\n }\n}", "function loadContacts() {\n let storedContacts = JSON.parse(window.localStorage.getItem(\"contacts\"))\n if (storedContacts) {\n contacts...
[ "0.6890584", "0.6890584", "0.6884439", "0.6242126", "0.6183147", "0.61142033", "0.5998915", "0.59789866", "0.59713775", "0.59713775", "0.5936116", "0.59271824", "0.5864691", "0.5738764", "0.5726992", "0.5726992", "0.56993735", "0.56922597", "0.56783426", "0.5667626", "0.56280...
0.77008337
0
Update contact and display name on input change
function inputHandler(property, value) { console.log(value); anime[property] = value; $('#contactName').text((anime.userName|| "noname")+""+(anime.password)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_updatePreviewField(){\n if(this._showingContacts && this._chosenContact !== null){\n // Meh\n this._displayName.value = this._chosenContact.firstName + \" \" + this._chosenContact.lastName;\n }\n else{\n this._displayName.value = this._user.FirstName + \" \" +...
[ "0.7703591", "0.76941925", "0.7379498", "0.73446393", "0.716861", "0.6956167", "0.6706172", "0.67050785", "0.666653", "0.66531503", "0.66367674", "0.66339165", "0.6572745", "0.6544363", "0.65390986", "0.6529056", "0.6515505", "0.6509545", "0.6452007", "0.64255965", "0.6408515...
0.0
-1
Add update button and delete button
function addUpdateAndDeleteButtons(formElement) { formElement.append('<button type="submit" id="update-contact-button"> Update Contact </button>'); $('#update-contact-button').click(function (e) { e.preventDefault(); // Prevent querystring from showing up in address bar saveConta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateButtons() {\n\tvar param = _ParamList.getValue();\n\tvar dbTreeInfo = TREE.getData(); \n\tvar isProcedure = dbTreeInfo ? dbTreeInfo.IsProcedure() : false;\n\n\t_MinusBtn.setDisabled(!param || isProcedure);\n\n\tif (CONN_LIST.getValue() && !isProcedure) {\n\t\t_PlusBtn.enable();\n\n\t\tif (param) {\n...
[ "0.64259315", "0.6393899", "0.63928866", "0.6391828", "0.6373637", "0.6243937", "0.62313277", "0.6218972", "0.62187314", "0.62110174", "0.620656", "0.6183344", "0.6158706", "0.61543685", "0.6124736", "0.6122556", "0.6116682", "0.6113974", "0.61071193", "0.6104569", "0.6064185...
0.67275834
0
Add create new contact button
function addNewButton(formElement) { formElement.append('<button type="submit" id="new-contact-button"> Create New Contact </button>'); $('#new-contact-button').click(function (e) { e.preventDefault(); // Prevent querystring from showing up in address bar createContact(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static addContact(contact) {\n const list = document.getElementById(\"contact-list\");\n // create tr\n const tr = document.createElement(\"tr\");\n tr.className = \"collection-contact\";\n tr.innerHTML = `\n <td class=\"filter-name\">${contact.name}</td>\n <td class=\"filter-number\">${co...
[ "0.70427907", "0.69051105", "0.67916346", "0.6727883", "0.66624767", "0.66562593", "0.66080624", "0.6603219", "0.6601287", "0.6576364", "0.6573603", "0.6537979", "0.6515485", "0.6513237", "0.64765656", "0.64502937", "0.6419815", "0.64197814", "0.6419394", "0.64098376", "0.637...
0.7387196
0
populate the contact form with the necessary fields
function createForm() { var formElement = $("[name='contactForm']").empty(); // Add form elements and their event listeners formFields.forEach(function (formField) { var labelElement = $("<label>") .attr("for", formField.name) .text(formField.des); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setupForm() {\n var index = 1;\n document.getElementById(\"name\").focus();\n document.getElementById(\"colors-js-puns\").classList.add(\"is-hidden\");\n document.getElementById(\"other-title\").classList.add(\"is-hidden\");\n document.getElementById(\"payment\").selecte...
[ "0.6516072", "0.6401943", "0.6378502", "0.62495565", "0.62064517", "0.6201117", "0.6180274", "0.61470455", "0.6115779", "0.61131066", "0.6082708", "0.6076161", "0.60371023", "0.5998589", "0.5997548", "0.5996164", "0.597052", "0.5963109", "0.5958764", "0.5946473", "0.5939931",...
0.6262842
3
make ajax call to update this contact
function saveContact() { $.ajax({ url: apiUrl+anime._id+"/", type: 'PUT', dataType: 'JSON', data: anime, success: function (data) { if (data) { window.location.href = "./index.html"; } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updatePersonContact(){\n var idPersonContact = $('#idPersonContact').val();\n var firstname = $('#firstname').val();\n var lastname = $('#lastname').val();\n var telephon = $('#telephon').val();\n var email = $('#email').val();\n\n\n $.ajax({\n url: \"/zoneadmin/zoneadmin_informat...
[ "0.70959187", "0.6912877", "0.6874875", "0.68569446", "0.6828129", "0.6782348", "0.675215", "0.6750533", "0.6709759", "0.66960365", "0.662667", "0.6551203", "0.65505934", "0.65447134", "0.6518578", "0.6505905", "0.6485398", "0.64726114", "0.6467619", "0.645365", "0.64302444",...
0.640502
22
make ajax call to add new contact to db
function createContact() { $.ajax({ url: apiUrl, type: 'POST', dataType: 'JSON', data: anime, success: function (data) { if (data) { window.location.href = "./index.html"; } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function insert()\n{\n $(document).on('click', '#addContacts', function(event){\n event.preventDefault();\n let name=$('#name').val();\n let email=$('#email').val();\n let phone=$('#phone').val();\n let addContacts=$('#addContacts').val();\n $.ajax({\n ...
[ "0.7505207", "0.74748224", "0.7378126", "0.73708695", "0.7253132", "0.714856", "0.69317096", "0.6921379", "0.68938947", "0.68694365", "0.6823615", "0.6814145", "0.67959404", "0.6786047", "0.6779835", "0.67789114", "0.6749186", "0.664431", "0.66351753", "0.66199255", "0.661274...
0.65778285
25
make ajax call to delete this contact
function deleteContact() { $.ajax({ url: apiUrl+anime._id+"/", type: 'DELETE', success: function (data) { window.location.href = "./index.html"; }, error: function (request, status, error) { console.log(error, status, re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_contact()\n{\n $(document).on('click', '#del-contacts', function(event)\n {\n var response = confirm('This action is irreversible. Do you still want to delete this record?');\n if(response == true)\n {\n event.preventDefault();\n let id =$('#up-id')....
[ "0.78679824", "0.7830554", "0.7645988", "0.7479519", "0.7305584", "0.71898127", "0.71763456", "0.7090527", "0.70714176", "0.7012864", "0.69972956", "0.69972956", "0.6963198", "0.6945465", "0.6932651", "0.6927323", "0.69269466", "0.6923882", "0.68762267", "0.6875268", "0.68736...
0.7873456
0
Store data in your session
put(data) { return __awaiter(this, void 0, void 0, function* () { if (!this.fidjService) { return this.promise.reject(new FidjError(401, 'fidj.sdk.angular.put : not initialized.')); } return this.fidjService.fidjPutInDb(data); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function storesessiondata(){\n\tvar storagedata=JSON.stringify(sessiondata);\n\twindow.localStorage.setItem(cookiename, storagedata);\n}", "function save_data() {\r\n\tsessionStorage.setItem('pieces', JSON.stringify(Data.pieces))\r\n\tsessionStorage.setItem('stamps', JSON.stringify(Data.stamps))\r\n\tsessionStor...
[ "0.7551019", "0.7541897", "0.7501048", "0.7432351", "0.7432351", "0.73349756", "0.7315277", "0.7293271", "0.7275137", "0.7070776", "0.7020595", "0.69752246", "0.69678843", "0.69147176", "0.69047445", "0.68839085", "0.687403", "0.6847712", "0.68240285", "0.6811437", "0.6774142...
0.0
-1
Find object Id and remove it from your session
remove(id) { return __awaiter(this, void 0, void 0, function* () { if (!this.fidjService) { return this.promise.reject(new FidjError(401, 'fidj.sdk.angular.remove : not initialized.')); } return this.fidjService.fidjRemoveInDb(id); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeId() {\n delete ticket.id\n}", "function recordRemoveAgree(record_id){\n console.log(\"in recordRemoveAgree!\");\n console.log('Cookie session value: '+ Cookies.get('session'));\n var record = new Record(record_id);\n record.trash();\n}", "logout(id) {\n if (this.sessions[id]...
[ "0.6691904", "0.64150727", "0.62762517", "0.61935824", "0.6171875", "0.6136058", "0.6118172", "0.61127335", "0.60659486", "0.6065324", "0.6062564", "0.59968793", "0.59456545", "0.5933133", "0.59315145", "0.5929677", "0.5928333", "0.5922404", "0.591937", "0.5916506", "0.590638...
0.0
-1
We give xText a transform property that places it at the bottom of the chart. By nesting this attribute in a function, we can easily change the location of the label group whenever the width of the window changes.
function xTextRefresh() { xText.attr( "transform", "translate(" + ((width - labelArea) / 2 + labelArea) + ", " + (height - margin - tPadBot) + ")" ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function renderTextX(textGroup, newXScale, chosenXAxis){\n textGroup.transition()\n .duration(1000)\n .attr(\"x\",function(d){\n return newXScale(d[chosenXAxis]);\n });\n \n return textGroup;\n}", "function rendertext(textGroup,newXScale,chosenXAxis,newYScale,chosenYAxis){\n textGr...
[ "0.6594462", "0.6481703", "0.64527494", "0.6450812", "0.63614243", "0.6324339", "0.63064194", "0.62619054", "0.61833125", "0.61808103", "0.6161227", "0.6095674", "0.60576904", "0.6039181", "0.60263634", "0.59801704", "0.5978169", "0.5943671", "0.59303916", "0.5920252", "0.591...
0.61906976
8
Like before, we nest the group's transform attr in a function to make changing it on window change an easy operation
function yTextRefresh() { yText.attr( "transform", "translate(" + leftTextX + ", " + leftTextY + ")rotate(-90)" ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "mainD3GroupTransition() {\n const config = this.props.config;\n const transStr = 'translate(' + config.bounds.left + ', ' + config.bounds.top + ')';\n const mainGroup = D3.select('.chart-main-group');\n mainGroup.transition().duration(config.duration).attr('transform', transStr);\n }", "function zoo...
[ "0.65237916", "0.6490434", "0.64536667", "0.6357952", "0.62398463", "0.6152785", "0.6152785", "0.6152785", "0.6152785", "0.6086419", "0.60724163", "0.6040134", "0.603386", "0.6020769", "0.6000795", "0.6000795", "0.6000795", "0.6000795", "0.6000795", "0.5985228", "0.5937286", ...
0.0
-1
3. Create our visualization =========================== We called a "visualize" function on the data obtained with d3's .csv method. This function handles the visualization
function visualize(theData){ // Part 1: Essential Local Variables and Functions // =============================================== // curX and curY will determine what data get's represented in each axis }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function draw_visualization(csv_file) \n{\n\tvar pow = Math.pow;\n\tvar sqrt = Math.sqrt;\n\t// parse the csv\n\tdata = new vis.DataSet();\n\tvar lines = Papa.parse(csv_file, \n\t{\n\t\tdownload: true,\n\t\theader: true,\n\t\tstep: function(row) \n\t\t{\n\t\t\tvar row_data = row.data[0];\n\t\t\tvar id = parseInt(r...
[ "0.7620903", "0.7527301", "0.73613524", "0.71814436", "0.71513337", "0.7082184", "0.7027014", "0.70260024", "0.7020361", "0.6958854", "0.689969", "0.6841566", "0.6801115", "0.6794859", "0.67847526", "0.6751373", "0.67230564", "0.6717283", "0.6714904", "0.6687878", "0.6666138"...
0.6189953
83
To disable non editable fields in PLD. Author Valsaraj Added on 06/07/2010
function disableNonEditableFields(edit, root) { if (edit!= null && edit!="") { $(root + ':listName').disabled=true; $(root + ':nameDisplay').disabled=true; $(root + ':ageDisplay').disabled=true; $(root + ':raceDisplay').disabled=true; $(root + ':genderDisplay').disabled=true; $(root + ':zipDisplay')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disableEditModalFields() {\n\t$(\"#viewFirstName\").prop('disabled', true);\n\t$(\"#viewLastName\").prop('disabled', true);\n\t$(\"#viewUsername\").prop('disabled', true);\n\t$(\"#viewEmail\").prop('disabled', true);\n\t$(\"#viewSchool\").prop('disabled', true);\n\t$(\"#viewBio\").prop('disabled', true);\...
[ "0.7597157", "0.72380716", "0.7143347", "0.7130119", "0.7095497", "0.7081444", "0.7065972", "0.7022889", "0.69539", "0.6952815", "0.6865393", "0.6812134", "0.68034345", "0.677097", "0.67529315", "0.673499", "0.6732053", "0.6725496", "0.6688966", "0.6671303", "0.6669938", "0...
0.76596415
0
Methods added for lab tests Author Kanagaraj Kuttiannan Added on 07/20/2011
function showSelection(element) { $('labTestValueSelectionDiv').style.display='block'; $(element).style.display='none'; $('labTestValueSelectionDiv').style.top = document.body.clientHeight * .50 + "px"; $('labTestValueSelectionDiv').style.left = document.body.clientWidth * .30 + "px"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function TestMethods() {}", "private public function m246() {}", "function test_candu_collection_tab() {}", "private internal function m248() {}", "function testRun()\r\n{\r\n}", "function PerformanceTestCase() {\n}", "static private internal function m121() {}", "function test_utilization_utilizatio...
[ "0.60545987", "0.604278", "0.5917826", "0.59048754", "0.587945", "0.58514166", "0.5795077", "0.57024026", "0.56847864", "0.5613362", "0.5610871", "0.5577123", "0.55445373", "0.55077434", "0.5497013", "0.5484826", "0.5482874", "0.5475003", "0.5450201", "0.54302025", "0.5422689...
0.0
-1
To select values of clinical findings. Author Valsaraj Added on 05/28/2010 Modified on 29/Dec/2010 Modified by Khalid
function addValue(templateName, element, methodArgs) { value = templateName.split("/"); args = methodArgs.split("|"); if ("0"==args[args.length-1]) { if ("diagnosis"==value[0]) { diagnosisIncludeCodeObj = $(args[0] + ':diagnosisIncludeCode'); tempValue = trim(diagnosisIncludeCodeObj.value); di...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function selecter(dd) {\n let vv = '.' + dd + 'Srt'\n let otBox\n if (dd === 'year') { otBox = \"inVaYear\" }\n if (dd === 'month') { otBox = \"inVaMonth\" }\n if (dd === 'day') { otBox = \"inVaDay\" }\n if (dd === 'category') { otBox = \"inVaCategory\" }\n\n var ww = document.querySelectorAll...
[ "0.5766018", "0.57130575", "0.57115906", "0.56280994", "0.5603918", "0.5563272", "0.5520533", "0.54954857", "0.54947084", "0.5491581", "0.5491517", "0.54827166", "0.5472812", "0.5462211", "0.5455964", "0.54455155", "0.54265046", "0.5421449", "0.537227", "0.53623104", "0.53479...
0.0
-1
To trim characters. Author Valsaraj Added on 05/28/2010
function trim(str, chars) { return ltrim(rtrim(str, chars), chars); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function trim(s) { return s.replace(/^\\s+|\\s+$/g, ''); }", "function trim(s) { return s.trim(); }", "function trim(s) { return s.trim(); }", "function trim(str){\treturn str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');}", "function trim(text) {\n text= text.replace(/ /g,\"\"); //elimina espacios a...
[ "0.76636976", "0.7660885", "0.7660885", "0.76439047", "0.76347107", "0.75485146", "0.7530777", "0.75244856", "0.7499895", "0.7478913", "0.74783885", "0.74755824", "0.74584746", "0.74535257", "0.7411533", "0.73971283", "0.73858523", "0.73764646", "0.7376156", "0.73547256", "0....
0.6964825
98
To left trim characters. Author Valsaraj Added on 05/28/2010
function ltrim(str, chars) { chars = chars || "\\s"; return str.replace(new RegExp("^[" + chars + "]+", "g"), ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function lefttrim(value)\n{\n\twhile( value.length != 0 )\n\t{\n\t\tmychar=value.substring(0,1);\n\t\tif( mychar == \"\\u0020\" )\n\t\t{\n\t\t\tvalue=value.substr(1);\n\t\t}\n\t\telse\n\t\t\tbreak;\n\t\t\n\t}\n\treturn value;\n}", "function FFSting_trimLeft( value ){\n\tif(value==null || value==\"\") return \"\"...
[ "0.8305134", "0.82000035", "0.8037618", "0.78110224", "0.77531314", "0.7445848", "0.7367379", "0.7319091", "0.73061633", "0.7217495", "0.71308285", "0.7130622", "0.7130622", "0.7121581", "0.71185815", "0.71156716", "0.71145684", "0.70931035", "0.7092307", "0.7091336", "0.7080...
0.67266524
75
To right trim characters. Author Valsaraj Added on 05/28/2010
function rtrim(str, chars) { chars = chars || "\\s"; return str.replace(new RegExp("[" + chars + "]+$", "g"), ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function righttrim(value)\n{\n\twhile( value.length != 0 )\n\t{\n\t\tmychar=value.substring(value.length-1);\n\t\tif( mychar == \"\\u0020\" )\n\t\t{\n\t\t\tvalue=value.substr(0,value.length-1);\n\t\t}\n\t\telse\n\t\t\tbreak;\n\t\t\n\t}\n\treturn value;\n}", "function FFString_trimRight( value ){\n\tif(value==nul...
[ "0.82681036", "0.7897589", "0.7674337", "0.7622417", "0.72180164", "0.7169464", "0.7144713", "0.7099674", "0.70931125", "0.70093554", "0.6976046", "0.6956024", "0.69484013", "0.6947847", "0.69465035", "0.69447523", "0.6940345", "0.69321376", "0.6928803", "0.6923318", "0.69166...
0.0
-1
To clear checkbox if clinical finding code is removed from input box of PLD. Author Valsaraj Added on 06/07/2010
function clearCheckboxIfNull(elem, root, check) { $(root+':'+check).checked= (elem.value=="" ? false : true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearTextValues(sControlID) {\n var oControl = el(sControlID);\n oControl.value = \"\";\n oControl.IsCheckedOnKd = true;\n}", "function clear_p8(){\n document.getElementById('p8_ket_1').value = null;\n document.getElementById('p8_ket_2_1').checked = false;\n document.getElementById('p8...
[ "0.6967086", "0.6854815", "0.66478515", "0.66434675", "0.6635579", "0.6626348", "0.65775037", "0.6551771", "0.6513498", "0.64940864", "0.6492735", "0.64588374", "0.6443444", "0.6426375", "0.63802415", "0.63792825", "0.6366985", "0.63378817", "0.6279675", "0.6278746", "0.62723...
0.58495915
95
To enable/disable 'create PHR' option for component S & T, if 'primary email' is valid in 'Patient' TRIM. Author Valsaraj Added on 06/15/2010
function enablePHRCreationAndSharing(element) { var primaryEmailObj = $(element+':primaryEmailId'); if (primaryEmailObj!=null && primaryEmailObj.value!='' && validateEmail(primaryEmailObj.value)!=-1) { var myAjax = new Ajax.Request( 'enablePHRCreationAndSharing.ajaxcchit', { method: 'ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function changeAutoProvisioningSelect()\n{\n document.getElementById('AutoProvExternalConfSelect' ).disabled = document.getElementById('conPolAutoProvisioningSelect' ).value == '0';\n}", "function enablePatientPIFields() {\n\n var modalClass = $('.phoneDiv');\n modalClass.removeClass('numberModalDiv...
[ "0.59120107", "0.58607775", "0.572796", "0.5510835", "0.54330605", "0.5352208", "0.53506684", "0.53500706", "0.53377724", "0.53308123", "0.5303101", "0.529437", "0.5281842", "0.5267346", "0.52414924", "0.52059627", "0.5198704", "0.51940787", "0.5163652", "0.5149153", "0.51467...
0.57150644
3
To show/hide PIN input field if 'create PHR' option is set for component S & T. Author Valsaraj Added on 06/15/2010
function showHidePIN(root) { if ($(root+':createPHR').checked==true && $('createPHRContainer').style.display!='none') { $(root+':pinNumber').disabled=false; $('pinContainer').style.display='block'; } else { $(root+':pinNumber').disabled=true; $('pinContainer').style.display='none'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function callPin(val)\r\n {\r\n \r\n if(val==0)\r\n {\r\n document.getElementById(\"pin\").style.display = \"none\";\r\n document.getElementById(\"unpin\").style.display = \"block\";\r\n }\r\n else\r\n {\r\n document.getElementById(\"pin\").style.display = \"block\";\r...
[ "0.6591651", "0.6568108", "0.645988", "0.62451965", "0.61332977", "0.6065832", "0.60375965", "0.6021429", "0.6021429", "0.6002348", "0.5977833", "0.596543", "0.595462", "0.5945429", "0.59143615", "0.59014314", "0.5900885", "0.5883997", "0.5870461", "0.58651316", "0.58578116",...
0.73562026
0
To show/hide share checkbob field if 'create PHR' option is set for component S & T. Author Valsaraj Added on 06/16/2010
function showHideShareOption(root) { if ($(root+':tolvenID').value!='' || $(root+':createPHR').checked==true) { $('shareDataContainer').style.display='block'; } else { $('shareDataContainer').style.display='none'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showHidePIN(root) {\r\n\tif ($(root+':createPHR').checked==true && $('createPHRContainer').style.display!='none') {\r\n\t\t$(root+':pinNumber').disabled=false;\r\n\t\t$('pinContainer').style.display='block';\r\n\t}\r\n\telse {\r\n\t\t$(root+':pinNumber').disabled=true;\r\n\t\t$('pinContainer').style.displ...
[ "0.64201415", "0.63375026", "0.63182247", "0.6282981", "0.62634635", "0.62198675", "0.6211354", "0.61933506", "0.6192903", "0.61853856", "0.6178227", "0.61678195", "0.61528546", "0.6139305", "0.613589", "0.61323893", "0.6128692", "0.6118727", "0.61063", "0.6091451", "0.606778...
0.64964694
0
Script to check the date for Procedures
function validateCCHITDates(root, count, errorId, tsId) { var date2Obj = new Date(); var j = 0; var date1Id = $(root+':Fieldques'+tsId+j); while(date1Id) { var date1Obj = new Date(date1Id.value); var warningText = errorId+j; if (date2Obj > date1Obj) { $(warningText).style.display = "block...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function date_checker() {\n // If date is new, added to date_tracker array\n date_only = DateTime.substr(0, 10);\n if (!date_tracker.includes(date_only)) {\n date_tracker.push(date_only);\n\n // Completes auto_transfers before CSV i...
[ "0.5793959", "0.56778884", "0.56572384", "0.56536585", "0.5627274", "0.55563545", "0.55551666", "0.55182886", "0.55072385", "0.54822993", "0.54546726", "0.5450201", "0.54376", "0.5433421", "0.5432124", "0.5421617", "0.5369729", "0.5369684", "0.53691816", "0.53682065", "0.5361...
0.0
-1
Script to validate date for forms under CCHIT spec.
function validateCCHITSpecDate(root, tsId, warningText) { var currentDate = new Date(); currentDate.setHours(0,0,0,0); var timeField = $(root+':Fieldques'+tsId); var formTime = new Date(timeField.value); if (formTime < currentDate ) { $(root+warningText).style.display = "block"; $(root+'removeO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dateValidation( date ) {\n\n\t\tvar pass = /^\\d{4}-\\d{2}-\\d{2}/.test( date );\n\t\treturn pass;\n\n\t}", "validateDate(day, month, year, elem){\n let date = `${month}-${day}-${year}`;\n date = new Date(date);\n const today = new Date();\n today.setHours(0);\n today....
[ "0.7313943", "0.71969604", "0.71947885", "0.71861154", "0.7174492", "0.70455015", "0.6962828", "0.6915903", "0.68751216", "0.6865505", "0.6856468", "0.683549", "0.6823624", "0.68119377", "0.6794686", "0.67855537", "0.67781866", "0.67726165", "0.6761827", "0.67580116", "0.6728...
0.6823476
13
To convert selected option in race menu to comma separated strings
function wizConvertCEToString(root, originalText, menu) { var text=""; var iter = 0; var elem; while (elem = $(root + ":" + menu + ":" + iter)) { if (elem.checked) { if (iter == 3) { text = text+(elem.value.split('|')[7])+', '; } else { text = text+(elem.value.split('|')[5])+', '; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getSelStr () {\r\n // get the pre selected items.\r\n const sopt = [];\r\n this.E.find('option:checked').each(function () { sopt.push($(this).val()); });\r\n return sopt.join(settings.csvSepChar);\r\n }", "get selectedValues() {\n return this.value.join(', ');\n ...
[ "0.75489694", "0.70260847", "0.6861527", "0.67257667", "0.6695281", "0.6384533", "0.6352973", "0.6335166", "0.6315125", "0.60425687", "0.5919822", "0.5836422", "0.5828537", "0.57955813", "0.5762097", "0.5750575", "0.5743015", "0.5732933", "0.5710105", "0.5702177", "0.56824636...
0.0
-1
To set drop down component.
function setDropDowns(root, menu, text) { var selectedValue = $(root+':'+text).value; if (selectedValue.length < 1) { return; } else { selectedValue = selectedValue.split('|'); selectedValue = (selectedValue.length > 4) ? selectedValue[5] : selectedValue[0]; } var dropDown = $(root+':'+menu)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function McDropdownPanel() { }", "function DropDown(el) {\n\t\t\t\tthis.dd = el;\n\t\t\t\tthis.initEvents();\n\t\t\t}", "DropDown() {}", "function setDropdownOption (val) {\n return model.inputs.dropDownOption = val;\n}", "function DropDown(el) {\n this.dd = el;\n this.initEvents();\n}", "function D...
[ "0.7434401", "0.7074034", "0.6973649", "0.6921684", "0.6851865", "0.6851865", "0.6757682", "0.6617358", "0.66150415", "0.649308", "0.6460822", "0.64372253", "0.63781387", "0.62651527", "0.62401086", "0.62022394", "0.6152054", "0.6120672", "0.6094227", "0.6094227", "0.60873395...
0.0
-1
Not used rt now.
function prePopulateValues(root, id) { // $('#{menu.elementLabel}:receivNotif:0').checked==true var receivNotification = $(root + ':receivNotif:0'); var emailMode = $(root + ':notifMethds:0'); var mailMode = $(root + ':notifMethds:1'); var phrMode = $(root + ':notifMethds:2'); // alert(receivNotification); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "private public function m246() {}", "transient private internal function m185() {}", "transient private protected internal function m182() {}", "transient protected internal function m189() {}", "transient final protected internal function m174() {}", "protected i...
[ "0.7282655", "0.7277417", "0.7211238", "0.6956961", "0.69303876", "0.6758608", "0.67350054", "0.6567786", "0.6428319", "0.63869154", "0.6378419", "0.63176554", "0.6311853", "0.6301321", "0.6277742", "0.6253462", "0.6247778", "0.6225535", "0.61872804", "0.60875744", "0.6078217...
0.0
-1
Method to set the notification email id with primary email, if left empty.
function setEmail(root, formId, elemId){ var element = formId; var elementId = elemId.id; var primaryEmail = $(root+":primaryEmailId").value; var notificationEmail = $(root+":emailAdd").value; var confirmEmail = $(root+":confEmailAdd").value; if (elementId == $(root+":receivNotif:0").id){ if (primary...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setEmailId(email) {\n this.EmailId = email;\n }", "function idToEmail(user_id) {\n if (users[user_id].email !== undefined) {\n return users[user_id].email;\n } else return \"None\";\n}", "'user.changeEmail'(email) {\n check(email, String);\n if (this.userId) {\n le...
[ "0.6679988", "0.56264925", "0.56166184", "0.55085677", "0.54771465", "0.544253", "0.54246277", "0.5422669", "0.54086626", "0.5397819", "0.52887124", "0.528052", "0.5272805", "0.52725285", "0.52401197", "0.5220269", "0.516471", "0.51335406", "0.5120664", "0.511851", "0.5093204...
0.64505523
1
To disable/enable an option in combo box when it is already selecteded/unselected. Author Valsaraj Added on 07/07/2010
function checkDuplicateAndDisable(root, select1, select2, select3, select4, select5) { select1Obj = $(root+":"+select1); select2Obj = $(root+":"+select2); select3Obj = $(root+":"+select3); select4Obj = $(root+":"+select4); select5Obj = $(root+":"+select5); idx1=select1Obj.selectedIndex; idx2=select2Obj.se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disable(){\r\n document.getElementById(\"Select\").disabled=true;\r\n}", "function disableselect(e){\nreturn false\n}", "function disableselect(e){\n return false\n}", "function especialSelect(bool) {\n var select = document.getElementById('espSelect');\n bool ? select.disabled = (disEspSel...
[ "0.6839663", "0.67594194", "0.66615635", "0.66589606", "0.6548997", "0.6493737", "0.64596754", "0.64432234", "0.64312327", "0.6380519", "0.63626343", "0.63616616", "0.6231548", "0.62281287", "0.6207612", "0.62046826", "0.6191196", "0.61254495", "0.6109208", "0.60830796", "0.6...
0.0
-1
To set/unset when a combo box value is changed. Author Valsaraj Added on 07/07/2010
function autoCheckbox(obj, root, check) { if (obj.selectedIndex>0) { $(root+':'+check).checked=true; $(root+':'+check+'Val').value='Yes'; } else { $(root+':'+check).checked=false; $(root+':'+check+'Val').value='No'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setComboValue(comboName,comboValue,formName)\n{\t \n var combo = document.forms[formName].elements[comboName];\n var cantidad = combo.length;\n for (var i = 0; i < cantidad; i++) {\n if (combo[i].value == comboValue) {\n combo[i].selected = true;\n }\n } \n}", "function on...
[ "0.6297903", "0.6285911", "0.6236452", "0.6198679", "0.6198679", "0.61370116", "0.6136694", "0.6100661", "0.60607463", "0.6038161", "0.6025488", "0.60016876", "0.59957623", "0.59846777", "0.5977408", "0.5976091", "0.597401", "0.59454125", "0.5929813", "0.59269434", "0.5917734...
0.0
-1
To set another field with value from a select field. Author Valsaraj Added on 07/28/2010
function setHiddenFieldFromCombo(obj, root, targetField) { if (obj.selectedIndex>0) { $(root+':'+targetField).value=obj.options[obj.selectedIndex].text; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setFormValue(field, value){\r\n\tvar i=0;\r\n\tif (field.type == \"select-one\"){\r\n\t\tfor(i=0; i< field.options.length; i++){\r\n\t\t\tif (field.options[i].text == value)\r\n\t\t\t\tfield.options[i].selected=true;\r\n\t\t\telse field.options[i],selected=false;\r\n\t\t}//for\r\n\t} else if (field.type =...
[ "0.72169685", "0.72169685", "0.7135531", "0.7045147", "0.7039603", "0.68547904", "0.68497336", "0.66859233", "0.6647639", "0.6605713", "0.65988934", "0.6521379", "0.651272", "0.6486592", "0.6483234", "0.6472218", "0.6454278", "0.63800496", "0.6366568", "0.63369477", "0.633406...
0.6236671
24
To set another field with value from a select field. Author Valsaraj Added on 07/28/2010
function setHiddenFieldFromCheckbox(obj, root, targetField) { $(root+':'+targetField).value=obj.checked!=false?'Yes':'No'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setFormValue(field, value){\r\n\tvar i=0;\r\n\tif (field.type == \"select-one\"){\r\n\t\tfor(i=0; i< field.options.length; i++){\r\n\t\t\tif (field.options[i].text == value)\r\n\t\t\t\tfield.options[i].selected=true;\r\n\t\t\telse field.options[i],selected=false;\r\n\t\t}//for\r\n\t} else if (field.type =...
[ "0.72183067", "0.72183067", "0.713569", "0.7045593", "0.70393276", "0.6855935", "0.684984", "0.66857934", "0.6647984", "0.66060996", "0.6598975", "0.65221107", "0.6514027", "0.64865905", "0.6484313", "0.64730096", "0.64543825", "0.63809735", "0.6366568", "0.6337303", "0.63341...
0.0
-1
To validate special characters. Author Valsaraj Added on 07/08/2010
function validateSpecialChars(root, id, errorMsg) { var strData = $(root+':'+id).value; var errorObj = $(errorMsg); var iCount, iDataLen; var strCompare = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 "; iDataLen = strData.length; if (iDataLen > 0) { for (iCount=0; iCount < iDataLe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validateSpecialCharacter(x) {\n var validateSpecialChar = /^[A-Za-z0-9\\_\\-]+$/;\n\n if (x.match(validateSpecialChar)) {\n return true;\n }\n else {\n return false;\n }\n}", "function validateSpecialChars(input_val) {\n var re = /[\\/\\\\#,+!^()$~%.\":*?<>{}]/g;\n ret...
[ "0.8276213", "0.8256476", "0.81265795", "0.81055826", "0.8100459", "0.8034048", "0.799912", "0.7959559", "0.7934278", "0.79146546", "0.78458697", "0.77720463", "0.7747817", "0.75783175", "0.75519085", "0.7487081", "0.7441199", "0.7417235", "0.74112254", "0.73809713", "0.73565...
0.77525324
12
To validate length. Author Valsaraj Added on 07/27/2010
function validateLen(root, id, errorMsg, maxLen, minLen) { var strData = $(root+':'+id).value; $(root+':'+id).value = strData = trim(strData); var errorObj = $(errorMsg); var errorFlag = false; var iDataLen; iDataLen = strData.length; if (maxLen != null) { if (iDataLen > maxLen) { errorObj.inne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "verifyLength(value, len) {\n if (value.length >= len) {\n\n return true;\n }\n return false;\n }", "verifyLength(value, length) {\n if (value.length >= length) {\n return true;\n }\n return false;\n }", "verifyLength(value, length) {\n if (value.length >= len...
[ "0.826615", "0.8236715", "0.8236715", "0.8236715", "0.8236715", "0.8236715", "0.8236715", "0.8236715", "0.8236715", "0.8151049", "0.7898526", "0.78687745", "0.7844059", "0.7822051", "0.7765258", "0.77049595", "0.76986456", "0.7693697", "0.76868266", "0.76816034", "0.7636561",...
0.7308462
37
To display all PHR accounts of user in select box. Author Valsaraj Added on 07/12/2010
function displayUsersPHRAccountIds(element, emailId, targetId) { var primaryEmailObj = $(element+':'+emailId); if (primaryEmailObj!=null && primaryEmailObj.value!='' && validateEmail(primaryEmailObj.value)!=-1) { var myAjax = new Ajax.Request( 'getUsersPHRAccountIds.ajaxcchit', { method...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showAllAccountOption()\n{\n var select_el = $(\"ul.criteria-container select#account\");\n var allaccounts_el = select_el.children(\"option.all_accounts\");\n allaccounts_el.removeAttr(\"disabled\");\n allaccounts_el.show();\n\n select_el.formSelect();\n}", "function getUsers() {\n ...
[ "0.7088095", "0.64326686", "0.6368248", "0.6303238", "0.62642896", "0.6261561", "0.6223406", "0.6201225", "0.61922896", "0.6156279", "0.6112828", "0.6081003", "0.60377777", "0.60184", "0.59552157", "0.59372497", "0.5928442", "0.59196967", "0.5913534", "0.5909634", "0.5907729"...
0.6177232
9
Sets selected PHR account id to input field. Author Valsaraj Added on 07/12/2010
function setUsersPHRAccountId(element, source, target) { $(element+':'+target).value = $(element+':'+source).value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateJPBankAccountNumber() {\n var userAccountNumber = $('#pt4_addCheckAccountNumber').val();\n var jpSelectedAccountTypeCode = $('#pt4_jpBankAccountType option:selected').first().attr('accountTypeCode');\n var accountNumber = jpSelectedAccountTypeCode + userAccountNumber;\n $...
[ "0.6275506", "0.6025625", "0.5939965", "0.58978254", "0.5837407", "0.5733211", "0.5722047", "0.56873345", "0.56388885", "0.5557869", "0.55255544", "0.5492303", "0.5459066", "0.54485667", "0.5423111", "0.5423111", "0.54226", "0.54097337", "0.5392475", "0.53847516", "0.53564286...
0.63693124
0
Method to load the template wizards.
function showOrderAssociationsDropDown(path,divId,template,widgetIndex,root,fnc){ new Ajax.Updater(divId, '../wizard/'+template+'.jsf', { parameters: { element: path,widgetIndex:widgetIndex},evalScripts:true, onComplete:function(req) { if(fnc) fnc(); if($('addNewOrderAnchor')) $('addNewOrderAncho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadTemplatesCrud() {\n plugin.loadTemplates(self.settings().templates, true);\n // more templates can be provided in the page controller settings\n var settingsMethod = self.settings().controller.settings;\n if(settingsMethod) {\n plugin.loadTemplates(settingsMethod...
[ "0.6999797", "0.6714804", "0.60706407", "0.60550344", "0.60249364", "0.58101064", "0.56343657", "0.563373", "0.5593968", "0.5543288", "0.5513103", "0.55111194", "0.54828197", "0.546602", "0.5428539", "0.54023457", "0.53865665", "0.5373375", "0.5358694", "0.53360194", "0.53358...
0.0
-1
Method to show the popups which contains the details of the selected problem.
function showDetailWizard(path,divId,templateWizard,index,widgetIndex){ new Ajax.Updater(divId, '../wizard/'+templateWizard+'.jsf', { parameters: { element: path,index:index,widgetIndex:widgetIndex}, evalScripts:true, onComplete:function(req) { $('orderAssociationPopUpDiv').show(); wizHide...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function popup_view(type,seq)\n{\n\tif(type == 'defect')\n\t{\n\t\tvar obj ={\n\t\t\ttarget : 'popup_view',\n\t\t\tdf_seq : seq,\n\t\t\tpr_seq : project_seq\n\t\t};\n\t\tget_defect_view_panel(obj);\n\t}else if(type == 'testcase'){\n\t\tvar obj ={\n\t\t\ttarget : 'popup_view',\n\t\t\ttl_seq : seq,\n\t\t\tpr_seq : p...
[ "0.6527298", "0.61505365", "0.613957", "0.61047465", "0.60842395", "0.59838176", "0.5979842", "0.58776593", "0.5869795", "0.5859236", "0.58498365", "0.5825882", "0.5812974", "0.58036256", "0.57861507", "0.57792205", "0.57703686", "0.5748061", "0.5741588", "0.5732019", "0.5727...
0.0
-1
Method to save all the details of problem.
function saveOrderAssociateProblemDetails(element,index,dropDownDivId,template,widgetIndex){ $('errorBox').innerHTML=""; var param = ""; param = '&element='+element+ '&index='+index+ '&severity='+$('severity').value+ '&course='+$('course').value+ '&outcome='+...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function save() {\r\n \t\t// get busy\r\n \t\tgetBusy();\r\n \t\t\r\n \t\t/****/\r\n \t\t\r\n \t\t\r\n \t\t/*****/\r\n \t\t\r\n \t\tangular.forEach(vm.examenes, function(examen, key) {\r\n \t\t\tif(examen.create) {\r\n \t\t\t\tcreate({\r\n\t\t\t\t\t\ttmp: {\r\n\t\t\t\t\t\t\tcodigoC...
[ "0.60518384", "0.60188", "0.5974415", "0.596738", "0.58718204", "0.5855562", "0.58058363", "0.571147", "0.5702523", "0.5693596", "0.5681757", "0.56678426", "0.5654034", "0.5632184", "0.56258905", "0.56121856", "0.5521171", "0.5518076", "0.5459829", "0.54504883", "0.54495776",...
0.0
-1
Method to save all the details of diagnoses.
function saveOrderAssociateDiagnosesDetails(element,index,dropDownDivId,template,widgetIndex){ $('errorSpan').innerHTML=""; var param = ""; param = '&element='+element+ '&index='+index+ '&severity='+$('severity').value+ '&course='+$('course').value+ '&episodi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function save() {\r\n\t\tvar date = new Date(),\r\n\t\t\tall = $('.cell'),\r\n\t\t\tsaveboard = [],\r\n\t\t\tcondition;\r\n\t\t\r\n\t\t// saves current state of board\r\n\t\tfor (var i = 0; i < TOTALCELLS; i++) {\r\n\t\t\tsaveboard[i] = ($(all[i]).hasClass('clicked')) ? 'c' : $(all[i]).text();\r\n\t\t}\r\n\t\r\n\t...
[ "0.578077", "0.5711625", "0.56941766", "0.56776434", "0.557704", "0.55477285", "0.5500731", "0.5479669", "0.54249877", "0.5422908", "0.541738", "0.54031235", "0.5398918", "0.5382108", "0.53649163", "0.53627306", "0.5335382", "0.5301994", "0.5296236", "0.5284015", "0.5281578",...
0.0
-1
Method to save the value in trim on selecting dropdown for associations.
function selectAssociateItem(title,dropDownId,root,hiddenTextBoxId){ var item = document.getElementById(dropDownId).options[document.getElementById(dropDownId).selectedIndex].text; $(hiddenTextBoxId).value = item; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "valueDidChange() {\n if(this.selectize) {\n let valueString = this.get('model.' + this.get('fieldName'));\n if(valueString !== this.selectize.getValue()) {\n let values = valueString;\n if(values) {\n values = _.uniq(values.split(','));\n\n // Ensure the selected value ...
[ "0.57819146", "0.5650168", "0.53344625", "0.51793784", "0.5174512", "0.5171796", "0.51648575", "0.51553726", "0.5143031", "0.5129522", "0.5127365", "0.5094563", "0.507257", "0.5066977", "0.50662327", "0.5060129", "0.5060129", "0.50433105", "0.5029825", "0.5017713", "0.5010136...
0.0
-1
Method to call the open template function and to save the current value of widget in the wizard.
function callOpenTemplateFunc(top1,top2,fnc,element,no,widgetIndex){ openTemplate(top1, top2, fnc, element, no); $('currentWidget').value = widgetIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function window_new(){\r\n fromTemplate('sure');\r\n}", "function setupCreateTemplateDialog(){\n //Helper functions for the dialog operations\n\n // Called when changing tabs. Since we use the same form for both\n // KVM, XEN and others we need to do some operation to update it\n var vmTabChange = fu...
[ "0.6233584", "0.60091907", "0.5854573", "0.5854573", "0.56982595", "0.56630963", "0.56613445", "0.5628381", "0.5515949", "0.55001134", "0.5471558", "0.54675025", "0.5465544", "0.5461469", "0.5429709", "0.5420619", "0.5419569", "0.5410118", "0.5393514", "0.5381959", "0.5379019...
0.6273477
0
Method to display popup with code and description
function openTemplateWithCode(contentName, placeholderid, methodName, formId, index,gridType) { openTemplate(contentName, placeholderid, methodName, formId, index+"|withCode",gridType) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function openCodeDescriptionPopUp(codeType, code, codeDescription, rowNum,codeScale){\r\n if ($('#code_desc_popup').css('display') == 'block')\r\n closeCodeDescriptionPopUp();\r\n \r\n //if (qsStageId == 49 && $('#data_point_transcript').css('display') == 'block')\r\n //cancelDataPointsTranscript();...
[ "0.72631365", "0.67137074", "0.67118454", "0.66944396", "0.6641502", "0.657923", "0.65316236", "0.6530653", "0.6526729", "0.6499249", "0.643765", "0.63617074", "0.63423973", "0.6339998", "0.6332748", "0.63288987", "0.63276595", "0.631195", "0.63002044", "0.629731", "0.6279216...
0.0
-1
Returns array with page width, height and window width, height added on 12/28/09
function getPageSize(){ var xScroll, yScroll; if (window.innerHeight && window.scrollMaxY) { xScroll = document.body.scrollWidth; yScroll = window.innerHeight + window.scrollMaxY; } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac xSc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ___getPageSize() {\n\t\t\tvar xScroll, yScroll;\n\t\t\tif (window.innerHeight && window.scrollMaxY) {\t\n\t\t\t\txScroll = window.innerWidth + window.scrollMaxX;\n\t\t\t\tyScroll = window.innerHeight + window.scrollMaxY;\n\t\t\t} else if (document.body.scrollHeight > document.body.offsetHeight){ // all bu...
[ "0.7667643", "0.7655345", "0.7635496", "0.7627625", "0.7524278", "0.7442558", "0.7433546", "0.7373424", "0.7367827", "0.7367086", "0.7351697", "0.73499227", "0.73414814", "0.7327048", "0.7321127", "0.72904265", "0.7270141", "0.7270141", "0.7255853", "0.7174218", "0.7166446", ...
0.730864
15
Method to set patient combo box that matches given name.
function autoSetPatient(elementId, name) { selectElement = $(elementId); if (selectElement.selectedIndex==0) { for (iter = 0; iter < selectElement.options.length; iter++) { if (selectElement.options[iter].text.toLowerCase()==name.toLowerCase()) { selectElement.selectedIndex=iter; break; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setName() {\r\n\tif(select.value == ''){\r\n\t\tcusname.innerHTML = '';\r\n\r\n\t} else if(select.value != '') {\r\n\t\tvar name = select.value;\r\n\t\tcusname.innerHTML = ': ' + select.value;\r\n\t\tdata.for = select.value;\r\n\t\t\r\n\t} \r\n\t//egg\r\n if(select.value == 'Elon Musk') {\r\n\t\talert(...
[ "0.61595416", "0.61434096", "0.6066746", "0.57770354", "0.5742053", "0.57222164", "0.5607593", "0.54446256", "0.54176855", "0.5398489", "0.53301436", "0.5269733", "0.52637285", "0.52590024", "0.5232881", "0.5204646", "0.5197902", "0.5189182", "0.51712596", "0.5162447", "0.512...
0.6763866
0
Method to refresh a list by submitting all trims related to that list.
function refreshList(listPath, element) { wizShowAjaxLoader(); var instAjax = new Ajax.Request( 'refreshList.ajaxcchit', { method: 'get', parameters: 'element='+element+'&listpath=' + listPath, onComplete: function(request) { wizHideAjaxLoader(); if (request.response...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function refreshList() {\n axios.get(url + HoldRoute + \"/withtools/json\").then((response) => {\n setList(response.data);\n });\n }", "function refresh() {\n\n widget.util.cascadingLov(\n gSelectList$,\n gOptions.ajaxIdentifier,\n {\n pageItems:...
[ "0.6301264", "0.6234223", "0.6103231", "0.605595", "0.5831084", "0.57949495", "0.5793837", "0.5786881", "0.57680094", "0.5765326", "0.5760929", "0.57460266", "0.5729245", "0.5638046", "0.5618425", "0.5613908", "0.5600249", "0.55525607", "0.5546928", "0.5535188", "0.5530969", ...
0.5136833
56
Method to allow only numbers.
function onlyNumbers(evt) { var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function allowNumbersOnly(e) {\n var code = (e.which) ? e.which : e.keyCode;\n if (code > 31 && (code < 48 || code > 57)) {\n e.preventDefault();\n }\n }", "function allowNumbersOnly(e) {\n\t\t\n\t var charCode = (e.which) ? e.which : e.keyCode;\n\t if (charCode > 31 && (charCode < 48 || charCod...
[ "0.79203016", "0.7740326", "0.76331586", "0.7556726", "0.75379056", "0.7526593", "0.7524843", "0.7503211", "0.7495261", "0.74895036", "0.74411416", "0.74129343", "0.74104005", "0.7406857", "0.73796177", "0.73638684", "0.7335873", "0.73297817", "0.7319765", "0.73103017", "0.72...
0.7221424
26
Method to validate the age ranges entered.
function validateAgeRanges(){ var status = true; var lowAgeString = $("codesForm:lowAge").value; var lowAgeUnit = $("codesForm:lowAgeUnit").value; var highAgeString = $("codesForm:highAge").value; var highAgeUnit = $("codesForm:highAgeUnit").value; lowAge = parseInt(lowAgeString); highAge = parseInt(hig...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ageRange(range) {\n var parts = range.split('-')\n return parts.map(function (p) {\n return parseInt(p, 10) || false\n })\n}", "function validateAge(){\r\n\tvar age = document.survey_form.age.value; //get the value\r\n\t//make sure the entry is a number\r\n\tvar numPattern = /^[0-9]+$/;\r\n\tif(!n...
[ "0.70890623", "0.68439215", "0.65595657", "0.65576434", "0.64894056", "0.647226", "0.64632386", "0.6446278", "0.63966954", "0.6333505", "0.6248259", "0.6206798", "0.6140439", "0.60448116", "0.6035154", "0.60263896", "0.6025116", "0.6023753", "0.60221416", "0.59846836", "0.596...
0.7965984
0
Method to validate encounter values.
function validateEncounter(root, selectId, otherInputId, hiddenFieldId) { var obj = $(root+':'+selectId); if (obj.options[obj.selectedIndex].text=='Other - not on the list') { $(root+':'+hiddenFieldId).value = $(root+':'+otherInputId).value; } else { $(root+':'+hiddenFieldId).value = obj.value; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "'validateValue'(value) {}", "validate(value) {\n if(value < 0){\n throw new Error('Age must be positive')\n }\n }", "function riskLevelValidation(fullObject, value, params, property) {\n \n // Risk level has to be an integer 1-10\n if (value !== undefined && (valu...
[ "0.6283629", "0.5666528", "0.5656093", "0.5597651", "0.5585919", "0.5572242", "0.55691844", "0.5563271", "0.5488967", "0.5458041", "0.5416329", "0.53903943", "0.53759754", "0.536868", "0.536868", "0.53647107", "0.53571004", "0.53464746", "0.5343352", "0.5338315", "0.53222525"...
0.0
-1
To validate nondecimal numbers in Respiration Rate (Observation). Author Vineetha Added on 12/02/2010
function validateDecimals(root, id, errorMsg) { var strData = $(root+':'+id).value; var errorObj = $(errorMsg); var iCount, iDataLen; var strCompare = "0123456789"; iDataLen = strData.length; if (iDataLen > 0) { for (iCount=0; iCount < iDataLen; iCount+=1) { var cData = strData.charAt(iCount); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validate()\r\n{\r\n var bValid = false;\r\n var dAirChangeRate = positiveNumber(\"airchangerate\",MESSAGES.air_change_rate_numeric,MESSAGES.air_change_rate_positive);\r\n if (dAirChangeRate != null)\r\n bValid = true;\r\n return bValid;\r\n}", "function check_rate(obj){\n if (isNaN(obj.value)){...
[ "0.632783", "0.62527317", "0.62417984", "0.6221361", "0.6179339", "0.61400265", "0.60904264", "0.59838206", "0.5927826", "0.5921436", "0.5899409", "0.5895663", "0.58904326", "0.58904326", "0.58390325", "0.5830893", "0.58229697", "0.58118147", "0.5704594", "0.56853163", "0.566...
0.56114644
29
To save a choosen FDB medication to trim
function saveFDBMedication(element, root, _medName, _medCode, _drugNameType, destGridId) { var _params = ""; if (_medName != "") { _params+= '&medicationName='+escape(_medName); } if (_medCode != "") { _params += '&medicationCode='+escape(_medCode); } if (_drugNameType != "") { _params ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "rmFaveConv() {\n\t\tthis.m_faves.category = \"\";\n\t\tthis.m_faves.unitA = \"\";\n\t\tthis.m_faves.unitB = \"\";\n\t\tthis.updateStar(0);\n\t}", "function saveMedicationPlan() {\n var\n currentActivitySectionViewModel = peek( self && self.currentActivitySectionViewModel...
[ "0.57243735", "0.5485138", "0.5468484", "0.54312336", "0.5369126", "0.5346814", "0.53284764", "0.52345586", "0.5215829", "0.50318867", "0.5004075", "0.49963748", "0.49876067", "0.49808788", "0.49708647", "0.49057218", "0.48823053", "0.48515582", "0.4840345", "0.4836535", "0.4...
0.4965214
15
On Vital Signs'Revise' action setting the current trim as nullified and created a new trim with active status.
function reviseVitalSign(element,action ){ var arr = element.split(":"); var myAjax = new Ajax.Request( 'reviseVitalSign.ajaxcchit', { method: 'get', parameters: 'element='+arr[0]+':'+arr[1]+':'+arr[2]+'&action='+action, onFailure: function(request) {displayError(request,elemen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wipe(){\n let erase = document.getElementById(\"visor\");\n\n erase.innerText = \"\";\n \n}", "_clearRevokingShipIt() {\n this._$boxStatus.removeClass('revoking-ship-it');\n }", "function Clean() {\n player.pause();\n player.duration = 0;\n\n currentTime = 0;\n rotationI...
[ "0.47961968", "0.474", "0.47362164", "0.46820143", "0.46820143", "0.46706113", "0.46526054", "0.45931098", "0.4561407", "0.45586497", "0.45407793", "0.45372644", "0.45306218", "0.4505554", "0.45007545", "0.4478191", "0.44470373", "0.44410247", "0.44354007", "0.44314557", "0.4...
0.0
-1
To validate date in New Patient>Advance Directives. Author Vineetha Added on 1/13/2011
function validatepatientDate(root, Fieldquesdob, Fieldquesdateadded, FieldqueseffectiveTimeHigh, errorMsg) { var date1 = new Date($(root+':'+Fieldquesdateadded).value); var date2 = new Date($(root+':'+FieldqueseffectiveTimeHigh).value); var date4 = new Date($(root+':'+Fieldquesdob).value); var date3 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dateValidation( date ) {\n\n\t\tvar pass = /^\\d{4}-\\d{2}-\\d{2}/.test( date );\n\t\treturn pass;\n\n\t}", "function dateValidator() {\n var dateFormat = /^\\d{2}\\/\\d{2}\\/\\d{4}$/;\n var now = new Date(Date.now()); //get currents date\n if (!dateFormat.test(this.value)) {\n alert(\"You...
[ "0.72902095", "0.7046817", "0.69882005", "0.69383115", "0.6925526", "0.6844427", "0.68277866", "0.68210703", "0.68165404", "0.6804216", "0.6789771", "0.67397505", "0.6727514", "0.6720383", "0.6690062", "0.6668691", "0.663726", "0.66367686", "0.6631724", "0.66255486", "0.66186...
0.7241192
1
Modified 'openTemplate' function to generate filtered popups in analysis screens.
function openTemplateWithFilteredItems(contentName, placeholderid, methodName, formId, index, popupType,gridType) { var lform = $(formId); // Async submission should be stopped when its required to submit form explicitly. // For ex. In Add Diagnosis wizard the form is explicitly submitted upon selecting Diagno...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function openPopupWithFilteredItems( contentName, placeholderid, formId, methodName, methodArgs,gridType,popupType){\r\n\t serialNo++;\r\n\t// Tolven.Util.log( \"Getting: \" + contentName );\r\n\t $('downloadStatus').innerHTML=\"Get \" + contentName + \"...\";\r\n\r\n\t // Update this block when ever a similar ne...
[ "0.6550926", "0.64438593", "0.6164842", "0.5925241", "0.58180684", "0.57890487", "0.57701194", "0.57675326", "0.5736513", "0.566941", "0.5648587", "0.56475973", "0.56436396", "0.56292677", "0.5603764", "0.5592656", "0.55800074", "0.5579771", "0.55715203", "0.5568163", "0.5567...
0.70633763
0
Modified 'openPopup' function to generate filtered popups in analysis screens.
function openPopupWithFilteredItems( contentName, placeholderid, formId, methodName, methodArgs,gridType,popupType){ serialNo++; // Tolven.Util.log( "Getting: " + contentName ); $('downloadStatus').innerHTML="Get " + contentName + "..."; // Update this block when ever a similar new wizard is added. /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function openPopupSearch() {\n var value1;\n\tif(arguments.length < 1 ) {\n\t\talert('Javascript error in openPopupSearch, must provide at least 1 argument');\n\t\treturn;\n\t}\n\tif(basePath == null) {\n\t alert('BasePath must be set!');\n\t return;\n\t}\n\tvar url = basePath+arguments[0];\n\...
[ "0.6627706", "0.6420997", "0.64064723", "0.63150156", "0.6295189", "0.6274167", "0.6266861", "0.6257074", "0.6238849", "0.62316096", "0.62217414", "0.62019086", "0.6186205", "0.6176657", "0.6162976", "0.6158009", "0.61350816", "0.6110037", "0.61092985", "0.60972583", "0.60972...
0.65537995
1
Modified 'setPopupContent' function to change the path of the close button image.
function setPopupContentFiltered( req, placeholderid, formId){ var prefHTML = ""; prefHTML += "<div class=\"popupgridheader\">"; prefHTML += "<img class='closetab' src='/Tolven/images/x_black.gif' onclick=\"closePopup('" + $(placeholderid).id + "','" + formId + "' );return false;\"/>&nbsp;" ; prefHTML +=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function closePopUp(){\n\n\t// remove image src\n\tdocument.getElementById('mainPopImage').src = \"\";\n\n\t// close the popup\n\tdocument.getElementById('vis-popup').style.display = \"none\";\n}", "function closePreviewPopup() {\n /* hide popup, by adding hide class */\n removeClass(\"preview-popup\", \"show-...
[ "0.61591953", "0.6021396", "0.59802246", "0.592025", "0.5851475", "0.5825264", "0.581836", "0.5803969", "0.576434", "0.57425267", "0.5699568", "0.56938624", "0.56819344", "0.5652071", "0.5647744", "0.56255764", "0.5625062", "0.55953467", "0.5567853", "0.55392104", "0.5509751"...
0.0
-1
Modified 'cui' function to hide the number of filtered items on the popups in the analysis screens.
function cuiFiltered(element, value, id, methodName, methodArgs,menuPath){ if( $( id + "-filter").value == value ){ filterValueChangeFiltered(element, value, id ,methodName, methodArgs,menuPath); } else $(id).setAttribute('filterValue', $( id + "-filter").value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CustomCombo_getVisibleItemsCount()\n{\t\n\tvar o=this,items=o.menu.items,len=items.length,n=0\n\tfor (var i=0;i<len;i++)\n\t{\n\t\tvar it=items[i]\n\t\tif ((it.isComboVal)&&(it.isShown))\n\t\t{\n\t\t\tn++\n\t\t}\n\t}\n\treturn n;\n}", "function ShowData(e) {\n if(e.path[1].parentNode.id != \"\" || e.pa...
[ "0.6244927", "0.6235857", "0.6190055", "0.6148854", "0.6016388", "0.5995254", "0.59806705", "0.5914719", "0.59083956", "0.58653724", "0.5854615", "0.583712", "0.58314097", "0.5829389", "0.5823553", "0.58179295", "0.5817356", "0.5776403", "0.57706046", "0.5757604", "0.57462895...
0.0
-1
Modified 'checkUserInput' function to hide the number of filtered items on the popups in the analysis screens.
function checkUserInputFiltered(element, value, id , methodName, methodArgs,menuPath){ $(id).setAttribute('filterValue', value ); setTimeout( "cuiFiltered('" + element + "', '" + value + "', '" + id+ "', '" + methodName + "', '" + methodArgs + "')", 125); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function noUsersFound() {\n numFound.style.display = \"none\";\n userList.style.display = \"none\";\n arrowContainer.style.display = \"none\";\n noResult.style.display = \"flex\";\n alert(`No ${inputString} users found. Please try again!`);\n}", "function showJudge(itemElem,itemValue,isCreate){\n if(...
[ "0.5965842", "0.5916927", "0.5805816", "0.57269514", "0.57087123", "0.5705525", "0.5535659", "0.5526987", "0.55194116", "0.5497545", "0.5476715", "0.54710597", "0.5453026", "0.543026", "0.5428167", "0.5413032", "0.5410253", "0.5404586", "0.53861207", "0.53840727", "0.53808504...
0.0
-1
Modified 'filterValueChange' function to hide the number of filtered items on the popups in the analysis screens.
function filterValueChangeFiltered(element, val, id, methodName, methodArgs,menuPath) { //Tolven.Util.log(val); if(!menuPath) menuPath = $(id).getAttribute('menuPath'); var lg = liveGrids[id]; var requestParams = new Array(); $(id).setAttribute('filterValue', val ); lg.setRequestParams( {name: 'element'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "hideFilterBar() {\n const me = this,\n columns = me.grid.columns; // we don't want to hear back store \"filter\" event while we're resetting store filters\n\n me.clearStoreFiltersOnHide && me.suspendStoreTracking(); // hide the fields, each silently - no updating of the store's filtered state until ...
[ "0.66051376", "0.65521383", "0.6393908", "0.6389353", "0.638239", "0.6364837", "0.63188785", "0.6311934", "0.6297625", "0.627693", "0.6276089", "0.6275934", "0.6247322", "0.62351215", "0.62195027", "0.61977375", "0.61723363", "0.6147792", "0.6119073", "0.6115141", "0.60889167...
0.56590784
73
Modified 'countMDComplete' function to hide the number of filtered items on the popups in the analysis screens.
function countMDCompleteFiltered( rootId, request ) { // Tolven.Util.log( rootId + " " + request.responseText ); $(rootId+"-foot").innerHTML = ""; var lg = liveGrids[rootId]; lg.setTotalRows( 1*request.responseText ); lg.requestContentRefresh(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateCountBox() {\n let countBox = document.getElementById(\"countBox\");\n let sum = gCurrentFilterList.filterCount;\n let len = gFilterListbox.itemCount;\n\n if (len == sum) {\n // \"N items\"\n countBox.value = PluralForm.get(\n len,\n gFilterBundle.getString(\"filterCountItems\")\...
[ "0.5717174", "0.5706154", "0.550266", "0.54943365", "0.5463508", "0.5430923", "0.5422315", "0.5415524", "0.54036015", "0.5401229", "0.5398471", "0.539751", "0.53910816", "0.53454083", "0.53264064", "0.53162086", "0.5313332", "0.53009033", "0.52699554", "0.52584666", "0.524195...
0.60942656
0
Modified 'createGrid' function to generate filtered popups in Diabetesanalysis screens.
function createGridWithFilteredDiabetes( menuPath,id, methodName, methodArgs,gridType ) { //menuPath - the original path of the menu for which the grid is created //id - the html element id on the page //methodName - javascript method to be called for the click event on the grid items //methodArgs - javascript ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createGrid(fields) {\n var columns = fields.filter(function(field, i) {\n if (gridFields.indexOf(field.name) !== -1) {\n return field;\n }\n \n }).map(function(field) {\n if (field.name === \"APN\" || field.name === \"JURISDICTIO...
[ "0.6841283", "0.6787575", "0.6745886", "0.65172756", "0.64590204", "0.6303499", "0.62367624", "0.6229793", "0.6204006", "0.6186064", "0.61678195", "0.6146184", "0.61269486", "0.6105096", "0.60925955", "0.60624945", "0.60541373", "0.6049913", "0.604919", "0.604803", "0.6039316...
0.67199373
3
Modified 'createGrid' function to generate filtered popups in Diabetesanalysis screens.
function createGridWithFilteredInfluenza( menuPath,id, methodName, methodArgs,gridType ) { //menuPath - the original path of the menu for which the grid is created //id - the html element id on the page //methodName - javascript method to be called for the click event on the grid items //methodArgs - javascript...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createGrid(fields) {\n var columns = fields.filter(function(field, i) {\n if (gridFields.indexOf(field.name) !== -1) {\n return field;\n }\n \n }).map(function(field) {\n if (field.name === \"APN\" || field.name === \"JURISDICTIO...
[ "0.68408054", "0.67866975", "0.67456746", "0.67209244", "0.65168077", "0.6458171", "0.63026786", "0.6237446", "0.62301207", "0.6203731", "0.61855066", "0.6166951", "0.61467165", "0.6125921", "0.61048895", "0.6061788", "0.6053208", "0.6050981", "0.60485226", "0.60478544", "0.6...
0.6092228
15
Modified 'createGrid' function to generate filtered popups in Hypertensionanalysis screens.
function createGridWithFilteredHypertension( menuPath,id, methodName, methodArgs,gridType ) { if(!id) id = menuPath; var root = $(id); var grid = $(id+'-grid'); if (root.getAttribute( 'gridOffset' )==null) { root.setAttribute( 'gridOffset', grid.getAttribute( 'gridOffset')); root.setAttribute( 'gridSor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createGrid(fields) {\n var columns = fields.filter(function(field, i) {\n if (gridFields.indexOf(field.name) !== -1) {\n return field;\n }\n \n }).map(function(field) {\n if (field.name === \"APN\" || field.name === \"JURISDICTIO...
[ "0.69600695", "0.6908128", "0.6741466", "0.66430426", "0.642261", "0.63359094", "0.6281379", "0.61949253", "0.61718565", "0.6149424", "0.6135283", "0.6114738", "0.610136", "0.6095092", "0.60908914", "0.6061911", "0.60310286", "0.6027267", "0.6011508", "0.6011003", "0.59942657...
0.6574647
4
Modified 'createGrid' function to generate filtered popups in Cholesterolanalysis screens.
function createGridWithFilteredCholesterol( menuPath,id, methodName, methodArgs,gridType ) { if(!id) id = menuPath; var root = $(id); var grid = $(id+'-grid'); if (root.getAttribute( 'gridOffset' )==null) { root.setAttribute( 'gridOffset', grid.getAttribute( 'gridOffset')); root.setAttribute( 'gridSort...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createGrid (){\n \n $(function(){\n \n // Initialize buttonFilter code\n\n buttonFilter.init();\n\n // Instantiate MixItUp\n\n $('#grid').mixItUp({\n controls: {\n enable: false // we won't be needing these\n },\n load: {\n filter: 'n...
[ "0.6933414", "0.68523884", "0.67119175", "0.667856", "0.6461777", "0.6395609", "0.63914466", "0.6381837", "0.6357766", "0.6326813", "0.6248807", "0.6221563", "0.6215645", "0.6187948", "0.6163266", "0.615817", "0.6157844", "0.614346", "0.61404836", "0.61122537", "0.61084634", ...
0.65810317
4
Modified 'createGrid' function to generate filtered popups in Colorectalanalysis screens.
function createGridWithFilteredColorectal( menuPath,id, methodName, methodArgs,gridType ) { if(!id) id = menuPath; var root = $(id); var grid = $(id+'-grid'); if (root.getAttribute( 'gridOffset' )==null) { root.setAttribute( 'gridOffset', grid.getAttribute( 'gridOffset')); root.setAttribute( 'gridSortC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createGrid (){\n \n $(function(){\n \n // Initialize buttonFilter code\n\n buttonFilter.init();\n\n // Instantiate MixItUp\n\n $('#grid').mixItUp({\n controls: {\n enable: false // we won't be needing these\n },\n load: {\n filter: 'n...
[ "0.6749339", "0.67107093", "0.6642831", "0.6617651", "0.6500657", "0.63818586", "0.6372902", "0.6366373", "0.63158774", "0.63126975", "0.6287566", "0.62369406", "0.61952144", "0.6162136", "0.61583585", "0.61511075", "0.61421525", "0.6116799", "0.6099185", "0.60550576", "0.602...
0.6703731
2
Modified 'createGrid' function to generate filtered popups in Mammographyanalysis screens.
function createGridWithFilteredMammography( menuPath,id, methodName, methodArgs,gridType ) { if(!id) id = menuPath; var root = $(id); var grid = $(id+'-grid'); if (root.getAttribute( 'gridOffset' )==null) { root.setAttribute( 'gridOffset', grid.getAttribute( 'gridOffset')); root.setAttribute( 'gridSort...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createGrid (){\n \n $(function(){\n \n // Initialize buttonFilter code\n\n buttonFilter.init();\n\n // Instantiate MixItUp\n\n $('#grid').mixItUp({\n controls: {\n enable: false // we won't be needing these\n },\n load: {\n filter: 'n...
[ "0.68406993", "0.6816932", "0.6632481", "0.66266763", "0.64036876", "0.63901657", "0.6347568", "0.6341419", "0.62356377", "0.62337697", "0.6174514", "0.6149064", "0.61412346", "0.6116216", "0.61021614", "0.60972923", "0.60838836", "0.60677785", "0.6036022", "0.60168177", "0.6...
0.66054714
4
Submits individual trims when multiple problems are submitted.
function submitUniqueTrim(templateID, element) { new Ajax.Request('submitUniqueTrim.ajaxcchit', { method: 'get', parameters: "templateID="+templateID+ "&element="+element, onSuccess: function(response){ }, onFailure: function(reponse) { } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function submitStations(evt) {\n\n evt.preventDefault();\n clearInfoMessage();\n clearResults();\n\n // get the inputs values\n var departure_id = getStationCode(document.getElementById('departure').value);\n var arrival_id = getStationCode(document.getElementById('arrival').value);\n\n Promise.all([checkSt...
[ "0.60560685", "0.5642996", "0.53304386", "0.5236322", "0.5217452", "0.518223", "0.5054812", "0.5048048", "0.50464296", "0.50141186", "0.5000971", "0.5000557", "0.4999903", "0.49985847", "0.4991446", "0.49826214", "0.49502438", "0.4950028", "0.49385852", "0.4906786", "0.490131...
0.0
-1
Submits separate problem trim when submitted from progressNotes trim.
function submitProblemTrim(element) { new Ajax.Request('submitProblem.ajaxcchit', { method: 'get', parameters: "element="+element, onSuccess: function(response){ }, onFailure: function(reponse) { } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function single_tracker_submit() {\n trackOneVin($(\"#vinNumber\").val().trim());\n}", "function processQty() {\nvar qtyProcess = $(\"input.JQPQtyProcess\").val();\n\n// CKEDITOR.instances[\"PJQcomments\"].setReadOnly(true);\n// var JQPComments = CKEDITOR.instances[\"PJQcomments\"].setData();\n// alert(JQP...
[ "0.51786023", "0.5164947", "0.50411564", "0.5033287", "0.5000523", "0.49961063", "0.4945769", "0.48664868", "0.48467857", "0.48196387", "0.4810161", "0.48080343", "0.47996044", "0.4784129", "0.47709298", "0.47459713", "0.4736326", "0.47270507", "0.47024983", "0.46942347", "0....
0.5378749
0
Method to call 'findLastSnapShotDate.ajaxcchit'(which find the last snapshot date ),retrieve the date and shows it adjacent to the filtered items.
function findLastSnapShotDate(element){ var instAjax = new Ajax.Request( 'findLastSnapShotDate.ajaxcchit', { method: 'get', parameters: 'element='+element, onComplete: function(req) { if((req.responseText != "Failure") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLastUpdate(){\r\n\t\tvar theDate = new Date();\r\n\t\t$.ajax({\r\n\t\t\tasync: false,\r\n\t\t\turl: root()+\"/rest/tour-lastmodified.php\",\r\n\t\t\terror: function( xhr, ajaxOptions, thrownError ) {\r\n\t\t\t\t// TODO: GW->MH: nicht eingeloggt sollte als Datum bei succes zurückkommen\r\n\t\t\t\tif(thr...
[ "0.5793335", "0.57355404", "0.56548333", "0.5561664", "0.5490911", "0.5470654", "0.5405579", "0.531123", "0.5263149", "0.52415913", "0.52143985", "0.5175443", "0.51508963", "0.5108463", "0.5107722", "0.5088586", "0.5061544", "0.5053657", "0.50372046", "0.503581", "0.5031544",...
0.7154402
0
Modified 'openTemplate' function to generate image order popups with a tooltip to show the long name of orders.
function openTemplateWithToolTip(contentName, placeholderid, methodName, formId, index,gridType) { var lform = $(formId); // Async submission should be stopped when its required to submit form explicitly. // For ex. In Add Diagnosis wizard the form is explicitly submitted upon selecting Diagnosis. // Durin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function popup_template(objectname,stagename, parkingtype) {\n var popup_template = document.createElement('div');\n var html =\n \"<strong>\"\n + objectname\n + \"</strong><br>\"\n + \"<br><button id='button_showDetails_\"\n + stagename\n + \"' onclick='search_items...
[ "0.6338645", "0.6310537", "0.63036376", "0.6208943", "0.5952525", "0.5841169", "0.5828809", "0.57701194", "0.5663081", "0.5610614", "0.5607365", "0.5599855", "0.5570042", "0.5563938", "0.5544418", "0.5515525", "0.5497152", "0.5488074", "0.54710585", "0.5469865", "0.54618806",...
0.64540946
0
Modified 'openPopup' function to generate image order popups with a tooltip to show the long name of orders.
function openPopupWithToolTip( contentName, placeholderid, formId, methodName, methodArgs,gridType){ serialNo++; // Tolven.Util.log( "Getting: " + contentName ); $('downloadStatus').innerHTML="Get " + contentName + "..."; // Update this block when ever a similar new wizard is added. // Update this bl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function openInfoImage(event){\n var t = torpedo.tooltip;\n $(t.find(\"#torpedoInfoImage\")[0]).qtip({\n overwrite: false,\n content: {\n text: \"<img id='torpedoPopupImage' src='\"+chrome.extension.getURL(chrome.i18n.getMessage(\"infoImage\"))+\"'> \",\n button: true\n },\n show: {\n ...
[ "0.666328", "0.66245484", "0.6291503", "0.62595195", "0.6250903", "0.623138", "0.6219515", "0.6202896", "0.6187276", "0.61841995", "0.6171758", "0.6165986", "0.6165712", "0.6158624", "0.61566573", "0.6154405", "0.6141612", "0.6140498", "0.61306393", "0.6122204", "0.6120589", ...
0.637246
2
Modified 'createGrid' function to generate image order popups with a tooltip to show the long name of orders.
function createGridWithToolTip( menuPath,id, methodName, methodArgs,gridType ) { if(!id) id = menuPath; var root = $(id); var grid = $(id+'-grid'); if (root.getAttribute( 'gridOffset' )==null) { root.setAttribute( 'gridOffset', grid.getAttribute( 'gridOffset')); root.setAttribute( 'gridSortCol', grid.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "createGrids () {\n }", "_make_grid() {\n this.options.grid.element.style.gridTemplateColumns = 'repeat(' + this.options.grid.columns + ', 1fr)';\n for (let i in this.options.symbols) {\n let symbol = document.createElement('div');\n symbol.className = this.options.classes.sy...
[ "0.61494184", "0.5998869", "0.5976461", "0.5975813", "0.5967102", "0.5924558", "0.58889306", "0.58221364", "0.57844716", "0.573955", "0.57257724", "0.5683605", "0.5663677", "0.5661376", "0.5656901", "0.56202257", "0.56004816", "0.5583677", "0.55721974", "0.55473644", "0.54997...
0.62180686
0
Close tooltip if clicked outside.
clickedOutside(event) { if (this.isActive) { if (Array.isArray(this.autoClose)) { if (this.autoClose.indexOf('outside') >= 0) { if (!this.isInWhiteList(event.target)) this.isActive = false; } if (this.autoClose.indexOf('inside') >= 0) { if (this.isInW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleMouseOut(d, i) {\n tooltip.style('display', 'none');\n }", "function closeToolTip(elem) {\n // Get MaterializeCSS Tooltip instance\n let instance = M.Tooltip.getInstance(elem);\n\n // If an instance is returned, close it\n if (instance !== undefined) {\n instance.clo...
[ "0.71548146", "0.6914093", "0.6715771", "0.6630247", "0.6626134", "0.6603996", "0.6593328", "0.6578207", "0.6570085", "0.65668344", "0.655508", "0.6529722", "0.6488339", "0.64824224", "0.64705074", "0.6461315", "0.64610445", "0.64593256", "0.6446539", "0.64429796", "0.6440001...
0.67961085
2
Keypress event that is bound to the document
keyPress({ key }) { if (this.isActive && (key === 'Escape' || key === 'Esc')) { if (Array.isArray(this.autoClose)) { if (this.autoClose.indexOf('escape') >= 0) this.isActive = false; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "bind() {\n\t\tdocument.addEventListener('keydown', this.handleKeyPress);\n\t}", "function documentKeyUpHandler(event) {\n switch(event.keyCode) {\n case game.char_space:\n // Space was pressed, start or pause/unpause the game\n if (!game.playing) {\n game.intro.hide();\n game.score.reset();\n ...
[ "0.72944367", "0.7114441", "0.7056107", "0.7056107", "0.6975379", "0.6943729", "0.68907547", "0.6882541", "0.6876113", "0.6871642", "0.68661547", "0.68476146", "0.6847283", "0.6843535", "0.68323195", "0.6795065", "0.6794069", "0.67838186", "0.6773032", "0.67186755", "0.669002...
0.0
-1
Whitelisted items to not close when clicked.
isInWhiteList(el) { if (el === this.$refs.content) return true; // All chidren from content if (this.$refs.content !== undefined) { const children = this.$refs.content.querySelectorAll('*'); for (const child of children) { if (el === child) { return true; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_closeAll() {\n this._closeItems();\n this._toggleShowMore(false);\n }", "function closePopUp () {\n if ( event.target == bell.querySelector('.icon')) {\n list.style.display = 'none'\n }}", "function disableClickToClose() {\n\n // Close the menu when a menu item is clicked.\n...
[ "0.6999038", "0.6796645", "0.6642785", "0.65862954", "0.64709055", "0.6423668", "0.63561386", "0.63355255", "0.6277661", "0.62630326", "0.62138116", "0.61848634", "0.61841846", "0.6154553", "0.61488897", "0.6120938", "0.6110819", "0.6073401", "0.6056689", "0.6032003", "0.5988...
0.0
-1
I moved the event listeners for document.ready could look nice
function getEventListeners() { $("#task-input").on("click", "#submit-task", initialpostTask); $("#completed-task-home").on("click", ".status", putStatusUpdate); $("#completed-task-home").on("click", ".delete", deleteTask); $("#completed-task-home").on("click", ".update", checkStringLength); $("#inco...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bindEvents() {\n $(document).on('ready', onDocumentReady);\n }", "function initOnDomReady() {}", "function documentReadyFunction() {\n onPageLoadOrResize();\n onPageLoad();\n }", "function completed(){document.removeEventListener(\"DOMContentLoaded\",completed);window.remo...
[ "0.75775", "0.72678703", "0.7201998", "0.7050274", "0.7050274", "0.7050274", "0.7050274", "0.6895048", "0.67414874", "0.67414874", "0.67414874", "0.67414874", "0.67148036", "0.6705455", "0.6696117", "0.6662594", "0.6655457", "0.6600406", "0.6596881", "0.6596881", "0.658774", ...
0.0
-1
I needed something definitive to be able to set the status to NO at the gitgo
function initialpostTask() { event.preventDefault(); var task = {}; $.each($('#task-input').serializeArray(), function(i, field) { task[field.name] = field.value; }); // $.each($('#registerPet').serializeArray(), function(i, field) { // pet[field.name] = field.value;}); task.taskSt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ensureStatus(callback) {\n\t \tif (status) return callback(null);\n\t return git.status({}, function(err, newStatus) {\n\t \tif (err) return callback(err);\n\t status = newStatus;\n\t return callback(null);\n\t }...
[ "0.67003393", "0.62175757", "0.6204212", "0.6045182", "0.59712154", "0.5926691", "0.5868145", "0.58542293", "0.58343816", "0.5821737", "0.58153385", "0.5777643", "0.5775767", "0.57566935", "0.5742068", "0.5718113", "0.570887", "0.5694756", "0.5668353", "0.56238276", "0.557336...
0.0
-1
Grabs what tasksI have added and places them on the DOM
function getTasks() { $.ajax({ type: 'GET', url: '/tasks', success: function(tasksList) { //Correct Here $('#completed-task-home').empty(); $("#incompleted-task-home").empty(); tasksList.forEach(function(task, i) { var taskArray...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function placeTasks(){\n let app = $(\"#current-tasks\");\n let taskList = document.createElement('ul');\n app.append(taskList);\n loadTasks().then((tasks)=>{\n tasks.forEach(task=>{\n newTask(task.name, task.id);\n });\n });\n }", "funct...
[ "0.7906202", "0.73800564", "0.73624396", "0.7301778", "0.73014903", "0.7288391", "0.72306556", "0.70975155", "0.70926", "0.70597047", "0.7020447", "0.69663024", "0.6957938", "0.69463235", "0.6944265", "0.6907826", "0.68870395", "0.6865612", "0.6830666", "0.68300754", "0.68272...
0.6341995
97
Made to specifically update the status of a given task
function putStatusUpdate() { //assigns Data to the parent div so that I can grab it later var taskId = $(this).parent().data('id') var task = {}; task.id = taskId; //This is how I attached my toggle logic without toggle if ($(this).parent().hasClass('eachTask completed')) { //Assign...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "handleStatusChange(taskId, e, data) {\n const task = _.find(this.state.tasks, {'task_id': taskId})\n const newStatus = data.value\n if (newStatus !== task.status) {\n let newTasks = this.state.tasks.slice()\n let newTask = _.find(newTasks, {'task_id': taskId})\n newTask.status = newStatus\n...
[ "0.78560793", "0.77910084", "0.75203735", "0.7463197", "0.74271995", "0.7400628", "0.7373413", "0.73344016", "0.7331154", "0.73150504", "0.72786874", "0.7196613", "0.7142108", "0.711807", "0.7102695", "0.70834607", "0.70768434", "0.7057689", "0.70041674", "0.6995647", "0.6995...
0.7119835
13
I used this to help clean up my Get Call
function appendTask(taskArray, id) { //two slightly different functions based on the status of completion. //I couldn't quite abstract the $els because they needed to run in these ifs. //This is because the final append is reliant on information from appendDetails if (taskArray[0].status == "YES") { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cleanup(data, context){\n delete context._pipecallId;\n delete context._env;\n return data;\n }", "function recallGet() {\n fetch(baseURL)\n .then(response => response.json())\n .then(response => {\n $(\"#after\").css(\"display\", \"flex\");\n ...
[ "0.54965204", "0.5448259", "0.5441295", "0.53981364", "0.5375226", "0.5263964", "0.5237895", "0.5227873", "0.5213414", "0.51920116", "0.5189062", "0.51819015", "0.51729846", "0.51729846", "0.51659536", "0.51582056", "0.5158175", "0.51577646", "0.51566154", "0.51378447", "0.51...
0.0
-1