code
stringlengths
1
2.08M
language
stringclasses
1 value
// ** I18N // Calendar DA language // Author: Michael Thingmand Henriksen, <michael (a) thingmand dot dk> // Encoding: any // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the answer to a real internationalized world. ...
JavaScript
// ** I18N // Calendar big5-utf8 language // Author: Gary Fu, <gary@garyfu.idv.tw> // Encoding: utf8 // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the answer to a real internationalized world. Also please // inclu...
JavaScript
/* Copyright Mihai Bazon, 2002, 2003 | http://dynarch.com/mishoo/ * --------------------------------------------------------------------------- * * The DHTML Calendar * * Details and latest version at: * http://dynarch.com/mishoo/calendar.epl * * This script is distributed under the GNU Lesser General Public...
JavaScript
var Validator = { Require : /.+/, Email : /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/, Phone : /^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}(\-\d{1,4})?$/, Mobile : /^((\(\d{2,3}\))|(\d{3}\-))?13\d{9}$/, Url : /^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>...
JavaScript
/* * jQuery UI Multiselect * * Authors: * Michael Aufreiter (quasipartikel.at) * Yanick Rochon (yanick.rochon[at]gmail[dot]com) * * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://www.quasipartikel.at/multiselect/ * * * Depends: * ui.core.js * ui.sortab...
JavaScript
/* --- BoxOver --- /* --- v 2.1 17th June 2006 By Oliver Bryant with help of Matthew Tagg http://boxover.swazz.org */ if (typeof document.attachEvent!='undefined') { window.attachEvent('onload',initboxOver); document.attachEvent('onmousemove',moveMouse); document.attachEvent('onclick',checkMove); } else { ...
JavaScript
function addVisit(url,id){ $.ajax({ type: "POST", url: "ajax/addVisit", data: "id="+id, success: function(msg){ } }); } function addFeedback(name,content){ var url = "ajax/addFeedback"; var param = {}; param.name = name; param.content = content; $.ajax({ type: "POST", ...
JavaScript
/* * ContextMenu - jQuery plugin for right-click context menus * * Author: Chris Domigan * Contributors: Dan G. Switzer, II * Parts of this plugin are inspired by Joern Zaefferer's Tooltip plugin * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http:/...
JavaScript
/* * jQuery UI Multiselect * * Authors: * Michael Aufreiter (quasipartikel.at) * Yanick Rochon (yanick.rochon[at]gmail[dot]com) * * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://www.quasipartikel.at/multiselect/ * * * Depends: * ui.core.js * ui.sortab...
JavaScript
/* Plugin: searchFilter v1.2.9 * Author: Kasey Speakman (kasey@cornerspeed.com) * License: Dual Licensed, MIT and GPL v2 (http://www.gnu.org/copyleft/gpl.html) * * REQUIREMENTS: * jQuery 1.3+ (http://jquery.com/) * A Themeroller Theme (http://jqueryui.com/themeroller/) * * SECUR...
JavaScript
;(function ($) { /* * jqGrid 3.6 - jQuery Grid * Copyright (c) 2008, Tony Tomov, tony@trirand.com * Dual licensed under the MIT and GPL licenses * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * Date: 2009-11-08 */ $.jgrid = $.jgrid || {}; $.extend($.jgrid,{ htmlDeco...
JavaScript
;(function($){ /** * jqGrid extension * Paul Tiseo ptiseo@wasteconsultants.com * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid.extend({ getPostData : function(){ var $t = this[0]; if(!$t.grid) { return...
JavaScript
/* Transform a table to a jqGrid. Peter Romianowski <peter.romianowski@optivo.de> If the first column of the table contains checkboxes or radiobuttons then the jqGrid is made selectable. */ // Addition - selector can be a class or id function tableToGrid(selector, options) { $(selector).each(function() { if(this....
JavaScript
;(function($){ /** * jqGrid extension for SubGrid Data * Tony Tomov tony@trirand.com * http://trirand.com/blog/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid.extend({ setSubGrid : function () { return this....
JavaScript
/* * jqModal - Minimalist Modaling with jQuery * (http://dev.iceburg.net/jquery/jqmodal/) * * Copyright (c) 2007,2008 Brice Burgess <bhb@iceburg.net> * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * $Version: ...
JavaScript
;(function($) { /* ** * jqGrid extension - Tree Grid * Tony Tomov tony@trirand.com * http://trirand.com/blog/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid.extend({ setTreeNode : function(rd, row){ retur...
JavaScript
;(function($){ /* ** * jqGrid extension for cellediting Grid Data * Tony Tomov tony@trirand.com * http://trirand.com/blog/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ /** * all events and options here are aded a...
JavaScript
;(function($){ /** * jqGrid extension for form editing Grid Data * Tony Tomov tony@trirand.com * http://trirand.com/blog/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ var rp_ge = null; $.jgrid.extend({ searchGrid...
JavaScript
;(function($){ /** * jqGrid extension for custom methods * Tony Tomov tony@trirand.com * http://trirand.com/blog/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid.extend({ getColProp : function(colname){ va...
JavaScript
/* * jqDnR - Minimalistic Drag'n'Resize for jQuery. * * Copyright (c) 2007 Brice Burgess <bhb@iceburg.net>, http://www.iceburg.net * Licensed under the MIT License: * http://www.opensource.org/licenses/mit-license.php * * $Version: 2007.08.19 +r2 */ (function($){ $.fn.jqDrag=function(h){return i(this,h,'d');}...
JavaScript
/* * jqGrid common function * Tony Tomov tony@trirand.com * http://trirand.com/blog/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ // Modal functions var showModal = function(h) { h.w.show(); }; var closeModal = fu...
JavaScript
/* The below work is licensed under Creative Commons GNU LGPL License. Original work: License: http://creativecommons.org/licenses/LGPL/2.1/ Author: Stefan Goessner/2006 Web: http://goessner.net/ Modifications made: Version: 0.9-p5 Description: Restructured code, JSLint validated (no s...
JavaScript
;(function($){ /** * jqGrid extension for manipulating columns properties * Piotr Roznicki roznicki@o2.pl * http://www.roznicki.prv.pl * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid.extend({ setColumns : func...
JavaScript
;(function($){ /* * jqGrid extension for constructing Grid Data from external file * Tony Tomov tony@trirand.com * http://trirand.com/blog/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid.extend({ ...
JavaScript
/* ** * formatter for values but most of the values if for jqGrid * Some of this was inspired and based on how YUI does the table datagrid but in jQuery fashion * we are trying to keep it as light as possible * Joshua Burnett josh@9ci.com * http://www.greenbill.com * * Changes from Tony Tomov tony@trirand.com ...
JavaScript
;(function($){ /** * jqGrid extension for manipulating Grid Data * Tony Tomov tony@trirand.com * http://trirand.com/blog/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid.extend({ //Editing editRow : function...
JavaScript
// This file should be used if you want to debug function jqGridInclude() { var pathtojsfiles = "js/"; // need to be ajusted // set include to false if you do not want some modules to be included var modules = [ { include: true, incfile:'i18n/grid.locale-en.js'}, // jqGrid translation ...
JavaScript
;(function($){ /* ** * jqGrid addons using jQuery UI * Author: Mark Williams * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * depends on jQuery UI sortable **/ if ($.browser.msie && $.browser.version==8) { $.expr[":"].h...
JavaScript
;(function($){ /** * jqGrid Norwegian Translation * KEM * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = {}; $.jgrid.defaults = { recordtext: "Rad(er)", loadtext: "Laster...", pgtext : "/" }; $.jgrid.search...
JavaScript
;(function($){ /** * jqGrid German Translation * Version 1.0.0 (developed for jQuery Grid 3.3.1) * Olaf Klöppel opensource@blue-hit.de * http://blue-hit.de/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = {...
JavaScript
;(function($){ /** * jqGrid Persian Translation * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "View {0} - {1} of {2}", emptyrecords: "No records to view", loadtext: "بارگ...
JavaScript
;(function($){ /** * jqGrid Greek (el) Translation * Alex Cicovic * http://www.alexcicovic.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "View {0} - {1} of {2}", empty...
JavaScript
;(function($){ /** * jqGrid Ukrainian Translation v1.0 02.07.2009 * Sergey Dyagovchenko * http://d.sumy.ua * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "Перегляд {0} - {1} з {...
JavaScript
;(function($){ /** * jqGrid Czech Translation * Pavel Jirak pavel.jirak@jipas.cz * http://trirand.com/blog/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "View {0} - {1} of {2...
JavaScript
;(function($){ /** * jqGrid Japanese Translation * OKADA Yoshitada okada.dev@sth.jp * http://trirand.com/blog/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "View {0} - {1} of...
JavaScript
;(function($){ /** * jqGrid English Translation * Tony Tomov tony@trirand.com * http://trirand.com/blog/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "View {0} - {1} of {2}",...
JavaScript
;(function($){ /** * jqGrid Russian Translation v1.0 02.07.2009 (based on translation by Alexey Kanaev v1.1 21.01.2009, http://softcore.com.ru) * Sergey Dyagovchenko * http://d.sumy.ua * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/license...
JavaScript
;(function($){ /** * jqGrid Bulgarian Translation * Tony Tomov tony@trirand.com * http://trirand.com/blog/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "{0} - {1} от {2}", ...
JavaScript
;(function($){ /** * jqGrid (fi) Finnish Translation * Jukka Inkeri awot.fi * http://awot.fi * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "View {0} - {1} of {2}", emptyr...
JavaScript
;(function($){ /** * jqGrid Romanian Translation * Alexandru Emil Lupu contact@alecslupu.ro * http://www.alecslupu.ro/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "Vizualiza...
JavaScript
;(function($){ /** * jqGrid Swedish Translation * Anders Nyberg anders.nyberg@alecta.com * http://wwww.alecta.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "post(er)", ...
JavaScript
;(function($){ /** * jqGrid French Translation * Tony Tomov tony@trirand.com * http://trirand.com/blog/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "Enregistrements {0} - {1...
JavaScript
;(function($){ /** * jqGrid Spanish Translation * Traduccion jqGrid en Español por Yamil Bracho * Traduccion corregida y ampliada por Faserline, S.L. * http://www.faserline.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl....
JavaScript
;(function($){ /** * jqGrid Catalan Translation * Traducció jqGrid en Catatà per Faserline, S.L. * http://www.faserline.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "Mostr...
JavaScript
;(function($){ /** * jqGrid Italian Translation * Vincenzo Solomita vincenzosolomita@gmail.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "View {0} - {1} of {2}", emptyr...
JavaScript
;(function($){ /** * jqGrid Polish Translation * Łukasz Schab * http://FreeTree.pl * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "Pokaż {0} - {1} z {2}", emptyrecords: "Br...
JavaScript
;(function($){ /** * jqGrid Turkish Translation * Erhan Gündoğan (erhan@trposta.net) * http://blog.zakkum.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "{0}-{1} listeleniyo...
JavaScript
;(function($){ /** * jqGrid Danish Translation * Kaare Rasmussen kjs@jasonic.dk * http://jasonic.dk/blog * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "View {0} - {1} of {2}",...
JavaScript
(function(a) { a.jgrid = { defaults: { recordtext: "regels {0} - {1} van {2}", emptyrecords: "Geen data gevonden.", loadtext: "laden...", pgtext: "pagina {0} van {1}" }, search: { caption: "Zoeken...", ...
JavaScript
;(function($){ /** * jqGrid Brazilian-Portuguese Translation * Sergio Righi sergio.righi@gmail.com * http://curve.com.br * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "Ver {0} ...
JavaScript
;(function($){ /** * jqGrid Hebrew Translation * Shuki Shukrun shukrun.shuki@gmail.com * http://trirand.com/blog/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "מציג {0} - {1}...
JavaScript
jQuery("#listdnd").tableDnD({scrollAmount:0}); jQuery("#listdnd").jqGrid({ url:'server.php?q=1', datatype: "xml", colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'], colModel:[ {name:'id',index:'id', width:55}, {name:'invdate',index:'invdate', width:90}, {name:'name',index:...
JavaScript
/** * TableDnD plug-in for JQuery, allows you to drag and drop table rows * You can set up various options to control how the system will work * Copyright (c) Denis Howlett <denish@isocra.com> * Licensed like jQuery, see http://docs.jquery.com/License. * * Configuration options: * * onDragStyle * This is ...
JavaScript
Jaml.register('AjaxDataTable', function(args) { form({id: args.form_id, style: "width:100%;height:100%;", onsubmit:"return false;"}, table({style: "width:100%;height:100%;"}, tr( td({style:"height:12px; white-space:nowrap;"}, input({id: 'url_' + args.id, style: "width:90%;", value:"/DB/GetList?list=orde...
JavaScript
Jaml.register('CalendarChooserWindow', function(args) { var callOpFunc = "CalendarChooserSetDate('" + args.id + "','"; var callOp = function(op){return callOpFunc + op + "')";} var cbtn = function() {return input({type:"button"});} form({id: args.form_id, style: "width:100%;height:100%;", onsubmit:"return false;"},...
JavaScript
Jaml.register('GLTransationsEditWindow', function(args) { form({id: args.form_id, style: "width:100%;height:100%;", onsubmit:"return false;"}, table({style: "width:100%;height:100%", cls: "editForm"}, tr({style:"height:2%;"}, td(_tr("Description")), td({colspan:2},_tr("Date")) ), tr({style:"height:...
JavaScript
Jaml.register('OrderTypesListEdit', function(args) { var newIdBy2 = dad.newIdBy2calls; form({action: "/DB/Action", method: "post", id: args.form_id, style: "width:100%;height:100%;"}, table({style: "width:100%;height:100%;"}, args.data_table, tr( td({'class': "editBox", style: "width:100%;"}, fieldse...
JavaScript
/** * http://www.openjs.com/scripts/events/keyboard_shortcuts/ * Version : 2.01.B * By Binny V A * License : BSD */ dad.shortcut = { 'all_shortcuts':{},//All the shortcuts are stored in this array 'add': function(shortcut_combination,callback,opt) { //Provide a set of default options var default_options = { ...
JavaScript
dad = {} function $id(id){return document.getElementById(id);} dad.detectEnvironment = function () { var n = navigator; var ua = n.userAgent; var av = n.appVersion; dad.isOpera = (ua.indexOf("Opera") > -1); dad.isKhtml = (av.indexOf("Konqueror") > -1) || (av.indexOf("Safari") > -1); dad.isSafari = (av...
JavaScript
var input = { right:false, up:false, left:false, down:false, quit:false, info:false, play:false, jump:false }; //edit what ever you want with this var triggerElementID = null; var fingerCount = 0; var startX = 0; var startY = 0; var curX = 0; var curY = 0; var deltaX = 0; //have not found a use for delta but I...
JavaScript
/* Tagged netstrings implementation tnetstrings.org (c) 2011 Alexander Solovyov under terms of MIT License */ var otnetstrings = { parsePayload: function(data) { if (!data) { throw "Invalid data to parse, it's empty."; } var idx = data.indexOf(":"); if (idx === -...
JavaScript
Jaml.register('SalesTaxListEdit', function(args) { form({action: "/DB/Action", method: "post", id: args.form_id, style: "width:100%;height:100%;"}, table({style: "width:100%;height:100%;"}, args.data_table, tr( td({'class': "editBox", style: "width:100%;"}, fieldset(legend(_tr("Edit Form")), tab...
JavaScript
Jaml.register('GroupsListEdit', function(args) { var newIdBy2 = dad.newIdBy2calls; form({action: "/DB/Action", method: "post", id: args.form_id, style: "width:100%;height:100%;"}, table({style: "width:100%;height:100%;"}, tr(td(div({id:args.div_tree_id, 'class': "divTree", style: "width:99%;overflow:auto;height:...
JavaScript
/* * * Find more about this plugin by visiting * http://miniapps.co.uk/ * * Copyright (c) 2012 Alex Gibson, http://miniapps.co.uk/ * Released under MIT license * http://miniapps.co.uk/license/ * */ (function (window, document) { function Tap(el) { this.element = typeof el === 'object' ? el : document.getE...
JavaScript
Jaml.register('PaymentsEditWindow', function(args) { form({id: args.form_id, style: "width:100%;height:100%;", onsubmit:"return false;"}, table({style: "width:100%;height:100%", cls: "editForm"}, tr({style:"height:2%;"}, td(_tr("Payment #")), td(input({type: "text", name: "pmt_id", size: 10})), td(_t...
JavaScript
/** * @class Jaml * @author Ed Spencer (http://edspencer.net) * Jaml is a simple JavaScript library which makes HTML generation easy and pleasurable. * Examples: http://edspencer.github.com/jaml * Introduction: http://edspencer.net/2009/11/jaml-beautiful-html-generation-for-javascript.html */ Jaml = function() { ...
JavaScript
var LengthEncodeData = (function(){ var IBYTE1 = 255; var IBYTE2 = (255*255); var IBYTE3 = (255*255*255); var IBYTE4 = (255*255*255*255); var SIZE1BYTE = 250; var SIZE2BYTE = 251; var SIZE3BYTE = 252; var SIZE4BYTE = 253; var SLSMARK = 254; var SLSEND = 255; this.sls2callable = function(sls, sls_size, use...
JavaScript
Jaml.register('PaymentTypesListEdit', function(args) { form({action: "/DB/Action", method: "post", id: args.form_id, style: "width:100%;height:100%;"}, table({style: "width:100%;height:100%;"}, args.data_table, tr( td({'class': "editBox", style: "width:100%;"}, fieldset(legend(_tr("Edit Form")), ...
JavaScript
var testEl,position=0; window.onload = function () { testEl = $id('testElement'); testEl.onmousedown = testEl.ontouchstart = startDrag; var divs = testEl.getElementsByTagName('div'); for (var i=0;i<divs.length;i+=1) { divs[i].style.left = position + 'px'; position += divs[i].offsetWidth + 10; } } var scroll...
JavaScript
Jaml.register('GLChartEditWindow', function(args) { form({action: "/DB/Action", method: "post", onsubmit:"return false;", id: args.form_id, style: "width:100%;height:100%;"}, table({style: "width:100%;height:100%;", cls: "editForm"}, tr( td( table( tr( td(_tr("ID")),td(_tr("Budget")),td(...
JavaScript
Jaml.register('GLGroupsListEdit', function(args) { form({action: "/DB/Action", method: "post", id: args.form_id, style: "width:100%;height:100%;"}, table({style: "width:100%;height:100%;"}, args.data_table, tr( td({'class': "editBox", style: "width:100%;"}, fieldset(legend(_tr("Edit Form")), tab...
JavaScript
dad.barChart = function() { this.init = function(elm) { if(typeof elm == 'string') elm = document.getElementById(elm); this.canvas = elm; } this.canvas = null; this.getContext = function() { return this.canvas.getContext('2d'); } this.label = "Bar Chart"; this...
JavaScript
Jaml.register('ProductEditWindow', function(args) { form({action: "/DB/Action", method: "post", onsubmit:"return false;", id: args.form_id, style: "width:100%;height:100%;"}, table({style: "width:100%;height:100%;", cls: "editForm"}, tr( td({style: "width:12px;"}, table({style: "width:100%;"}, ...
JavaScript
Jaml.register('OrderEditWindow', function(args) { dad.rightClickMenu = "rightClickMenu" + args.newId; div({id: dad.rightClickMenu, style:"display:none"}, table( tr(th("Menu")), tr(td("Copy")), tr(td("Paste")) ) ), form({id: args.form_id, style: "width:100%;height:100%;", onsubmit:"return false;"}, t...
JavaScript
function newMainOrdersListSearchWindow(otype){ //dad.loadScript('orders.js'); if(window.newOrdersListSearchWindow) newOrdersListSearchWindow(otype); } function newMainPaymentsListSearchWindow(otype){ //dad.loadScript('products.js'); if(window.newPaymentsListSearchWindow) newPaymentsListSearchWindow(otype); } func...
JavaScript
Jaml.register('EntityEditWindow', function(args) { form({action: "/DB/Action", method: "post", onsubmit:"return false;", id: args.form_id, style: "width:100%;height:100%;"}, table({style: "width:100%;height:100%;", cls: "editForm"}, tr( td({style: "height:12px;"}, table({style: "width:100%;"}, ...
JavaScript
// Copyright 2006 Google Inc. // // 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 agreed to in wr...
JavaScript
Jaml.register('WarrantyTypesListEdit', function(args) { form({action: "/DB/Action", method: "post", id: args.form_id, style: "width:100%;height:100%;"}, table({style: "width:100%;height:100%;"}, args.data_table, tr( td({'class': "editBox", style: "width:100%;"}, fieldset(legend(_tr("Edit Form")), ...
JavaScript
Jaml.register('MeasureUnitsListEdit', function(args) { form({action: "/DB/Action", method: "post", id: args.form_id, style: "width:100%;height:100%;"}, table({style: "width:100%;height:100%;"}, args.data_table, tr( td({'class': "editBox", style: "width:100%;"}, fieldset(legend(_tr("Edit Form")), ...
JavaScript
var etnetstrings = (function () { this.parse = function(data) { return this.parsePrivate(data, false, 0, []); } this.parsePrivate = function(data, expected, offset, outArray) { var result; var idx = -1; var max_len = data.length - offset; //9 is maximun integer digits allowed ...
JavaScript
Jaml.register('2TRDataTable', function(args) { tr( td({colspan:3, style: "width:100%; height:10px;"}, //no height for firefox div({'class': "divTable", style: "width:100%;overflow:auto;"}, table({id: args.table_header_id, 'class': "wrappedTable"}, thead( tr( th( input({type: "checkbox", o...
JavaScript
Jaml.register('ListSearch', function(args) { form({id: args.form_id, style: "width:100%;height:100%;", onsubmit:"return false;"}, table({style: "width:100%;height:100%;"}, tr( td({style:"height:12px; white-space:nowrap;"}, select({id: 'group_filter' + args.id, name:"group_id", style: "width:100%;"}) ...
JavaScript
/* Copyright 2010 Google Inc. 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 agreed to in writing,...
JavaScript
/* Copyright 2010 Google Inc. 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 agreed to in writing,...
JavaScript
/** * Older browsers detection */ (function($) { // Change these values to fit your needs if ( ($.browser.msie && parseFloat($.browser.version) < 7) || // IE 6 and lower ($.browser.mozilla && parseFloat($.browser.version) < 1.9) || // Firefox 2 and lower ($.browser.opera && parseFloat($.browser...
JavaScript
/** * The accessibleList plugin provides two transformations to improve lists display: * - truncate list to a given length, and add a 'more' button to reveal the whole list * - paginate long lists so they are easier to read * Each effect can be used without the other, or simultaneously */ (function($) { ...
JavaScript
/** * Template JS for Internet Explorer 8 and lower - mainly workaround for missing selectors */ (function($) { // Standard template setup for IE $.fn.addTemplateSetup(function() { // Clean existing classes this.find('.first-child').removeClass('first-child'); this.find('.last-child').removeClass...
JavaScript
/** * Template JS for standard pages */ (function($) { /** * List of functions required to enable template effects/hacks * @var array */ var templateSetup = new Array(); /** * Add a new template function * @param function func the function to be called on a jQuery object * @param bool...
JavaScript
/** * Modal window extension */ (function($) { /** * Opens a new modal window * @param object options an object with any of the following options * @return object the jQuery object of the new window */ $.modal = function(options) { var settings = $.extend({}, $.modal.defaults, options), ...
JavaScript
/* http://keith-wood.name/datepick.html Swiss French localisation for jQuery Datepicker. Written by Martin Voelkle (martin.voelkle@e-tc.ch). */ (function($) { $.datepick.regional['fr-CH'] = { monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', 'Juillet','Août','Septembre','Octobre','Novembre...
JavaScript
/* http://keith-wood.name/datepick.html Icelandic localisation for jQuery Datepicker. Written by Haukur H. Thorsson (haukur@eskill.is). */ (function($) { $.datepick.regional['is'] = { monthNames: ['Jan&uacute;ar','Febr&uacute;ar','Mars','Apr&iacute;l','Ma&iacute','J&uacute;n&iacute;', 'J&uacute;l&iacut...
JavaScript
/* http://keith-wood.name/datepick.html Simplified Chinese localisation for jQuery Datepicker. Written by Cloudream (cloudream@gmail.com). */ (function($) { $.datepick.regional['zh-CN'] = { monthNames: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'], monthNamesShort: ['一','二','三','四...
JavaScript
/* http://keith-wood.name/datepick.html Lithuanian localisation for jQuery Datepicker. Written by Arturas Paleicikas <arturas@avalon.lt> */ (function($) { $.datepick.regional['lt'] = { monthNames: ['Sausis','Vasaris','Kovas','Balandis','Gegužė','Birželis', 'Liepa','Rugpjūtis','Rugsėjis','Spalis','Lapkr...
JavaScript
/* http://keith-wood.name/datepick.html Vietnamese localisation for jQuery Datepicker. Translated by Le Thanh Huy (lthanhhuy@cit.ctu.edu.vn). */ (function($) { $.datepick.regional['vi'] = { monthNames: ['Tháng Một', 'Tháng Hai', 'Tháng Ba', 'Tháng Tư', 'Tháng Năm', 'Tháng Sáu', 'Tháng Bảy', 'Tháng Tám...
JavaScript
/* http://keith-wood.name/datepick.html Swiss-German localisation for jQuery Datepicker. Written by Douglas Jose & Juerg Meier. */ (function($) { $.datepick.regional['de-CH'] = { monthNames: ['Januar','Februar','März','April','Mai','Juni', 'Juli','August','September','Oktober','November','Dezember'], ...
JavaScript
/* http://keith-wood.name/datepick.html English UK localisation for jQuery Datepicker. Written by Stuart. */ (function($) { $.datepick.regional['en-GB'] = { monthNames: ['January','February','March','April','May','June', 'July','August','September','October','November','December'], monthNamesShort:...
JavaScript
/* http://keith-wood.name/datepick.html Dutch/Belgium localisation for jQuery Datepicker. Written by Mathias Bynens <http://mathiasbynens.be/> */ (function($) { $.datepick.regional['nl-BE'] = { monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktob...
JavaScript
/* http://keith-wood.name/datepick.html Indonesian localisation for jQuery Datepicker. Written by Deden Fathurahman (dedenf@gmail.com). */ (function($) { $.datepick.regional['id'] = { monthNames: ['Januari','Februari','Maret','April','Mei','Juni', 'Juli','Agustus','September','Oktober','Nopember','Dese...
JavaScript
/* http://keith-wood.name/datepick.html Basque localisation for jQuery Datepicker. Karrikas-ek itzulia (karrikas@karrikas.com) */ (function($){ $.datepick.regional['eu'] = { monthNames: ['Urtarrila','Otsaila','Martxoa','Apirila','Maiatza','Ekaina', 'Uztaila','Abuztua','Iraila','Urria','Azaroa','Abendu...
JavaScript
/* http://keith-wood.name/datepick.html Slovak localisation for jQuery Datepicker. Written by Vojtech Rinik (vojto@hmm.sk). */ (function($) { $.datepick.regional['sk'] = { monthNames: ['Január','Február','Marec','Apríl','Máj','Jún', 'Júl','August','September','Október','November','December'], monthN...
JavaScript