code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
function selectItem (id) {
if (XMLLock == 1) return;
if (selectedItem != "" && document.getElementById("s" + selectedItem) != null) { //Deselect selected
var oSpan = document.getElementById("s" + selectedItem);
oSpan.className = "notSelected"
}
var pSpan = document.getElementById("s" + id); ... | JavaScript |
function expandCollapse (e) {
if (ie) e = window.event;
var node = e.srcElement;
while (node.parentNode.nodeType != 1 &&
("p" + node.parentNode.id) != node.id)
node = node.parentNode;
var div_id = node.parentNode.id;
expandCollapseItem (div_id);
}
function expandCollapseItem (div_id) {
... | JavaScript |
function UpdateWSUrl () {
window.open (
'ontoedit/ws_getinfo.php?url='+document.getElementById ('ws_url').value+'¶m=fl'
);
} | JavaScript |
var ARR_ACTIVEX = ["MSXML4.DOMDocument", "MSXML3.DOMDocument", "MSXML2.DOMDocument", "MSXML.DOMDocument", "Microsoft.XmlDom"];
var STR_ACTIVEX = "";
var isIE = navigator.userAgent.toLowerCase().indexOf("msie") > -1;
var isMoz = document.implementation && document.implementation.createDocument;
if (isIE) { //Int... | JavaScript |
var objXML;
var link_id = "";
var XMLLock = 0;
var XMLStackDiv = ["", "", "", "", ""];
var XMLStackURL = ["", "", "", "", ""];
var XMLStackCDv = [0, 0, 0, 0, 0];
var XMLStackSize = 0;
var XMLFlag = 1; //Alexey; 1 - enable loading, 0 disable.
function loadXMLFile(div_id, xml_file, clearDiv) {
/* if (XMLFlag ... | JavaScript |
function ProcessButton (e) {
switch (e[0]) {
case "new_wnd":
//window.open(e[1], "vrmlWindow", "");
main_win=window.open(e[1],'vrmlwindow','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes');
break;
case "wd_tree":
//window.open(e[1], "xmlWindow", "");... | JavaScript |
var http = require('http'),
url = require('url'),
querystring = require('querystring')
paste_code = ''
process.stdin.resume()
process.stdin.on('data', function(data) {paste_code+=data;})
process.stdin.on('end', function() {
console.log(paste_code);
var post_data = querystring.stringify({
api_dev... | JavaScript |
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
| JavaScript |
try {
var pageTracker = _gat._getTracker("UA-18761191-1");
pageTracker._trackPageview();
} catch(err) {}
| JavaScript |
root theme js file | JavaScript |
nested theme js file | JavaScript |
alert('win sauce'); | JavaScript |
alert('plugin one nested js file'); | JavaScript |
alert("Test App"); | JavaScript |
alert('I am a root level file!'); | JavaScript |
define(['promptTypes','jquery','underscore', 'prompts'],
function(promptTypes, $, _) {
return {
"breathcounter" : promptTypes.launch_intent.extend({
type: "breathcounter",
datatype: "breathcounter",
buttonLabel: {
'default': 'Launch breath cou... | JavaScript |
define(['promptTypes','jquery','underscore', 'prompts'],
function(promptTypes, $, _) {
return {
"pulseox" : promptTypes.launch_intent.extend({
type: "pulseox",
datatype: "pulseox",
intentString: 'org.opendatakit.sensors.PULSEOX',
buttonLabel: {
... | JavaScript |
/*jslint eqeq: true, evil: true, plusplus: true, todo: true, vars: true, white: true, devel: true */
'use strict';
/**
* All the standard prompts available to a form designer.
*/
define(['mdl','database','opendatakit','controller','backbone','formulaFunctions','handlebars','promptTypes','jquery','underscore', 'trans... | JavaScript |
/**
* Object that is used by screens.js to insert all the screens available to the form designer.
* Declared as a separate empty object so as to eliminate many circular dependencies.
*/
define({});
| JavaScript |
'use strict';
/**
* Manages the execution state and screen history of the overall survey,
* including form validation, saving and marking the form as 'complete'.
*
* Delegates the display of individual screens to the screenManager.
* On page advance, asks the screen manager whether advancing off the
* sc... | JavaScript |
'use strict';
/**
* circular dependency:
*
* Responsibilities:
* Performs the actions necessary to make a prompt visible on the screen (setScreen).
* Receives click and swipe events for navigating across pages.
* Displays pop-up dialogs and toasts.
* Displays the options dialog for changing languag... | JavaScript |
'use strict';
/**
circular dependency upon: controller, builder (set via initialize)
2 public APIs:
initialize(controller, builder) -- initialize to avoid circular load dependency.
changeUrlHash(ctxt) -- handle changes to the window.location.hash
*/
define(['opendatakit','database','jquery'],
funct... | JavaScript |
/*
The landing object is loaded very early in the page-load process
and is used by the container app to publish a doAction() response
back into the javascript application.
If the javascript application has a controller registered, then
the publishing is an immediate pass-through to the controller.
Otherwise,... | JavaScript |
'use strict';
// TODO: Instance level: locale (used), at Table level: locales (available), formPath,
define(['mdl','opendatakit','databaseUtils','databaseSchema','jquery'], function(mdl,opendatakit,databaseUtils,databaseSchema,$) {
verifyLoad('database',
['mdl','opendatakit','databaseUtils','databaseSchema','j... | JavaScript |
/**
* Configuration settings for jquery mobile to disable
* dynamic page transitions (loadings of pages via links),
* disable page history and to disable all hashChange
* detection or handling (do our own navigation handling).
*/
define(['jquery'], function($){
}); | JavaScript |
/**
* Object that is used by prompts.js to insert all the prompts available to the form designer.
* Declared as a separate empty object so as to eliminate many circular dependencies.
*/
define({}); | JavaScript |
/**
* Global object that is the container for
* - formDef
* - model structure metadata
* - instance metadata
* - survey instance data
*
* The data is accessed via the database.js utilities.
* Those utilities are responsible for write-through
* update of the database. Data is cached here to
* simp... | JavaScript |
//'use strict';
/**
* Main entry point: buildSurvey
*
* Given a form definition (formDef.json), constructs the calculations and prompts lists that are then
* injected into the controller.
*
* Major task is to construct function()s for the calculates, constraints and other equations.
*
*/
define(['co... | JavaScript |
/**
* Simple boilerplate for defining the requirejs settings,
* to initialize parsequery dependencies, and to invoke
* the parsequery.changeUrlHash to interpret the
* window.location.hash value.
*
* Also sets up a timer polling for the completion of the
* jquery mobile platform. After it is initialized,... | JavaScript |
/**
* Handlebars helper functions for use within handlebars templates.
*
* These are invoked via {{helperFunction arg1}} or {{helperFunction arg1 arg2}}
* within the handelbars templates.
*/
define(['database','opendatakit','handlebars','formulaFunctions', 'text!templates/labelHint.handlebars','jquery'],
fu... | JavaScript |
'use strict';
// TODO: Instance level: locale (used), at Table level: locales (available), formPath,
define(['mdl','databaseUtils','opendatakit'], function(mdl, databaseUtils,opendatakit) {
verifyLoad('databaseSchema',
['mdl','databaseUtils','opendatakit'],
[mdl,databaseUtils,opendatakit]);
return {
... | JavaScript |
//Dont use usestrict here or the evaluator will break
/**
* Common functions accessible from the user's Javascript eval environment
* (for use within their formulas).
*/
//TODO: These functions need unit testing.
define(['opendatakit','database', 'underscore'],
function(opendatakit, database, _) {
ve... | JavaScript |
/*
This shim object is just a facade for browser testing.
It defines the interface that ODK Survey or other container apps
must implement to work with the javascript library.
It will be replaced by one injected by Android Java code.
*/
window.shim = window.shim || {
showAlerts: false,
refId: null,
... | JavaScript |
'use strict';
/**
* circular dependency: 'controller' -- to avoid a circular dependency, 'controller' is passed
* in during initialize() and stored in a member variable.
*
* Responsibilities:
* Performs the actions necessary to make a screen visible on the screen (setScreen).
* Receives click and swipe ev... | JavaScript |
'use strict';
/**
* This is a random collection of methods that don't quite belong anywhere.
*
* A set of utilities, some of which wrap the Java interface (shim.js), and others
* provide useful parsing or interpretation of localization details.
*
*/
define(['mdl','underscore'],function(mdl,_) {
verifyLoa... | JavaScript |
'use strict';
/**
* This file contains utilities that operate on the data as represented in the JSON
* and as serialized into and out of the database or session storage.
*/
define(['mdl','opendatakit','XRegExp'], function(mdl,opendatakit,XRegExp) {
verifyLoad('databaseUtils',
['mdl','opendatakit','XRegExp... | JavaScript |
function Player() {
}
Player.prototype.play = function(song) {
this.currentlyPlayingSong = song;
this.isPlaying = true;
};
Player.prototype.pause = function() {
this.isPlaying = false;
};
Player.prototype.resume = function() {
if (this.isPlaying) {
throw new Error("song is already playing");
}
this.i... | JavaScript |
function Song() {
}
Song.prototype.persistFavoriteStatus = function(value) {
// something complicated
throw new Error("not yet implemented");
}; | JavaScript |
//TODO: I would like to see builder function as more of a standalone module
//without all the dependencies.
//Importing mdl and setting its formDef property is a hack to avoid dealing
//with all the configuration that would normally be done in
//in parsequery.js and main.js
//TODO: Invariants that might be useful to te... | JavaScript |
describe("Player", function() {
var player;
var song;
beforeEach(function() {
player = new Player();
song = new Song();
});
it("should be able to play a Song", function() {
player.play(song);
expect(player.currentlyPlayingSong).toEqual(song);
//demonstrates use of custom matcher
e... | JavaScript |
beforeEach(function() {
this.addMatchers({
toBePlaying: function(expectedSong) {
var player = this.actual;
return player.currentlyPlayingSong === expectedSong &&
player.isPlaying;
}
});
});
| JavaScript |
require(['underscore', 'prompts'], function(_, promptTypes){
describe("Prompts", function() {
it("should only have lower case names.", function() {
//This is because the prompt names in the formDef
//are all converted to lowercase.
expect(_(promptTypes).keys().every(funct... | JavaScript |
require(['underscore', 'formulaFunctions'], function(_, formulaFunctions){
describe("Formula Functions:", function() {
describe("selected", function() {
it("should be true if the given value is in the select array.", function() {
expect(formulaFunctions.selected(['a', 'b', 'c... | JavaScript |
var isCommonJS = typeof window == "undefined" && typeof exports == "object";
/**
* Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
*
* @namespace
*/
var jasmine = {};
if (isCommonJS) exports.jasmine = jasmine;
/**
* @private
*/
jasmine.unimplementedMethod_ = function() {
t... | JavaScript |
jasmine.HtmlReporterHelpers = {};
jasmine.HtmlReporterHelpers.createDom = function(type, attrs, childrenVarArgs) {
var el = document.createElement(type);
for (var i = 2; i < arguments.length; i++) {
var child = arguments[i];
if (typeof child === 'string') {
el.appendChild(document.createTextNode(ch... | JavaScript |
requirejs.config({
baseUrl: '../../',
paths: {
// third-party libraries we depend upon
jqmobile : 'libs/jquery.mobile-1.2.0/jquery.mobile-1.2.0',
jquery : 'libs/jquery.1.8.2',
backbone : 'libs/backbone.0.9.2',
handlebars : 'libs/handlebars.1.0.0.beta.6',
... | JavaScript |
/**
* Simple boilerplate for defining the requirejs settings,
* to initialize parsequery dependencies, and to establish
* the parsequery.hashChangeHandler for hash change events.
*
* Also sets up a timer polling for the completion of the
* jquery mobile platform. After it is initialized, the
* timer then... | JavaScript |
/**
* This modules defines all the translations used within the ODK Survey core code.
* It may end up being preferable to separate the translations into multiple files,
* one per language.
*/
define({
"acknLabel" : {
"default": "Acknowledge",
"hindi": "स्वीकार करना"
},
"deselec... | JavaScript |
/*
Copyright (C) 2011 by Yehuda Katz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | JavaScript |
/*jslint eqeq: true, plusplus: true, undef: true, sloppy: true, vars: true, forin: true, nomen: true */
/*!
* jQuery MobiScroll v2.5.4
* http://mobiscroll.com
*
* Copyright 2010-2013, Acid Media
* Licensed under the MIT license.
*
*/
(function ($) {
function Scroller(elem, settings) {
var m,
... | JavaScript |
/*jslint eqeq: true, plusplus: true, undef: true, sloppy: true, vars: true, forin: true */
(function ($) {
var ms = $.mobiscroll,
date = new Date(),
defaults = {
dateFormat: 'mm/dd/yy',
dateOrder: 'mmddy',
timeWheels: 'hhiiA',
timeFormat: 'hh:ii A',
... | JavaScript |
/*
Copyright (c) 2012 Sergio Gabriel Teves
All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program i... | JavaScript |
/*jslint eqeq: true, plusplus: true, undef: true, sloppy: true, vars: true, forin: true */
(function ($) {
var defaults = {
inputClass: '',
invalid: [],
rtl: false,
group: false,
groupLabel: 'Groups'
};
$.mobiscroll.presetShort('select');
$.mobiscroll.presets.s... | JavaScript |
(function ($) {
$.mobiscroll.i18n.hu = $.extend($.mobiscroll.i18n.hu, {
// Core
setText: 'OK',
cancelText: 'Mégse',
// Datetime component
dateFormat: 'dd.mm.yy',
dateOrder: 'ddmmyy',
dayNames: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szo... | JavaScript |
(function ($) {
$.mobiscroll.i18n.es = $.extend($.mobiscroll.i18n.es, {
// Core
setText: 'Aceptar',
cancelText: 'Cancelar',
// Datetime component
dateFormat: 'dd/mm/yy',
dateOrder: 'ddmmyy',
dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Vier... | JavaScript |
(function ($) {
$.mobiscroll.i18n.zh = $.extend($.mobiscroll.i18n.zh, {
// Core
setText: '确定',
cancelText: '取消',
// Datetime component
dateFormat: 'dd/mm/yy',
dateOrder: 'ddmmyy',
dayNames: ['周日','周一','周二','周三','周四','周五','周六'],
dayNamesShort: ['日','一',... | JavaScript |
/*
* Translation by: Ivan Gomes <contato@ivangomes.com.br>
*
*/
(function ($) {
$.mobiscroll.i18n['pt-BR'] = $.extend($.mobiscroll.i18n['pt-BR'], {
// Core
setText: 'Selecionar',
cancelText: 'Cancelar',
// Datetime component
dateFormat: 'dd/mm/yy',
dateOrder: 'ddMM... | JavaScript |
(function ($) {
$.mobiscroll.i18n.no = $.extend($.mobiscroll.i18n.no, {
// Core
setText: 'OK',
cancelText: 'Avbryt',
// Datetime component
dateFormat: 'dd.mm.yy',
dateOrder: 'ddmmyy',
dayNames: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lø... | JavaScript |
(function ($) {
$.mobiscroll.i18n.fr = $.extend($.mobiscroll.i18n.fr, {
// Core
setText: 'Terminé',
cancelText: 'Annuler',
// Datetime component
dateFormat: 'dd/mm/yy',
dateOrder: 'ddmmyy',
dayNames: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Ven... | JavaScript |
(function ($) {
$.mobiscroll.i18n.it = $.extend($.mobiscroll.i18n.it, {
// Core
setText: 'OK',
cancelText: 'Annulla',
// Datetime component
dateFormat: 'dd-mm-yyyy',
dateOrder: 'ddmmyy',
dayNames: ['Domenica', 'LunedÌ', 'MertedÌ', 'Mercoled&Igrav... | JavaScript |
(function ($) {
$.mobiscroll.i18n.de = $.extend($.mobiscroll.i18n.de, {
// Core
setText: 'OK',
cancelText: 'Abbrechen',
// Datetime component
dateFormat: 'dd.mm.yy',
dateOrder: 'ddmmyy',
dayNames: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Fr... | JavaScript |
(function ($) {
$.mobiscroll.themes.jqm = {
defaults: {
jqmBorder: 'a',
jqmBody: 'c',
jqmHeader: 'b',
jqmWheel: 'd',
jqmClickPick: 'c',
jqmSet: 'b',
jqmCancel: 'c'
},
init: function (elm, inst) {
... | JavaScript |
/*jslint eqeq: true, plusplus: true, undef: true, sloppy: true, vars: true, forin: true */
(function ($) {
var ms = $.mobiscroll,
defaults = {
invalid: [],
showInput: true,
inputClass: ''
},
preset = function (inst) {
var s = $.extend({}, defa... | JavaScript |
// Backbone.js 1.0.0
// (c) 2010-2013 Jeremy Ashkenas, DocumentCloud Inc.
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(){
// Initial Setup
// -------------
// Save a reference to the global... | JavaScript |
(function( $ ){
$.fn.qrcode = function(options) {
// if options is string,
if( typeof options === 'string' ){
options = { text: options };
}
// set default values
// typeNumber < 1 for automatic calculation
options = $.extend( {}, {
render : "canvas",
width : 256,
height : 256,
typeNumb... | JavaScript |
/**
* jQuery-csv (jQuery Plugin)
* version: 0.70 (2012-11-04)
*
* This document is licensed as free software under the terms of the
* MIT License: http://www.opensource.org/licenses/mit-license.php
*
* Acknowledgements:
* The original design and influence to implement this library as a jquery
* plugin is influ... | JavaScript |
/**
* @license RequireJS text 2.0.10 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/requirejs/text for details
*/
/*jslint regexp: true */
/*global require, XMLHttpRequest, ActiveXObject,
define, window, process, Packag... | JavaScript |
/*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undef... | JavaScript |
/*!
* XRegExp-All 3.0.0-pre
* <http://xregexp.com/>
* Steven Levithan © 2012 MIT License
*/
// Module systems magic dance
;(function(definition) {
// Don't turn on strict mode for this function, so it can assign to global
var self;
// RequireJS
if (typeof define === 'function') {
... | JavaScript |
/** vim: et:ts=4:sw=4:sts=4
* @license RequireJS 2.1.8 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/
//Not using strict: uneven strict support in browsers, #392, and causes
//problems with... | JavaScript |
// Underscore.js 1.4.4
// ===================
// > http://underscorejs.org
// > (c) 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
// > Underscore may be freely distributed under the MIT license.
// Baseline setup
// --------------
(function() {
// Establish the root object, `window` in the browser, or `... | JavaScript |
/*!
* jQuery Mobile 1.3.2
* Git HEAD hash: 528cf0e96940644ea644096bfeb913ed920ffaef <> Date: Fri Jul 19 2013 22:17:57 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory ... | JavaScript |
load('WebContent/js-xlsx/jszip.js');
load('WebContent/js-xlsx/xlsx.js');
load('WebContent/XRegExp-All-3.0.0-pre-2013-08-27.js');
load('WebContent/underscore.js');
load('WebContent/XLSXConverter.js');
function removeEmptyStrings(rObjArr){
var outArr = [];
_.each(rObjArr, function(row){
var outRow = Objec... | JavaScript |
/*
* Copyright (C) 2013 University of Washington
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | JavaScript |
// Underscore.js 1.4.4
// http://underscorejs.org
// (c) 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
// Underscore may be freely distributed under the MIT license.
(function() {
// Baseline setup
// --------------
// Establish the root object, `window` in the browser, or `global` on... | JavaScript |
var JSZip = function(data, options) {
this.files = {};
this.root = "";
if (data) {
this.load(data, options);
}
};
JSZip.signature = {
LOCAL_FILE_HEADER: "PK",
CENTRAL_FILE_HEADER: "PK",
CENTRAL_DIRECTORY_END: "PK",
ZIP64_CENTRAL_DIRECTORY_LOCATOR: "PK",
ZIP64_CENTRAL... | JavaScript |
/* vim: set ts=2: */
/*jshint eqnull:true */
/* Spreadsheet Format -- jump to XLSX for the XLSX code */
var SSF = (function() {
var SSF = {};
String.prototype.reverse=function(){return this.split("").reverse().join("");};
var _strrev = function(x) { return String(x).reverse(); };
function fill(c,l) { return new Array(... | JavaScript |
/*!
* XRegExp-All 3.0.0-pre
* <http://xregexp.com/>
* Steven Levithan © 2012 MIT License
*/
// Module systems magic dance
;(function(definition) {
// Don't turn on strict mode for this function, so it can assign to global
var self;
// RequireJS
if (typeof define === 'function') {
... | JavaScript |
/*!
* jQuery Autocompleter
* jquery.autocomplete.js
* http://code.google.com/p/jquery-autocomplete/
* Copyright 2011, Dylan Verheul
* Licensed under the MIT license
*/
(function($) {
"use strict";
/**
* Default settings for options
*/
var defaultOptions = {
inputClass: 'acInput',
... | JavaScript |
$(document).ready(function () {
"use strict";
var $input1;
module("Setup jQuery, DOM and autocompleter");
test("Create INPUT tag", function() {
$input1 = $('<input type="text" id="input1">');
$('#qunit-fixture').append($input1);
$input1 = $("#input1");
equal($input1.at... | JavaScript |
var isEditClicked = 0;
$(document).ready(function () {
$('#accountSettingsContainer').hide();
$('.placeholderMenuItem_Clicked').removeClass('placeholderMenuItem_Clicked');
$('#menuDashboard').attr('class', 'placeholderMenuItem_Clicked');
$('.button').click(function () {
$('#dialog-ove... | JavaScript |
$(document).ready(function () {
$('.placeholderMenuItem_Clicked').removeClass('placeholderMenuItem_Clicked');
$('#menuComplaints').attr('class', 'placeholderMenuItem_Clicked');
});
function fnRegisterComplaint() {
var msg = '';
var opts = { 'AlertText': msg, 'OKTxt': 'With User ID', 'CancelTxt': ... | JavaScript |
/*
Created by : Dipin Kumar Krishnan
Description : This js contains the jQuery version on the predictive search. This files used in Site Themes.
*/
var psS_TimeOut_PSChangeLoc; //This is for time out
var changeLocation_PredictiveSelectedId; // which one is selected
var mySearchAjax;
var mySearchAjaxPma... | JavaScript |
$(document).ready(function () {
$('.placeholderMenuItem_Clicked').removeClass('placeholderMenuItem_Clicked');
$('#menuLogComplaint').attr('class', 'placeholderMenuItem_Clicked');
}); | JavaScript |
function fnUserLogin() {
var userid = $('#txtUsername').val();
var password = $('#txtPassword').val();
//alert(userid + " " + password);
if (userid != '' && password != '') {
var params = { "usder": userid, "pass": password }
var containerDIV = $('.adminColorButton');
var... | JavaScript |
function saveComplaint() {
var compid = genDynmID();
var cusName = $('#txtCustomerName').val();
var cusAddress = $('#txtCusAddress').val();
var cusRoute = $('#txtRoute').val();
var cusLocation = $('#txtLocation').val();
var cusLandmark = $('#txtLandmark').val();
var cusState = $('#tx... | JavaScript |
$(document).ready(function () {
var cusid = getUrlVars()["c"];
getCusData(cusid);
});
function getCusData(cusid) {
if (cusid.length != 0) {
var params = { 'cusid': cusid }
var containerDIV = $('#addBrandLoadingGif');
var opts = { 'isLoadingGif': true, 'container': contai... | JavaScript |
function fnSearchCusInfo() {
//alert("Searching..");
var cusid = $('#txtSearchCusID').val();
var cusname = $('#txtSearchCusNme').val();
var cusmob = $('#txtSearchCusMobile').val();
var amcid = '';
var cusmail = '';
window.location.href = "../pages/search.aspx?cid=" + cusid + "&cnme="... | JavaScript |
var cusid = null;
var selIssueID = null;
function loadCusDetails(obj) {
//alert($(obj).attr('cusid'));
cusid = $(obj).attr('cusid');
window.location.href = "../pages/customerdetails.aspx?cid=" + cusid;
}
function fnCusDetailsBackClick() {
window.location.href = "../pages/customer.aspx";
}
f... | JavaScript |
var selID = "";
//$(document).ready(function () {
// loadTechnicians();
//})
function fnLoadAddUser() {
$('#formCustomerInfo').show();
$('#formCustomerInfo').dialog({
width: 500,
modal: true,
title: "Add New User",
open: function () {
$('#txtUserEma... | JavaScript |
function SearchByCustomer(obj) {
//alert("customer");
$("#divSearchCustomerInfo").show();
$("#divSearchBillInfo").hide();
$("#divSearchAMCInfo").hide();
$(".tabItemSelected").removeClass("tabItemSelected").addClass("dashboardSearchTabsGray");
$(obj).attr("class", "tabItemSelected");
}
f... | JavaScript |
var chkCounter = 0;
function loadGeneralSettings() {
var parentDiv = $('#ucSettingsContainer');
var moduleName = "../../_modules/settings/ucGeneral.ascx";
var _params = '&z=';
var opts = { 'onsucess': onUCGeneralLoad, 'params': _params };
loadModuler(moduleName, parentDiv, opts);
}
functi... | JavaScript |
/*
Created by : Dipin Kumar Krishnan
Description : This js contains the jQuery version on the predictive search. This files used in Site Themes.
*/
var psS_TimeOut_PSChangeLoc; //This is for time out
var changeLocation_PredictiveSelectedId; // which one is selected
var mySearchAjax;
var mySearchAjaxPma... | JavaScript |
var cGCusID = 0;
var cGSaleID = 0;
var cGAmcID = 0;
var isWizzard = 0;
$(document).ready(function () {
var mainContainer = $('#addCustomerWizzard');
cGCusID = $('input[type=hidden][id*=hidCusGuid]').val();
clearForm(mainContainer);
$('.placeholderMenuItem_Clicked').removeClass('placeholderMen... | JavaScript |
/** String utilities****/
function encode(decodedString) {
return encodeURIComponent(decodedString);
}
function decode(encodedString) {
return decodeURIComponent(encodedString.replace(/\+/g, " "));
}
String.prototype.trim = function () { return this.replace(/^\s+|\s+$/g, ''); }
/****Helper method... | JavaScript |
/*
*
* TableSorter 2.0 - Client-side table sorting with ease!
* Version 2.0.5b
* @requires jQuery v1.2.3
*
* Copyright (c) 2007 Christian Bach
* Examples and docs at: http://tablesorter.com
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu... | JavaScript |
var objAjax = null;
var isScrolled = null;
var preSearchThm = 1;
/** String utilities****/
function encode(decodedString) {
return encodeURIComponent(decodedString);
}
function decode(encodedString) {
return decodeURIComponent(encodedString.replace(/\+/g, " "));
}
String.prototype.trim = functi... | JavaScript |
; (function ($) {
/*******************************************************************************************/
// jquery.pajinate.js - version 0.4
// A jQuery plugin for paginating through any number of DOM elements
//
// Copyright (c) 2010, Wes Nolte (http://wesnolte.com)
// Licensed un... | JavaScript |
/**
* @summary DataTables
* @description Paginate, search and sort HTML tables
* @version 1.9.0
* @file jquery.dataTables.js
* @author Allan Jardine (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
*
* @copyright Copyright 2008-2012 Allan Jardine, all rights reserved.
*
* ... | JavaScript |
/*-------------------------------------------------
Quick Pager jquery plugin
Copyright (C) 2011 by Dan Drayne
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restricti... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.