blob: d758f2f602ba7ab73576e6a2a6416599fc8d691c [file] [log] [blame]
Rushabh Mehta66ac2b02011-09-05 18:43:09 +05301<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<head>
3 <meta charset="utf-8">
4 <title>ERPNext</title>
5 <meta name="author" content="">
Rushabh Mehtad6840b22012-01-30 14:00:46 +05306 <script type="text/javascript">window._version_number="249";
Rushabh Mehta843db592012-01-20 17:43:37 +05307
8/*
9* lib/js/wn/class.js
10*/
Rushabh Mehta843db592012-01-20 17:43:37 +053011
Rushabh Mehtad6840b22012-01-30 14:00:46 +053012(function(){var initializing=false,fnTest=/xyz/.test(function(){xyz;})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(prop){var _super=this.prototype;initializing=true;var prototype=new this();initializing=false;for(var name in prop){prototype[name]=typeof prop[name]=="function"&&typeof _super[name]=="function"&&fnTest.test(prop[name])?(function(name,fn){return function(){var tmp=this._super;this._super=_super[name];var ret=fn.apply(this,arguments);this._super=tmp;return ret;};})(name,prop[name]):prop[name];}
13function Class(){if(!initializing&&this.init)
14this.init.apply(this,arguments);}
15Class.prototype=prototype;Class.prototype.constructor=Class;Class.extend=arguments.callee;return Class;};})();
Rushabh Mehta843db592012-01-20 17:43:37 +053016/*
17* lib/js/wn/provide.js
18*/
Rushabh Mehta764fdb92012-01-20 12:07:56 +053019
Rushabh Mehtad1ae0892011-09-06 16:40:11 +053020wn={}
21wn.provide=function(namespace){var nsl=namespace.split('.');var l=nsl.length;var parent=window;for(var i=0;i<l;i++){var n=nsl[i];if(!parent[n]){parent[n]={}}
22parent=parent[n];}}
Rushabh Mehta843db592012-01-20 17:43:37 +053023wn.provide('wn.settings');wn.provide('wn.ui');
24/*
25* lib/js/wn/xmlhttp.js
26*/
27
28wn.xmlhttp={request:function(){if(window.XMLHttpRequest)
Rushabh Mehtad1ae0892011-09-06 16:40:11 +053029return new XMLHttpRequest();else if(window.ActiveXObject)
Rushabh Mehtacbaae202011-09-08 19:07:14 +053030return new ActiveXObject("MsXml2.XmlHttp");},complete:function(req,callback,url){if(req.status==200||req.status==304){callback(req.responseText);}else{alert(url+' request error: '+req.statusText+' ('+req.status+')');}},get:function(url,callback,args,async){if(async===null)async=true;var req=wn.xmlhttp.request();req.onreadystatechange=function(){if(req.readyState==4){wn.xmlhttp.complete(req,callback,url)}}
Rushabh Mehta9b03ec42011-09-15 12:46:07 +053031var sep=((args&&args.indexOf('?'))==-1)?'?':'&';var u=args?(url+sep+args):url;req.open('GET',u,async);req.send(null);if(!async){wn.xmlhttp.complete(req,callback,url)}}}
Rushabh Mehta843db592012-01-20 17:43:37 +053032/*
33* lib/js/wn/versions.js
34*/
35
Rushabh Mehtaa7b3c012012-01-09 16:01:31 +053036wn.versions={check:function(){if(localStorage){if(window._version_number==-1||parseInt(localStorage._version_number)!=parseInt(window._version_number)){localStorage.clear();}
37localStorage.setItem('_version_number',window._version_number);}}}
Rushabh Mehta843db592012-01-20 17:43:37 +053038/*
39* lib/js/wn/assets.js
40*/
41
Rushabh Mehta1e11cb42011-09-14 13:25:10 +053042wn.assets={executed_:{},exists:function(src){if('localStorage'in window&&localStorage.getItem(src))
Rushabh Mehta9b03ec42011-09-15 12:46:07 +053043return true},add:function(src,txt){if('localStorage'in window){localStorage.setItem(src,txt);}},get:function(src){return localStorage.getItem(src);},extn:function(src){if(src.indexOf('?')!=-1){src=src.split('?').slice(-1)[0];}
Rushabh Mehta8c309be2012-01-20 13:47:16 +053044return src.split('.').slice(-1)[0];},load:function(src){var t=src;wn.xmlhttp.get(t,function(txt){wn.assets.add(src,txt);},'q='+Math.floor(Math.random()*1000),false)},execute:function(src){if(!wn.assets.exists(src)){wn.assets.load(src);}
Rushabh Mehtad1ae0892011-09-06 16:40:11 +053045var type=wn.assets.extn(src);if(wn.assets.handler[type]){wn.assets.handler[type](wn.assets.get(src),src);wn.assets.executed_[src]=1;}},handler:{js:function(txt,src){wn.dom.eval(txt);},css:function(txt,src){var se=document.createElement('style');se.type="text/css";if(se.styleSheet){se.styleSheet.cssText=txt;}else{se.appendChild(document.createTextNode(txt));}
Rushabh Mehta8c309be2012-01-20 13:47:16 +053046document.getElementsByTagName('head')[0].appendChild(se);},cgi:function(txt,src){wn.dom.eval(txt)}}}
Rushabh Mehta843db592012-01-20 17:43:37 +053047/*
48* lib/js/wn/require.js
49*/
50
Rushabh Mehtad1ae0892011-09-06 16:40:11 +053051wn.require=function(items){if(typeof items==="string"){items=[items];}
Rushabh Mehta9b03ec42011-09-15 12:46:07 +053052var l=items.length;for(var i=0;i<l;i++){var src=items[i];if(!(src in wn.assets.executed_)){wn.assets.execute(src);}}}
Rushabh Mehta843db592012-01-20 17:43:37 +053053/*
54* lib/js/wn/dom.js
55*/
56
Rushabh Mehtad1ae0892011-09-06 16:40:11 +053057wn.provide('wn.dom');wn.dom.by_id=function(id){return document.getElementById(id);}
58wn.dom.eval=function(txt){var el=document.createElement('script');el.appendChild(document.createTextNode(txt));document.getElementsByTagName('head')[0].appendChild(el);}
59wn.dom.add=function(parent,newtag,className,cs,innerHTML,onclick){if(parent&&parent.substr)parent=wn.dom.by_id(parent);var c=document.createElement(newtag);if(parent)
60parent.appendChild(c);if(className){if(newtag.toLowerCase()=='img')
61c.src=className
62else
63c.className=className;}
64if(cs)wn.dom.css(c,cs);if(innerHTML)c.innerHTML=innerHTML;if(onclick)c.onclick=onclick;return c;}
65wn.dom.css=function(ele,s){if(ele&&s){for(var i in s)ele.style[i]=s[i];};return ele;}
66wn.dom.hide=function(ele){ele.style.display='none';}
67wn.dom.show=function(ele,value){if(!value)value='block';ele.style.display=value;}
Rushabh Mehta843db592012-01-20 17:43:37 +053068/*
69* lib/js/wn/page.js
70*/
71
Rushabh Mehtad1ae0892011-09-06 16:40:11 +053072wn.page={set:function(src){var new_selection=$('.inner div.content[_src="'+src+'"]');if(!new_selection.length){wn.assets.execute(src);new_selection=$('.inner div.content[_src="'+src+'"]');}
73$('.inner .current_page').removeClass('current_page');new_selection.addClass('current_page');var title=$('nav ul li a[href*="'+src+'"]').attr('title')||'No Title'
Rushabh Mehta5ede3e82011-09-08 14:16:34 +053074state=window.location.hash;if(state!=src){window.location.hash=state;}
Rushabh Mehtad1ae0892011-09-06 16:40:11 +053075else{document.title=title;}}}
Rushabh Mehta843db592012-01-20 17:43:37 +053076/*
77* lib/js/lib/json2.js
78*/
79
Rushabh Mehtad1ae0892011-09-06 16:40:11 +053080var JSON;if(!JSON){JSON={};}
81(function(){"use strict";function f(n){return n<10?'0'+n:n;}
82if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+
83f(this.getUTCMonth()+1)+'-'+
84f(this.getUTCDate())+'T'+
85f(this.getUTCHours())+':'+
86f(this.getUTCMinutes())+':'+
87f(this.getUTCSeconds())+'Z':null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
88var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}
89function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
90if(typeof rep==='function'){value=rep.call(holder,key,value);}
91switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
92gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
93v=partial.length===0?'[]':gap?'[\n'+gap+partial.join(',\n'+gap)+'\n'+mind+']':'['+partial.join(',')+']';gap=mind;return v;}
94if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){if(typeof rep[i]==='string'){k=rep[i];v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
95v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
96if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}
97rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
98return str('',{'':value});};}
99if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
100return reviver.call(holder,key,value);}
101text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+
102('0000'+a.charCodeAt(0).toString(16)).slice(-4);});}
103if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}
Rushabh Mehta843db592012-01-20 17:43:37 +0530104throw new SyntaxError('JSON.parse');};}}());
105/*
106* lib/js/core.js
107*/
108
109wn.versions.check();wn.require("lib/js/lib/jquery.min.js");wn.require("lib/js/lib/history/history.min.js");$(document).bind('ready',function(){var base=window.location.href.split('#')[0];$.each($('a[softlink!="false"]'),function(i,v){if(v.href.substr(0,base.length)==base){var path=(v.href.substr(base.length));if(path.substr(0,1)!='#'){v.href=base+'#'+path;}}});if(!wn.settings.no_history&&window.location.hash){wn.page.set(window.location.hash.substr(1));}});</script>
Rushabh Mehta66ac2b02011-09-05 18:43:09 +0530110</head>
111<body>
Rushabh Mehta8c309be2012-01-20 13:47:16 +0530112 <header></header>
Rushabh Mehta66ac2b02011-09-05 18:43:09 +0530113 <div id="startup_div" style="padding: 8px; font-size: 14px;"></div>
Rushabh Mehta66ac2b02011-09-05 18:43:09 +0530114 <!-- Main Starts -->
115 <div id="body_div">
Rushabh Mehta66ac2b02011-09-05 18:43:09 +0530116 <!--static (no script) content-->
Rushabh Mehta8c309be2012-01-20 13:47:16 +0530117 <div class="no_script" style='font-family: Lucida Grande, Verdana, Sans; font-size: 12px'>
Anand Doshi9c6a2932012-01-12 15:18:12 +0530118 Loading...
Rushabh Mehta66ac2b02011-09-05 18:43:09 +0530119 </div>
Rushabh Mehta66ac2b02011-09-05 18:43:09 +0530120 </div>
Rushabh Mehta865c00a2012-01-24 14:33:21 +0530121 <footer></footer>
Rushabh Mehta11c6be02011-09-06 15:50:01 +0530122 <script>wn.require('js/app.js');</script>
Rushabh Mehta32e00cb2011-09-16 16:28:35 +0530123 <div id="dialog_back"></div>
Anand Doshi9c6a2932012-01-12 15:18:12 +0530124</body>