compass-jquery-plugin 0.3.0.beta.21 → 0.3.0.beta.22
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +212 -211
- data/VERSION.yml +5 -5
- data/compass-jquery-plugin.gemspec +25 -2
- data/gem_tasks/jqtouch.rake +221 -201
- data/gem_tasks/jrails.rake +322 -311
- data/lib/compiler.jar +0 -0
- data/lib/jquery/flash_messages.rb +45 -45
- data/lib/jquery/gridify/grid.rb +147 -147
- data/lib/jquery/gridify/grid_column.rb +134 -134
- data/lib/jquery/gridify/grid_finder.rb +223 -211
- data/lib/jquery/gridify/grid_options.rb +279 -279
- data/lib/jquery/gridify/grid_view.rb +435 -436
- data/lib/jquery/gridify.rb +42 -42
- data/templates/dynatree/jquery.dynatree.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-bg.min.js +6 -15
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.min.js +6 -15
- data/templates/jqgrid/i18n/jqgrid/locale-cat.min.js +5 -6
- data/templates/jqgrid/i18n/jqgrid/locale-cn.min.js +5 -8
- data/templates/jqgrid/i18n/jqgrid/locale-cs.min.js +6 -8
- data/templates/jqgrid/i18n/jqgrid/locale-da.min.js +6 -6
- data/templates/jqgrid/i18n/jqgrid/locale-de.min.js +7 -7
- data/templates/jqgrid/i18n/jqgrid/locale-el.min.js +7 -13
- data/templates/jqgrid/i18n/jqgrid/locale-es.min.js +7 -7
- data/templates/jqgrid/i18n/jqgrid/locale-fa.min.js +6 -12
- data/templates/jqgrid/i18n/jqgrid/locale-fr.min.js +7 -7
- data/templates/jqgrid/i18n/jqgrid/locale-gl.min.js +7 -7
- data/templates/jqgrid/i18n/jqgrid/locale-he.min.js +6 -13
- data/templates/jqgrid/i18n/jqgrid/locale-hu.min.js +6 -8
- data/templates/jqgrid/i18n/jqgrid/locale-is.min.js +6 -7
- data/templates/jqgrid/i18n/jqgrid/locale-it.min.js +4 -4
- data/templates/jqgrid/i18n/jqgrid/locale-ja.min.js +5 -10
- data/templates/jqgrid/i18n/jqgrid/locale-no.min.js +6 -6
- data/templates/jqgrid/i18n/jqgrid/locale-pl.min.js +6 -7
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.min.js +6 -7
- data/templates/jqgrid/i18n/jqgrid/locale-pt.min.js +4 -5
- data/templates/jqgrid/i18n/jqgrid/locale-ro.min.js +7 -8
- data/templates/jqgrid/i18n/jqgrid/locale-ru.min.js +7 -16
- data/templates/jqgrid/i18n/jqgrid/locale-sk.min.js +6 -8
- data/templates/jqgrid/i18n/jqgrid/locale-sv.min.js +6 -7
- data/templates/jqgrid/i18n/jqgrid/locale-tr.min.js +6 -7
- data/templates/jqgrid/i18n/jqgrid/locale-ua.min.js +7 -16
- data/templates/jqgrid/jquery.jqGrid.js +11567 -11565
- data/templates/jqgrid/jquery.jqGrid.min.js +472 -472
- data/templates/jqical/jquery.jqical.js +5 -9
- data/templates/jqical/jquery.jqical.min.js +44 -44
- data/templates/jqical/jquery.ui/jqical.scss +1 -1
- data/templates/jqtouch/config/initializers/jqtouch.rb +5 -4
- data/templates/jqtouch/jqtouch/apple/activeButton.png +0 -0
- data/templates/jqtouch/jqtouch/default/backButton.png +0 -0
- data/templates/jqtouch/jqtouch/default/backButtonActive.png +0 -0
- data/templates/jqtouch/jqtouch/default/bigButton.png +0 -0
- data/templates/jqtouch/jqtouch/default/bigButtonActive.png +0 -0
- data/templates/jqtouch/jqtouch/default/button.png +0 -0
- data/templates/jqtouch/jqtouch/default/buttonActive.png +0 -0
- data/templates/jqtouch/jqtouch/default/chevron.png +0 -0
- data/templates/jqtouch/jqtouch/default/chevronActive.png +0 -0
- data/templates/jqtouch/jqtouch/default/chevronCircle.png +0 -0
- data/templates/jqtouch/jqtouch/default/chevronCircleActive.png +0 -0
- data/templates/jqtouch/jqtouch/default/loading.gif +0 -0
- data/templates/jqtouch/jqtouch/default/toggleSwitch.png +0 -0
- data/templates/jqtouch/jqtouch/default/toolbarBackground.png +0 -0
- data/templates/jqtouch/jqtouch/jqt/back_button_clicked.png +0 -0
- data/templates/jqtouch/jqtouch/jqt.apple.scss +24 -11
- data/templates/jqtouch/jqtouch/jqt.default.scss +537 -0
- data/templates/jqtouch/jqtouch/jqt.jqt.scss +20 -6
- data/templates/jqtouch/jqtouch/jqtouch.scss +173 -1
- data/templates/jqtouch/jqtouch/photo/btnBack.png +0 -0
- data/templates/jqtouch/jqtouch/photo/loading.gif +0 -0
- data/templates/jqtouch/jqtouch/photo/navNext.png +0 -0
- data/templates/jqtouch/jqtouch/photo/navPause.png +0 -0
- data/templates/jqtouch/jqtouch/photo/navPlay.png +0 -0
- data/templates/jqtouch/jqtouch/photo/navPrev.png +0 -0
- data/templates/jqtouch/jqtouch/photo/toolbar.png +0 -0
- data/templates/jqtouch/jquery.jqtouch.js +8219 -632
- data/templates/jqtouch/jquery.jqtouch.min.js +60 -1
- data/templates/jqtouch/manifest.rb +21 -0
- data/templates/jrails/config/initializers/jrails.rb +1 -0
- data/templates/jrails/haml.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-ar.min.js +2 -4
- data/templates/jrails/i18n/jquery.ui/datepicker-az.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-bg.min.js +2 -4
- data/templates/jrails/i18n/jquery.ui/datepicker-bs.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-cs.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-da.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-de.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-el.min.js +2 -4
- data/templates/jrails/i18n/jquery.ui/datepicker-eo.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-et.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-fa.min.js +2 -3
- data/templates/jrails/i18n/jquery.ui/datepicker-fo.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-fr-CH.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-fr.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-he.min.js +2 -3
- data/templates/jrails/i18n/jquery.ui/datepicker-hr.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-hu.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-hy.min.js +2 -4
- data/templates/jrails/i18n/jquery.ui/datepicker-ja.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-ko.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-kz.min.js +2 -4
- data/templates/jrails/i18n/jquery.ui/datepicker-lt.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-lv.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-nl.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-no.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-pl.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-ro.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-ru.min.js +2 -4
- data/templates/jrails/i18n/jquery.ui/datepicker-sk.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-sq.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-sr-SR.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-sr.min.js +2 -4
- data/templates/jrails/i18n/jquery.ui/datepicker-sv.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-ta.min.js +2 -4
- data/templates/jrails/i18n/jquery.ui/datepicker-th.min.js +2 -4
- data/templates/jrails/i18n/jquery.ui/datepicker-tr.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-uk.min.js +2 -4
- data/templates/jrails/i18n/jquery.ui/datepicker-vi.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-zh-CN.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-zh-HK.min.js +2 -2
- data/templates/jrails/i18n/jquery.ui/datepicker-zh-TW.min.js +2 -2
- data/templates/jrails/jquery-1.4.2.min.js +156 -156
- data/templates/jrails/jquery-ui-1.8.5.js +23753 -23341
- data/templates/jrails/jquery-ui-1.8.5.min.js +823 -808
- data/templates/jrails/jquery.contextMenu.min.js +1 -1
- data/templates/jrails/jquery.sparkline.js +1050 -0
- data/templates/jrails/jquery.sparkline.min.js +31 -0
- data/templates/jrails/jquery.ui/_theme.scss +1699 -1634
- data/templates/jrails/manifest.rb +13 -11
- data/templates/jstree/jquery.jstree.min.js +10 -10
- data/templates/ribbon/jquery.ribbon.min.js +6 -6
- metadata +27 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
/*****************************************************************************
|
2
2
|
* FILE: anytime.js - The Any+Time(TM) JavaScript Library (source)
|
3
3
|
*
|
4
|
-
* VERSION: 4.
|
4
|
+
* VERSION: 4.1112E
|
5
5
|
*
|
6
6
|
* Copyright 2008-2010 Andrew M. Andrews III (www.AMA3.com). Some Rights
|
7
7
|
* Reserved. This work licensed under the Creative Commons Attribution-
|
@@ -145,11 +145,6 @@ var AnyTime =
|
|
145
145
|
$(document).ready(
|
146
146
|
function()
|
147
147
|
{
|
148
|
-
// Ping the server for statistical purposes (remove if offended).
|
149
|
-
|
150
|
-
if ( window.location.hostname.length && ( window.location.hostname != 'www.ama3.com' ) )
|
151
|
-
$(document.body).append('<img src="http://www.ama3.com/anytime/ping/?4.1112A'+(AnyTime.utcLabel?".tz":"")+'" width="0" height="0" />');
|
152
|
-
|
153
148
|
// IE6 doesn't float popups over <select> elements unless an
|
154
149
|
// <iframe> is inserted between them! The <iframe> is added to
|
155
150
|
// the page *before* the popups are moved, so they will appear
|
@@ -1392,7 +1387,7 @@ AnyTime.picker = function( id, options )
|
|
1392
1387
|
{
|
1393
1388
|
_this = this;
|
1394
1389
|
|
1395
|
-
|
1390
|
+
this.id = 'AnyTime--'+id.replace(/[^-_.A-Za-z0-9]/g,'--AnyTime--');
|
1396
1391
|
|
1397
1392
|
options = jQuery.extend(true,{},options||{});
|
1398
1393
|
options.utcParseOffsetCapture = true;
|
@@ -1473,7 +1468,7 @@ AnyTime.picker = function( id, options )
|
|
1473
1468
|
// Popup pickers will be moved to the end of the body
|
1474
1469
|
// once the entire page has loaded.
|
1475
1470
|
|
1476
|
-
|
1471
|
+
this.inp = $(document.getElementById(id)); // avoids ID-vs-pseudo-selector probs like id="foo:bar"
|
1477
1472
|
this.div = $( '<div class="AnyTime-win AnyTime-pkr ui-widget ui-widget-content ui-corner-all" style="width:0;height:0" id="' + this.id + '" aria-live="off"/>' );
|
1478
1473
|
this.inp.after(this.div);
|
1479
1474
|
this.wMinW = this.div.outerWidth(!$.browser.safari);
|
@@ -3662,6 +3657,7 @@ AnyTime.picker = function( id, options )
|
|
3662
3657
|
// END OF FILE
|
3663
3658
|
//
|
3664
3659
|
|
3660
|
+
|
3665
3661
|
/*****************************************************************************
|
3666
3662
|
* FILE: anytimetz.js - The Any+Time(TM) JavaScript Library
|
3667
3663
|
* Basic Time Zone Support (source)
|
@@ -3823,7 +3819,7 @@ AnyTime.utcLabel[240]=[
|
|
3823
3819
|
,'AZT--Azerbaijan Time'
|
3824
3820
|
,'GET--Georgia Standard Time'
|
3825
3821
|
,'MUT--Mauritius Time'
|
3826
|
-
,'RET--
|
3822
|
+
,'RET--Réunion Time'
|
3827
3823
|
,'SAMT--Samara Time'
|
3828
3824
|
,'SCT--Seychelles Time'
|
3829
3825
|
];
|
@@ -18,49 +18,49 @@
|
|
18
18
|
var AnyTime={pad:function(e,ca){for(var sa=String(Math.abs(e));sa.length<ca;)sa="0"+sa;if(e<0)sa="-"+sa;return sa}};
|
19
19
|
(function(e){var ca=[31,28,31,30,31,30,31,31,30,31,30,31],sa=null,db=false,Ra=navigator.userAgent.indexOf("MSIE 6")>0,Sa=navigator.userAgent.indexOf("MSIE 7")>0,Ta=[];jQuery.prototype.AnyTime_picker=function(X){return this.each(function(){AnyTime.picker(this.id,X)})};jQuery.prototype.AnyTime_noPicker=function(){return this.each(function(){AnyTime.noPicker(this.id)})};jQuery.prototype.AnyTime_height=function(X){return Ra?Number(this.css("height").replace(/[^0-9]/g,"")):this.outerHeight(X)};jQuery.prototype.AnyTime_width=
|
20
20
|
function(X){return Ra?1+Number(this.css("width").replace(/[^0-9]/g,"")):this.outerWidth(X)};jQuery.prototype.AnyTime_current=function(X,V){if(X){this.removeClass("AnyTime-out-btn ui-state-default ui-state-disabled ui-state-highlight");this.addClass("AnyTime-cur-btn ui-state-default ui-state-highlight")}else{this.removeClass("AnyTime-cur-btn ui-state-highlight");V?this.removeClass("AnyTime-out-btn ui-state-disabled"):this.addClass("AnyTime-out-btn ui-state-disabled")}};jQuery.prototype.AnyTime_clickCurrent=
|
21
|
-
function(){this.find(".AnyTime-cur-btn").triggerHandler("click")};e(document).ready(function(){if(
|
22
|
-
|
23
|
-
"
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
0
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
this.dD.append(this.
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
this.
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
Y.
|
63
|
-
|
21
|
+
function(){this.find(".AnyTime-cur-btn").triggerHandler("click")};e(document).ready(function(){if(Ra){sa=e('<iframe frameborder="0" scrolling="no"></iframe>');sa.src="javascript:'<html></html>';";e(sa).css({display:"block",height:"1px",left:"0",top:"0",width:"1px",zIndex:0});e(document.body).append(sa)}for(var X in Ta)Array.prototype[X]||Ta[X].onReady();db=true});AnyTime.Converter=function(X){var V=0,y=9,f=9,b=6,d=3,h=Number.MIN_VALUE,O=Number.MIN_VALUE,E=Number.MIN_VALUE,Y=-1,w=Number.MIN_VALUE,
|
22
|
+
aa=-1,W=false;this.fmt="%Y-%m-%d %T";this.dAbbr=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];this.dNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];this.eAbbr=["BCE","CE"];this.mAbbr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];this.mNames=["January","February","March","April","May","June","July","August","September","October","November","December"];this.baseYear=null;this.dAt=function(o,r){return o.charCodeAt(r)>="0".charCodeAt(0)&&o.charCodeAt(r)<=
|
23
|
+
"9".charCodeAt(0)};this.format=function(o){o=new Date(o.getTime());h==Number.MIN_VALUE&&E!=Number.MIN_VALUE&&o.setTime(o.getTime()+o.getTimezoneOffset()*6E4+E*6E4);for(var r,q="",z=0;z<V;z++)if(this.fmt.charAt(z)!="%")q+=this.fmt.charAt(z);else{var j=this.fmt.charAt(z+1);switch(j){case "a":q+=this.dAbbr[o.getDay()];break;case "B":if(o.getFullYear()<0)q+=this.eAbbr[0];break;case "b":q+=this.mAbbr[o.getMonth()];break;case "C":if(o.getFullYear()>0)q+=this.eAbbr[1];break;case "c":q+=o.getMonth()+1;break;
|
24
|
+
case "d":r=o.getDate();if(r<10)q+="0";q+=String(r);break;case "D":r=String(o.getDate());q+=r;if(r.length==2&&r.charAt(0)=="1")q+="th";else switch(r.charAt(r.length-1)){case "1":q+="st";break;case "2":q+="nd";break;case "3":q+="rd";break;default:q+="th"}break;case "E":q+=this.eAbbr[o.getFullYear()<0?0:1];break;case "e":q+=o.getDate();break;case "H":r=o.getHours();if(r<10)q+="0";q+=String(r);break;case "h":case "I":r=o.getHours()%12;if(r==0)q+="12";else{if(r<10)q+="0";q+=String(r)}break;case "i":r=
|
25
|
+
o.getMinutes();if(r<10)q+="0";q+=String(r);break;case "k":q+=o.getHours();break;case "l":r=o.getHours()%12;q+=r==0?"12":String(r);break;case "M":q+=this.mNames[o.getMonth()];break;case "m":r=o.getMonth()+1;if(r<10)q+="0";q+=String(r);break;case "p":q+=o.getHours()<12?"AM":"PM";break;case "r":r=o.getHours()%12;if(r==0)q+="12:";else{if(r<10)q+="0";q+=String(r)+":"}r=o.getMinutes();if(r<10)q+="0";q+=String(r)+":";r=o.getSeconds();if(r<10)q+="0";q+=String(r);q+=o.getHours()<12?"AM":"PM";break;case "S":case "s":r=
|
26
|
+
o.getSeconds();if(r<10)q+="0";q+=String(r);break;case "T":r=o.getHours();if(r<10)q+="0";q+=String(r)+":";r=o.getMinutes();if(r<10)q+="0";q+=String(r)+":";r=o.getSeconds();if(r<10)q+="0";q+=String(r);break;case "W":q+=this.dNames[o.getDay()];break;case "w":q+=o.getDay();break;case "Y":q+=AnyTime.pad(o.getFullYear(),4);break;case "y":r=o.getFullYear()%100;q+=AnyTime.pad(r,2);break;case "Z":q+=AnyTime.pad(Math.abs(o.getFullYear()),4);break;case "z":q+=Math.abs(o.getFullYear());break;case "%":q+="%";
|
27
|
+
break;case "#":r=h!=Number.MIN_VALUE?h:E==Number.MIN_VALUE?0-o.getTimezoneOffset():E;if(r>=0)q+="+";q+=r;break;case "@":r=h!=Number.MIN_VALUE?h:E==Number.MIN_VALUE?0-o.getTimezoneOffset():E;if(AnyTime.utcLabel&&AnyTime.utcLabel[r]){q+=Y>0&&Y<AnyTime.utcLabel[r].length?AnyTime.utcLabel[r][Y]:AnyTime.utcLabel[r][0];break}q+="UTC";j=":";case "+":case "-":case ":":case ";":r=h!=Number.MIN_VALUE?h:E==Number.MIN_VALUE?0-o.getTimezoneOffset():E;q+=r<0?"-":"+";r=Math.abs(r);q+=j=="+"||j==":"?AnyTime.pad(Math.floor(r/
|
28
|
+
60),2):Math.floor(r/60);if(j==":"||j==";")q+=":";q+=AnyTime.pad(r%60,2);break;case "f":case "j":case "U":case "u":case "V":case "v":case "X":case "x":throw"%"+j+" not implemented by AnyTime.Converter";default:q+=this.fmt.substr(z,2)}z++}return q};this.getUtcParseOffsetCaptured=function(){return O};this.getUtcParseOffsetSubIndex=function(){return aa};this.parse=function(o){O=w;aa=-1;for(var r=1,q=new Date(0,0,1,0,0,0,0),z=o.length,j=0,ia=1,T=w,J,ba,Ha,U,Ma=0;Ma<V;Ma++)if(this.fmt.charAt(Ma)=="%"){ba=
|
29
|
+
this.fmt.charAt(Ma+1);switch(ba){case "a":ba=false;for(U=0;j+U<z;U++){Ha=o.substr(j,U);for(J=0;J<12;J++)if(this.dAbbr[J]==Ha){ba=true;j+=U;break}if(ba)break}if(!ba)throw"unknown weekday: "+o.substr(j);break;case "B":U=this.eAbbr[0].length;if(j+U<=z&&o.substr(j,U)==this.eAbbr[0]){r=-1;j+=U}break;case "b":ba=false;for(U=0;j+U<z;U++){Ha=o.substr(j,U);for(J=0;J<12;J++)if(this.mAbbr[J]==Ha){q.setMonth(J);ba=true;j+=U;break}if(ba)break}if(!ba)throw"unknown month: "+o.substr(j);break;case "C":U=this.eAbbr[1].length;
|
30
|
+
if(j+U<=z&&o.substr(j,U)==this.eAbbr[1])j+=U;break;case "c":if(j+1<z&&this.dAt(o,j+1)){q.setMonth((Number(o.substr(j,2))-1)%12);j+=2}else{q.setMonth((Number(o.substr(j,1))-1)%12);j++}break;case "D":if(j+1<z&&this.dAt(o,j+1)){q.setDate(Number(o.substr(j,2)));j+=4}else{q.setDate(Number(o.substr(j,1)));j+=3}break;case "d":q.setDate(Number(o.substr(j,2)));j+=2;break;case "E":U=this.eAbbr[0].length;if(j+U<=z&&o.substr(j,U)==this.eAbbr[0]){r=-1;j+=U}else if(j+(U=this.eAbbr[1].length)<=z&&o.substr(j,U)==
|
31
|
+
this.eAbbr[1])j+=U;else throw"unknown era: "+o.substr(j);break;case "e":if(j+1<z&&this.dAt(o,j+1)){q.setDate(Number(o.substr(j,2)));j+=2}else{q.setDate(Number(o.substr(j,1)));j++}break;case "f":j+=6;break;case "H":q.setHours(Number(o.substr(j,2)));j+=2;break;case "h":case "I":q.setHours(Number(o.substr(j,2)));j+=2;break;case "i":q.setMinutes(Number(o.substr(j,2)));j+=2;break;case "k":if(j+1<z&&this.dAt(o,j+1)){q.setHours(Number(o.substr(j,2)));j+=2}else{q.setHours(Number(o.substr(j,1)));j++}break;
|
32
|
+
case "l":if(j+1<z&&this.dAt(o,j+1)){q.setHours(Number(o.substr(j,2)));j+=2}else{q.setHours(Number(o.substr(j,1)));j++}break;case "M":ba=false;for(U=d;j+U<=z;U++){if(U>f)break;Ha=o.substr(j,U);for(J=0;J<12;J++)if(this.mNames[J]==Ha){q.setMonth(J);ba=true;j+=U;break}if(ba)break}break;case "m":q.setMonth((Number(o.substr(j,2))-1)%12);j+=2;break;case "p":if(q.getHours()==12)o.charAt(j)=="A"&&q.setHours(0);else o.charAt(j)=="P"&&q.setHours(q.getHours()+12);j+=2;break;case "r":q.setHours(Number(o.substr(j,
|
33
|
+
2)));q.setMinutes(Number(o.substr(j+3,2)));q.setSeconds(Number(o.substr(j+6,2)));if(q.getHours()==12)o.charAt(j)=="A"&&q.setHours(0);else o.charAt(j)=="P"&&q.setHours(q.getHours()+12);j+=10;break;case "S":case "s":q.setSeconds(Number(o.substr(j,2)));j+=2;break;case "T":q.setHours(Number(o.substr(j,2)));q.setMinutes(Number(o.substr(j+3,2)));q.setSeconds(Number(o.substr(j+6,2)));j+=8;break;case "W":ba=false;for(U=b;j+U<=z;U++){if(U>y)break;Ha=o.substr(j,U);for(J=0;J<7;J++)if(this.dNames[J]==Ha){ba=
|
34
|
+
true;j+=U;break}if(ba)break}break;case "w":j+=1;break;case "Y":J=4;o.substr(j,1)=="-"&&J++;q.setFullYear(Number(o.substr(j,J)));j+=J;break;case "y":J=2;o.substr(j,1)=="-"&&J++;ba=Number(o.substr(j,J));ba+=typeof this.baseYear=="number"?this.baseYear:ba<70?2E3:1900;q.setFullYear(ba);j+=J;break;case "Z":q.setFullYear(Number(o.substr(j,4)));j+=4;break;case "z":for(J=0;j<z&&this.dAt(o,j);)J=J*10+Number(o.charAt(j++));q.setFullYear(J);break;case "#":if(o.charAt(j++)=="-")ia=-1;for(T=0;j<z&&String(J=Number(o.charAt(j)))==
|
35
|
+
o.charAt(j);j++)T=T*10+J;T*=ia;break;case "@":aa=-1;if(AnyTime.utcLabel){ba=false;for(T in AnyTime.utcLabel)if(!Array.prototype[T]){for(J=0;J<AnyTime.utcLabel[T].length;J++){Ha=AnyTime.utcLabel[T][J];U=Ha.length;if(j+U<=z&&o.substr(j,U)==Ha){j+=U;ba=true;break}}if(ba)break}if(ba){aa=J;T=Number(T);break}}if(j+9<z||o.substr(j,3)!="UTC")throw"unknown time zone: "+o.substr(j);j+=3;ba=":";case "-":case "+":case ":":case ";":if(o.charAt(j++)=="-")ia=-1;T=Number(o.charAt(j));if(ba=="+"||ba==":"||j+3<z&&
|
36
|
+
String(Number(o.charAt(j+3)))!==o.charAt(j+3))T=T*10+Number(o.charAt(++j));T*=60;if(ba==":"||ba==";")j++;T=(T+Number(o.substr(++j,2)))*ia;j+=2;break;case "j":case "U":case "u":case "V":case "v":case "X":case "x":throw"%"+this.fmt.charAt(Ma+1)+" not implemented by AnyTime.Converter";default:throw"%"+this.fmt.charAt(Ma+1)+" reserved for future use";}Ma++}else if(this.fmt.charAt(Ma)!=o.charAt(j))throw o+' is not in "'+this.fmt+'" format';else j++;r<0&&q.setFullYear(0-q.getFullYear());if(T!=Number.MIN_VALUE)if(W)O=
|
37
|
+
T;else q.setTime(q.getTime()-T*6E4-q.getTimezoneOffset()*6E4);return q};this.setUtcFormatOffsetAlleged=function(o){var r=h;h=o;return r};this.setUtcFormatOffsetSubIndex=function(o){var r=Y;Y=o;return r};(function(o){var r,q;X=jQuery.extend(true,{},X||{});if(X.baseYear)o.baseYear=Number(X.baseYear);if(X.format)o.fmt=X.format;V=o.fmt.length;if(X.dayAbbreviations)o.dAbbr=e.makeArray(X.dayAbbreviations);if(X.dayNames){o.dNames=e.makeArray(X.dayNames);y=1;b=1E3;for(r=0;r<7;r++){q=o.dNames[r].length;if(q>
|
38
|
+
y)y=q;if(q<b)b=q}}if(X.eraAbbreviations)o.eAbbr=e.makeArray(X.eraAbbreviations);if(X.monthAbbreviations)o.mAbbr=e.makeArray(X.monthAbbreviations);if(X.monthNames){o.mNames=e.makeArray(X.monthNames);f=1;d=1E3;for(r=0;r<12;r++){q=o.mNames[r].length;if(q>f)f=q;if(q<d)d=q}}if(typeof X.utcFormatOffsetImposed!="undefined")E=X.utcFormatOffsetImposed;if(typeof X.utcParseOffsetAssumed!="undefined")w=X.utcParseOffsetAssumed;if(X.utcParseOffsetCapture)W=true})(this)};AnyTime.noPicker=function(X){if(Ta[X]){Ta[X].cleanup();
|
39
|
+
delete Ta[X]}};AnyTime.picker=function(X,V){if(Ta[X])throw'Cannot create another AnyTime picker for "'+X+'"';var y=null;Ta[X]={twelveHr:false,ajaxOpts:null,denyTab:true,askEra:false,cloak:null,conv:null,bMinW:0,bMinH:0,dMinW:0,dMinH:0,div:null,dB:null,dD:null,dY:null,dMo:null,dDoM:null,hDoM:null,hMo:null,hTitle:null,hY:null,dT:null,dH:null,dM:null,dS:null,dO:null,earliest:null,fBtn:null,fDOW:0,hBlur:null,hClick:null,hFocus:null,hKeydown:null,hKeypress:null,id:null,inp:null,latest:null,lastAjax:null,
|
40
|
+
lostFocus:false,lX:"X",lY:"Year",lO:"Time Zone",oBody:null,oConv:null,oCur:null,oDiv:null,oLab:null,oListMinW:0,oMinW:0,oSel:null,offMin:Number.MIN_VALUE,offSI:-1,offStr:"",pop:true,time:null,tMinW:0,tMinH:0,url:null,wMinW:0,wMinH:0,yAhead:null,y0XXX:null,yCur:null,yDiv:null,yLab:null,yNext:null,yPast:null,yPrior:null,initialize:function(f){y=this;this.id="AnyTime--"+f.replace(/[^-_.A-Za-z0-9]/g,"--AnyTime--");V=jQuery.extend(true,{},V||{});V.utcParseOffsetCapture=true;this.conv=new AnyTime.Converter(V);
|
41
|
+
if(V.placement)if(V.placement=="inline")this.pop=false;else if(V.placement!="popup")throw"unknown placement: "+V.placement;if(V.ajaxOptions){this.ajaxOpts=jQuery.extend({},V.ajaxOptions);if(!this.ajaxOpts.success)this.ajaxOpts.success=function(z){y.inp.val(z)}}if(V.earliest)this.earliest=typeof V.earliest.getTime=="function"?V.earliest.getTime():this.conv.parse(V.earliest.toString());if(V.firstDOW){if(V.firstDOW<0||V.firstDOW>6)throw new Exception("illegal firstDOW: "+V.firstDOW);this.fDOW=V.firstDOW}if(V.latest)this.latest=
|
42
|
+
typeof V.latest.getTime=="function"?V.latest.getTime():this.conv.parse(V.latest.toString());this.lX=V.labelDismiss||"X";this.lY=V.labelYear||"Year";this.lO=V.labelTimeZone||"Time Zone";var b,d,h=0;d=this.conv.fmt;this.askEra=typeof V.askEra!="undefined"?V.askEra:d.indexOf("%B")>=0||d.indexOf("%C")>=0||d.indexOf("%E")>=0;b=d.indexOf("%Y")>=0||d.indexOf("%y")>=0||d.indexOf("%Z")>=0||d.indexOf("%z")>=0;var O=d.indexOf("%b")>=0||d.indexOf("%c")>=0||d.indexOf("%M")>=0||d.indexOf("%m")>=0,E=d.indexOf("%D")>=
|
43
|
+
0||d.indexOf("%d")>=0||d.indexOf("%e")>=0,Y=b||O||E,w=(this.twelveHr=d.indexOf("%h")>=0||d.indexOf("%I")>=0||d.indexOf("%l")>=0||d.indexOf("%r")>=0)||d.indexOf("%H")>=0||d.indexOf("%k")>=0||d.indexOf("%T")>=0,aa=d.indexOf("%i")>=0||d.indexOf("%r")>=0||d.indexOf("%T")>=0,W=d.indexOf("%r")>=0||d.indexOf("%S")>=0||d.indexOf("%s")>=0||d.indexOf("%T")>=0;if(W&&typeof V.askSecond!="undefined")W=V.askSecond;var o=d.indexOf("%#")>=0||d.indexOf("%+")>=0||d.indexOf("%-")>=0||d.indexOf("%:")>=0||d.indexOf("%;")>=
|
44
|
+
0||d.indexOf("%<")>=0||d.indexOf("%>")>=0||d.indexOf("%@")>=0,r=w||aa||W||o;if(o)this.oConv=new AnyTime.Converter({format:V.formatUtcOffset||d.match(/\S*%[-+:;<>#@]\S*/g).join(" ")});this.inp=e(document.getElementById(f));this.div=e('<div class="AnyTime-win AnyTime-pkr ui-widget ui-widget-content ui-corner-all" style="width:0;height:0" id="'+this.id+'" aria-live="off"/>');this.inp.after(this.div);this.wMinW=this.div.outerWidth(!e.browser.safari);this.wMinH=this.div.AnyTime_height(true);this.hTitle=
|
45
|
+
e('<h5 class="AnyTime-hdr ui-widget-header ui-corner-top"/>');this.div.append(this.hTitle);this.dB=e('<div class="AnyTime-body" style="width:0;height:0"/>');this.div.append(this.dB);this.bMinW=this.dB.outerWidth(true);this.bMinH=this.dB.AnyTime_height(true);V.hideInput&&this.inp.css({border:0,height:"1px",margin:0,padding:0,width:"1px"});f=d=null;if(this.pop){f=e('<div class="AnyTime-x-btn ui-state-default">'+this.lX+"</div>");this.hTitle.append(f);f.click(function(z){y.dismiss(z)})}f="";if(Y){this.dD=
|
46
|
+
e('<div class="AnyTime-date" style="width:0;height:0"/>');this.dB.append(this.dD);this.dMinW=this.dD.outerWidth(true);this.dMinH=this.dD.AnyTime_height(true);if(b){this.yLab=e('<h6 class="AnyTime-lbl AnyTime-lbl-yr">'+this.lY+"</h6>");this.dD.append(this.yLab);this.dY=e('<ul class="AnyTime-yrs ui-helper-reset" />');this.dD.append(this.dY);this.yPast=this.btn(this.dY,"<",this.newYear,["yrs-past"],"- "+this.lY);this.yPrior=this.btn(this.dY,"1",this.newYear,["yr-prior"],"-1 "+this.lY);this.yCur=this.btn(this.dY,
|
47
|
+
"2",this.newYear,["yr-cur"],this.lY);this.yCur.removeClass("ui-state-default");this.yCur.addClass("AnyTime-cur-btn ui-state-default ui-state-highlight");this.yNext=this.btn(this.dY,"3",this.newYear,["yr-next"],"+1 "+this.lY);this.yAhead=this.btn(this.dY,">",this.newYear,["yrs-ahead"],"+ "+this.lY);h++}if(O){f=V.labelMonth||"Month";this.hMo=e('<h6 class="AnyTime-lbl AnyTime-lbl-month">'+f+"</h6>");this.dD.append(this.hMo);this.dMo=e('<ul class="AnyTime-mons" />');this.dD.append(this.dMo);for(b=
|
48
|
+
0;b<12;b++)this.btn(this.dMo,this.conv.mAbbr[b],function(z){var j=e(z.target);if(!j.hasClass("AnyTime-out-btn")){z=z.target.AnyTime_month;var ia=new Date(this.time.getTime());ia.getDate()>ca[z]&&ia.setDate(ca[z]);ia.setMonth(z);this.set(ia);this.upd(j)}},["mon","mon"+String(b+1)],f+" "+this.conv.mNames[b])[0].AnyTime_month=b;h++}if(E){f=V.labelDayOfMonth||"Day of Month";this.hDoM=e('<h6 class="AnyTime-lbl AnyTime-lbl-dom">'+f+"</h6>");this.dD.append(this.hDoM);this.dDoM=e('<table border="0" cellpadding="0" cellspacing="0" class="AnyTime-dom-table"/>');
|
49
|
+
this.dD.append(this.dDoM);d=e('<thead class="AnyTime-dom-head"/>');this.dDoM.append(d);E=e('<tr class="AnyTime-dow"/>');d.append(E);for(b=0;b<7;b++)E.append('<th class="AnyTime-dow AnyTime-dow'+String(b+1)+'">'+this.conv.dAbbr[(this.fDOW+b)%7]+"</th>");d=e('<tbody class="AnyTime-dom-body" />');this.dDoM.append(d);for(O=0;O<6;O++){E=e('<tr class="AnyTime-wk AnyTime-wk'+String(O+1)+'"/>');d.append(E);for(b=0;b<7;b++)this.btn(E,"x",function(z){z=e(z.target);if(!z.hasClass("AnyTime-out-btn")){var j=Number(z.html());
|
50
|
+
if(j){var ia=new Date(this.time.getTime());ia.setDate(j);this.set(ia);this.upd(z)}}},["dom"],f)}h++}}if(r){this.dT=e('<div class="AnyTime-time" style="width:0;height:0" />');this.dB.append(this.dT);this.tMinW=this.dT.outerWidth(true);this.tMinH=this.dT.AnyTime_height(true);if(w){this.dH=e('<div class="AnyTime-hrs"/>');this.dT.append(this.dH);f=V.labelHour||"Hour";this.dH.append(e('<h6 class="AnyTime-lbl AnyTime-lbl-hr">'+f+"</h6>"));w=e('<ul class="AnyTime-hrs-am"/>');this.dH.append(w);E=e('<ul class="AnyTime-hrs-pm"/>');
|
51
|
+
this.dH.append(E);for(b=0;b<12;b++){d=this.twelveHr?b==0?"12am":String(b)+"am":AnyTime.pad(b,2);this.btn(w,d,this.newHour,["hr","hr"+String(b)],f+" "+d);d=this.twelveHr?b==0?"12pm":String(b)+"pm":b+12;this.btn(E,d,this.newHour,["hr","hr"+String(b+12)],f+" "+d)}h++}if(aa){this.dM=e('<div class="AnyTime-mins"/>');this.dT.append(this.dM);f=V.labelMinute||"Minute";this.dM.append(e('<h6 class="AnyTime-lbl AnyTime-lbl-min">'+f+"</h6>"));aa=e('<ul class="AnyTime-mins-tens"/>');this.dM.append(aa);for(b=0;b<
|
52
|
+
6;b++)this.btn(aa,b,function(z){z=e(z.target);if(!z.hasClass("AnyTime-out-btn")){var j=new Date(this.time.getTime());j.setMinutes(Number(z.text())*10+this.time.getMinutes()%10);this.set(j);this.upd(z)}},["min-ten","min"+b+"0"],f+" "+b+"0");for(;b<12;b++)this.btn(aa," ",e.noop,["min-ten","min"+b+"0"],f+" "+b+"0").addClass("AnyTime-min-ten-btn-empty ui-state-default ui-state-disabled");aa=e('<ul class="AnyTime-mins-ones"/>');this.dM.append(aa);for(b=0;b<10;b++)this.btn(aa,b,function(z){z=e(z.target);
|
53
|
+
if(!z.hasClass("AnyTime-out-btn")){var j=new Date(this.time.getTime());j.setMinutes(Math.floor(this.time.getMinutes()/10)*10+Number(z.text()));this.set(j);this.upd(z)}},["min-one","min"+b],f+" "+b);for(;b<12;b++)this.btn(aa," ",e.noop,["min-one","min"+b+"0"],f+" "+b).addClass("AnyTime-min-one-btn-empty ui-state-default ui-state-disabled");h++}if(W){this.dS=e('<div class="AnyTime-secs"/>');this.dT.append(this.dS);f=V.labelSecond||"Second";this.dS.append(e('<h6 class="AnyTime-lbl AnyTime-lbl-sec">'+
|
54
|
+
f+"</h6>"));aa=e('<ul class="AnyTime-secs-tens"/>');this.dS.append(aa);for(b=0;b<6;b++)this.btn(aa,b,function(z){z=e(z.target);if(!z.hasClass("AnyTime-out-btn")){var j=new Date(this.time.getTime());j.setSeconds(Number(z.text())*10+this.time.getSeconds()%10);this.set(j);this.upd(z)}},["sec-ten","sec"+b+"0"],f+" "+b+"0");for(;b<12;b++)this.btn(aa," ",e.noop,["sec-ten","sec"+b+"0"],f+" "+b+"0").addClass("AnyTime-sec-ten-btn-empty ui-state-default ui-state-disabled");aa=e('<ul class="AnyTime-secs-ones"/>');
|
55
|
+
this.dS.append(aa);for(b=0;b<10;b++)this.btn(aa,b,function(z){z=e(z.target);if(!z.hasClass("AnyTime-out-btn")){var j=new Date(this.time.getTime());j.setSeconds(Math.floor(this.time.getSeconds()/10)*10+Number(z.text()));this.set(j);this.upd(z)}},["sec-one","sec"+b],f+" "+b);for(;b<12;b++)this.btn(aa," ",e.noop,["sec-one","sec"+b+"0"],f+" "+b).addClass("AnyTime-sec-one-btn-empty ui-state-default ui-state-disabled");h++}if(o){this.dO=e('<div class="AnyTime-offs" />');this.dT.append(this.dO);this.oMinW=
|
56
|
+
this.dO.outerWidth(true);this.oLab=e('<h6 class="AnyTime-lbl AnyTime-lbl-off">'+this.lO+"</h6>");this.dO.append(this.oLab);W=e('<ul class="AnyTime-off-list ui-helper-reset" />');this.dO.append(W);this.oCur=this.btn(W,"",this.newOffset,["off","off-cur"],f);this.oCur.removeClass("ui-state-default");this.oCur.addClass("AnyTime-cur-btn ui-state-default ui-state-highlight");this.oCur.css({overflow:"hidden"});this.oSel=this.btn(W,"±",this.newOffset,["off","off-select"],"+/- "+this.lO);this.oListMinW=
|
57
|
+
this.oCur.outerWidth(true)+this.oSel.outerWidth(true);h++}}if(V.labelTitle)this.hTitle.append(V.labelTitle);else h>1?this.hTitle.append("Select a "+(Y?r?"Date and Time":"Date":"Time")):this.hTitle.append("Select");try{this.time=this.conv.parse(this.inp.val());this.offMin=this.conv.getUtcParseOffsetCaptured();this.offSI=this.conv.getUtcParseOffsetSubIndex()}catch(q){this.time=new Date}this.lastAjax=this.time;if(this.pop){this.div.hide();sa&&sa.hide();this.div.css("position","absolute")}this.inp.blur(this.hBlur=
|
58
|
+
function(z){y.inpBlur(z)});this.inp.click(this.hClick=function(z){y.showPkr(z)});this.inp.focus(this.hFocus=function(z){y.lostFocus&&y.showPkr(z);y.lostFocus=false});this.inp.keydown(this.hKeydown=function(z){y.key(z)});this.inp.keypress(this.hKeypress=function(z){e.browser.opera&&y.denyTab&&z.preventDefault()});this.div.click(function(){y.lostFocus=false;y.inp.focus()});e(window).resize(function(z){y.pos(z)});db&&this.onReady()},ajax:function(){if(this.ajaxOpts&&this.time.getTime()!=this.lastAjax.getTime())try{var f=
|
59
|
+
jQuery.extend({},this.ajaxOpts);if(typeof f.data=="object")f.data[this.inp[0].name||this.inp[0].id]=this.inp.val();else{var b=(this.inp[0].name||this.inp[0].id)+"="+encodeURI(this.inp.val());if(f.data)f.data+="&"+b;else f.data=b}e.ajax(f);this.lastAjax=this.time}catch(d){}},askOffset:function(f){if(this.oDiv){this.cloak.show();this.oDiv.show()}else{this.makeCloak();this.oDiv=e('<div class="AnyTime-win AnyTime-off-selector ui-widget ui-widget-content ui-corner-all" style="position:absolute" />');this.div.append(this.oDiv);
|
60
|
+
var b=e('<h5 class="AnyTime-hdr AnyTime-hdr-off-selector ui-widget-header ui-corner-top" />');this.oDiv.append(b);this.oBody=e('<div class="AnyTime-body AnyTime-body-off-selector" style="overflow:auto;white-space:nowrap" />');this.oDiv.append(this.oBody);var d=this.oBody.AnyTime_height(true),h=this.oBody.AnyTime_width(true),O=b.AnyTime_width(true),E=e('<div class="AnyTime-x-btn ui-state-default">'+this.lX+"</div>");b.append(E);E.click(function(q){y.dismissODiv(q)});b.append(this.lO);if(Ra||Sa)b.width(String(this.lO.length*
|
61
|
+
0.8)+"em");h=b.AnyTime_width(true)-h;E=e('<ul class="AnyTime-off-off" />');var Y=null;this.oBody.append(E);var w=this.oConv.fmt.indexOf("%@")>=0,aa=0;if(AnyTime.utcLabel)for(var W=-720;W<720;W++)if(AnyTime.utcLabel[W]){this.oConv.setUtcFormatOffsetAlleged(W);for(var o=0;o<AnyTime.utcLabel[W].length;o++){this.oConv.setUtcFormatOffsetSubIndex(o);Y=this.btn(E,this.oConv.format(this.time),this.newOPos,["off-off"],W);Y[0].AnyTime_offMin=W;Y[0].AnyTime_offSI=o;var r=Y.width();if(r>aa)aa=r;if(!w)break}}Y&&
|
62
|
+
Y.addClass("AnyTime-off-off-last-btn");this.oBody.find(".AnyTime-off-off-btn").width(aa);if(Y){E=Y.AnyTime_width(true);if(E>h)h=E+1}this.oBody.width(h);h=this.oBody.AnyTime_width(true);this.oDiv.width(h);if(Ra||Sa)b.width(h-O);h=this.oDiv.AnyTime_height(true);E=this.div.height()*0.75;if(h>E){h=E;this.oBody.height(h-(b.AnyTime_height(true)+d));this.oBody.width(this.oBody.width()+20);this.oDiv.width(this.oDiv.width()+20);if(Ra||Sa)b.width(this.oBody.AnyTime_width(true)-O)}Sa||this.oDiv.height(String(h)+
|
63
|
+
"px")}this.pos(f);this.updODiv(null);f=this.oDiv.find(".AnyTime-off-off-btn.AnyTime-cur-btn:first");f.length||(f=this.oDiv.find(".AnyTime-off-off-btn:first"));this.setFocus(f)},askYear:function(f){if(this.yDiv){this.cloak.show();this.yDiv.show()}else{this.makeCloak();this.yDiv=e('<div class="AnyTime-win AnyTime-yr-selector ui-widget ui-widget-content ui-corner-all" style="position:absolute" />');this.div.append(this.yDiv);var b=e('<h5 class="AnyTime-hdr AnyTime-hdr-yr-selector ui-widget-header ui-corner-top" />');
|
64
64
|
this.yDiv.append(b);var d=e('<div class="AnyTime-x-btn ui-state-default">'+this.lX+"</div>");b.append(d);d.click(function(E){y.dismissYDiv(E)});b.append(this.lY);d=e('<div class="AnyTime-body AnyTime-body-yr-selector" />');var h=d.AnyTime_width(true),O=0;this.yDiv.append(d);cont=e('<ul class="AnyTime-yr-mil" />');d.append(cont);this.y0XXX=this.btn(cont,0,this.newYPos,["mil","mil0"],this.lY+" 0000");for(i=1;i<10;i++)this.btn(cont,i,this.newYPos,["mil","mil"+i],this.lY+" "+i+"000");h+=cont.AnyTime_width(true);
|
65
65
|
if(O<cont.AnyTime_height(true))O=cont.AnyTime_height(true);cont=e('<ul class="AnyTime-yr-cent" />');d.append(cont);for(i=0;i<10;i++)this.btn(cont,i,this.newYPos,["cent","cent"+i],this.lY+" "+i+"00");h+=cont.AnyTime_width(true);if(O<cont.AnyTime_height(true))O=cont.AnyTime_height(true);cont=e('<ul class="AnyTime-yr-dec" />');d.append(cont);for(i=0;i<10;i++)this.btn(cont,i,this.newYPos,["dec","dec"+i],this.lY+" "+i+"0");h+=cont.AnyTime_width(true);if(O<cont.AnyTime_height(true))O=cont.AnyTime_height(true);
|
66
66
|
cont=e('<ul class="AnyTime-yr-yr" />');d.append(cont);for(i=0;i<10;i++)this.btn(cont,i,this.newYPos,["yr","yr"+i],this.lY+" "+i);h+=cont.AnyTime_width(true);if(O<cont.AnyTime_height(true))O=cont.AnyTime_height(true);if(this.askEra){cont=e('<ul class="AnyTime-yr-era" />');d.append(cont);this.btn(cont,this.conv.eAbbr[0],function(E){var Y=new Date(this.time.getTime()),w=Y.getFullYear();w>0&&Y.setFullYear(0-w);this.set(Y);this.updYDiv(e(E.target))},["era","bce"],this.conv.eAbbr[0]);this.btn(cont,this.conv.eAbbr[1],
|
@@ -118,7 +118,7 @@ AnyTime.utcLabel[-540]=["AKST--Alaska Standard Time","GIT--Gambier Island Time"]
|
|
118
118
|
AnyTime.utcLabel[-300]=["CDT--Central Daylight Time (North America)","COT--Colombia Time","ECT--Ecuador Time","EST--Eastern Standard Time (North America)"];AnyTime.utcLabel[-240]=["AST--Atlantic Standard Time","BOT--Bolivia Time","CLT--Chile Standard Time","COST--Colombia Summer Time","ECT--Eastern Caribbean Time","EDT--Eastern Daylight Time (North America)","FKST--Falkland Islands Standard Time","GYT--Guyana Time"];AnyTime.utcLabel[-210]=["VET--Venezuelan Standard Time"];
|
119
119
|
AnyTime.utcLabel[-180]=["ART--Argentina Time","BRT--Brasilia Time","CLST--Chile Summer Time","GFT--French Guiana Time","UYT--Uruguay Standard Time"];AnyTime.utcLabel[-150]=["NT--Newfoundland Time"];AnyTime.utcLabel[-120]=["GST--South Georgia and the South Sandwich Islands","UYST--Uruguay Summer Time"];AnyTime.utcLabel[-90]=["NDT--Newfoundland Daylight Time"];AnyTime.utcLabel[-60]=["AZOST--Azores Standard Time","CVT--Cape Verde Time"];AnyTime.utcLabel[0]=["GMT--Greenwich Mean Time","WET--Western European Time"];
|
120
120
|
AnyTime.utcLabel[60]=["BST--British Summer Time","CET--Central European Time"];AnyTime.utcLabel[60]=["WAT--West Africa Time","WEST--Western European Summer Time"];AnyTime.utcLabel[120]=["CAT--Central Africa Time","CEST--Central European Summer Time","EET--Eastern European Time","IST--Israel Standard Time","SAST--South African Standard Time"];
|
121
|
-
AnyTime.utcLabel[180]=["AST--Arab Standard Time (Kuwait/Riyadh)","AST--Arabic Standard Time (Baghdad)","EAT--East Africa Time","EEST--Eastern European Summer Time","MSK--Moscow Standard Time"];AnyTime.utcLabel[210]=["IRST--Iran Standard Time"];AnyTime.utcLabel[240]=["AMT--Armenia Time","AST--Arabian Standard Time (Abu Dhabi/Muscat)","AZT--Azerbaijan Time","GET--Georgia Standard Time","MUT--Mauritius Time","RET--
|
121
|
+
AnyTime.utcLabel[180]=["AST--Arab Standard Time (Kuwait/Riyadh)","AST--Arabic Standard Time (Baghdad)","EAT--East Africa Time","EEST--Eastern European Summer Time","MSK--Moscow Standard Time"];AnyTime.utcLabel[210]=["IRST--Iran Standard Time"];AnyTime.utcLabel[240]=["AMT--Armenia Time","AST--Arabian Standard Time (Abu Dhabi/Muscat)","AZT--Azerbaijan Time","GET--Georgia Standard Time","MUT--Mauritius Time","RET--Réunion Time","SAMT--Samara Time","SCT--Seychelles Time"];AnyTime.utcLabel[270]=["AFT--Afghanistan Time"];
|
122
122
|
AnyTime.utcLabel[300]=["AMST--Armenia Summer Time","HMT--Heard and McDonald Islands Time","PKT--Pakistan Standard Time","YEKT--Yekaterinburg Time"];AnyTime.utcLabel[330]=["IST--Indian Standard Time","SLT--Sri Lanka Time"];AnyTime.utcLabel[345]=["NPT--Nepal Time"];AnyTime.utcLabel[360]=["BIOT--British Indian Ocean Time","BST--Bangladesh Standard Time","BTT--Bhutan Time","OMST--Omsk Time"];AnyTime.utcLabel[390]=["CCT--Cocos Islands Time","MST--Myanmar Standard Time"];
|
123
123
|
AnyTime.utcLabel[420]=["CXT--Christmas Island Time","KRAT--Krasnoyarsk Time","THA--Thailand Standard Time"];AnyTime.utcLabel[480]=["ACT--ASEAN Common Time","AWST--Australian Western Standard Time","BDT--Brunei Time","CST--China Standard Time","HKT--Hong Kong Time","IRKT--Irkutsk Time","MST--Malaysian Standard Time","PST--Philippine Standard Time","SST--Singapore Standard Time"];AnyTime.utcLabel[540]=["JST--Japan Standard Time","KST--Korea Standard Time","YAKT--Yakutsk Time"];
|
124
124
|
AnyTime.utcLabel[570]=["ACST--Australian Central Standard Time"];AnyTime.utcLabel[600]=["AEST--Australian Eastern Standard Time","ChST--Chamorro Standard Time","VLAT--Vladivostok Time"];AnyTime.utcLabel[630]=["LHST--Lord Howe Standard Time"];AnyTime.utcLabel[660]=["MAGT--Magadan Time","SBT--Solomon Islands Time"];AnyTime.utcLabel[690]=["NFT--Norfolk Time"];AnyTime.utcLabel[720]=["FJT--Fiji Time","GILT--Gilbert Island Time","PETT--Kamchatka Time"];AnyTime.utcLabel[765]=["CHAST--Chatham Standard Time"];
|
@@ -3,7 +3,7 @@
|
|
3
3
|
/*****************************************************************************
|
4
4
|
* FILE: anytime.css - The Any+Time(TM) JavaScript Library (stylesheet)
|
5
5
|
*
|
6
|
-
* VERSION: 4.
|
6
|
+
* VERSION: 4.1112E
|
7
7
|
*
|
8
8
|
* Copyright 2008-2010 Andrew M. Andrews III (www.AMA3.com). Some Rights
|
9
9
|
* Reserved. This work licensed under the Creative Commons Attribution-
|
@@ -1,8 +1,9 @@
|
|
1
1
|
require 'jquery/jqtouch'
|
2
2
|
|
3
|
-
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jqt
|
4
|
-
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jqt_apple
|
5
|
-
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :
|
6
|
-
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :
|
3
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jqt => ['compiled/jqtouch/jqtouch.css']
|
4
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jqt_apple => ['compiled/jqtouch/jqt.apple.css']
|
5
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jqt_default => ['compiled/jqtouch/jqt.default.css']
|
6
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jqt_jqt => ['compiled/jqtouch/jqt.jqt.css']
|
7
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jqt_iphone => ['compiled/jqtouch/iphone-emulator.css']
|
7
8
|
|
8
9
|
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jqtouch => ['jquery.jqtouch.min']
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -150,7 +150,7 @@ div#jqt {
|
|
150
150
|
a {
|
151
151
|
padding: 12px 22px 12px 10px; } }
|
152
152
|
#plastic ul li.arrow, #metal ul li.arrow {
|
153
|
-
background-image: url("
|
153
|
+
background-image: url("jqtouch/apple/chevron.png");
|
154
154
|
background-position: right center;
|
155
155
|
background-repeat: no-repeat; }
|
156
156
|
ul li a, li.img a + a {
|
@@ -165,13 +165,16 @@ div#jqt {
|
|
165
165
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
|
166
166
|
ul {
|
167
167
|
li {
|
168
|
-
a {
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
168
|
+
a.active {
|
169
|
+
background: #194fdb image_url("jqtouch/apple/selection.png") 0 0 repeat-x;
|
170
|
+
color: #fff; }
|
171
|
+
&.arrow a.active {
|
172
|
+
background-image: image_url("jqtouch/apple/listArrowSel.png");
|
173
|
+
background-position: right center;
|
174
|
+
background-repeat: no-repeat; }
|
175
|
+
a.button {
|
176
|
+
background-color: #194fdb;
|
177
|
+
color: #fff; }
|
175
178
|
&.img a + {
|
176
179
|
a {
|
177
180
|
margin: -10px 10px -20px -5px;
|
@@ -275,6 +278,8 @@ div#jqt {
|
|
275
278
|
margin: -12px 0 0 17px; } } }
|
276
279
|
&.edgetoedge {
|
277
280
|
-webkit-border-radius: 0;
|
281
|
+
* {
|
282
|
+
-webkit-border-radius: 0; }
|
278
283
|
li.sep {
|
279
284
|
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(139, 159, 171, 1)), to(rgba(181, 193, 201, 1)));
|
280
285
|
border-bottom: 1px solid #b5c1c9;
|
@@ -360,7 +365,7 @@ div#jqt {
|
|
360
365
|
&.arrow small.counter {
|
361
366
|
margin-right: 15px; } }
|
362
367
|
#plastic ul li.arrow, #metal ul li.arrow {
|
363
|
-
background-image: image_url("jqtouch/apple/
|
368
|
+
background-image: image_url("jqtouch/apple/chevron.png");
|
364
369
|
background-position: right center;
|
365
370
|
background-repeat: no-repeat; }
|
366
371
|
.edgetoedge ul, .metal ul, .plastic ul {
|
@@ -372,7 +377,6 @@ div#jqt {
|
|
372
377
|
.metal ul li {
|
373
378
|
border-top: 1px solid rgb(238, 238, 238);
|
374
379
|
border-bottom: 1px solid rgb(156, 158, 165);
|
375
|
-
background: url("../images/bgMetal.png") top left repeat-x;
|
376
380
|
font-size: 26px;
|
377
381
|
text-shadow: #fff 0 1px 0;
|
378
382
|
a {
|
@@ -399,7 +403,7 @@ div#jqt {
|
|
399
403
|
a small {
|
400
404
|
padding-right: 0;
|
401
405
|
line-height: 17px; }
|
402
|
-
background: image_url("jqtouch/apple/
|
406
|
+
background: image_url("jqtouch/apple/chevron.png") right center no-repeat; } }
|
403
407
|
.plastic {
|
404
408
|
margin: 0;
|
405
409
|
padding: 0;
|
@@ -582,3 +586,12 @@ div#jqt {
|
|
582
586
|
/* @group Toggle */
|
583
587
|
|
584
588
|
/* @end */
|
589
|
+
|
590
|
+
input[type='submit'] {
|
591
|
+
-webkit-border-radius: 4px;
|
592
|
+
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(238, 238, 238, 1)), to(rgba(156, 158, 160, 1)));
|
593
|
+
border: 1px outset #aaa;
|
594
|
+
display: block;
|
595
|
+
font-size: inherit;
|
596
|
+
font-weight: inherit;
|
597
|
+
padding: 10px; }
|