From 0c7b1419640b3f651d1d0f1ff7fff7ee0a85f95a Mon Sep 17 00:00:00 2001 From: "Gun.io Whitespace Robot" Date: Mon, 19 Dec 2011 06:00:38 -0500 Subject: [PATCH] Remove whitespace [Gun.io WhitespaceBot] --- .gitignore | 50 + README.rst | 2 +- static/css/base.css | 148 +- static/css/handheld.css | 2 +- static/js/calendar.js | 4 +- static/js/jquery.socialbutton.js | 90 +- static/js/jquery.ui.dialog.js | 18 +- static/js/jquery.ui.tabs.js | 2 +- static/js/jquery.ui.themeswitcher.js | 52 +- static/js/web2py_ajax.js | 18 +- static/plugin_anytime_widget/anytime.css | 30 +- static/plugin_anytime_widget/anytime.js | 446 ++--- static/plugin_color_widget/js/colorpicker.js | 12 +- static/plugin_color_widget/js/eye.js | 2 +- static/plugin_color_widget/js/layout.js | 4 +- static/plugin_color_widget/js/utils.js | 6 +- .../plugin_elrte_widget/css/elrte-inner.css | 8 +- static/plugin_elrte_widget/css/elrte.min.css | 2 +- .../smoothness/jquery-ui-1.8.13.custom.css | 10 +- static/plugin_elrte_widget/js/elrte.full.js | 1736 ++++++++--------- static/plugin_elrte_widget/js/elrte.min.js | 2 +- .../js/i18n/elrte.YOUR_LANG.js | 6 +- .../plugin_elrte_widget/js/i18n/elrte.ar.js | 12 +- .../plugin_elrte_widget/js/i18n/elrte.ca.js | 2 +- .../plugin_elrte_widget/js/i18n/elrte.cs.js | 16 +- .../plugin_elrte_widget/js/i18n/elrte.da.js | 6 +- .../plugin_elrte_widget/js/i18n/elrte.de.js | 16 +- .../plugin_elrte_widget/js/i18n/elrte.en.js | 4 +- .../plugin_elrte_widget/js/i18n/elrte.es.js | 6 +- .../plugin_elrte_widget/js/i18n/elrte.fa.js | 16 +- .../plugin_elrte_widget/js/i18n/elrte.fr.js | 6 +- .../plugin_elrte_widget/js/i18n/elrte.hr.js | 6 +- .../plugin_elrte_widget/js/i18n/elrte.hu.js | 14 +- .../plugin_elrte_widget/js/i18n/elrte.it.js | 6 +- .../plugin_elrte_widget/js/i18n/elrte.jp.js | 12 +- .../plugin_elrte_widget/js/i18n/elrte.ko.js | 6 +- .../plugin_elrte_widget/js/i18n/elrte.lv.js | 8 +- .../plugin_elrte_widget/js/i18n/elrte.pl.js | 16 +- .../js/i18n/elrte.pt_BR.js | 4 +- .../plugin_elrte_widget/js/i18n/elrte.ru.js | 14 +- .../plugin_elrte_widget/js/i18n/elrte.sk.js | 16 +- .../plugin_elrte_widget/js/i18n/elrte.th.js | 6 +- .../plugin_elrte_widget/js/i18n/elrte.tr.js | 6 +- .../plugin_elrte_widget/js/i18n/elrte.uk.js | 2 +- .../plugin_elrte_widget/js/i18n/elrte.vi.js | 6 +- .../js/i18n/elrte.zh_CN.js | 6 +- .../js/i18n/elrte.zh_TW.js | 2 +- static/plugin_managed_html/managed_html.css | 50 +- static/plugin_managed_html/managed_html.js | 66 +- static/plugin_mptt/jstree/jquery.hotkeys.js | 22 +- static/plugin_mptt/jstree/jquery.jstree.js | 1152 +++++------ .../plugin_mptt/jstree/themes/apple/style.css | 10 +- static/plugin_mptt/main.css | 8 +- static/plugin_paginator/paginator.css | 6 +- static/plugin_solidgrid/solidgrid.css | 42 +- static/plugin_solidtable/solidtable.css | 6 +- static/plugin_suggest_widget/suggest.js | 28 +- .../jquery.tablednd_0_5.js | 12 +- static/plugin_uploadify_widget/swfobject.js | 4 +- views/layout.html | 10 +- views/plugin_managed_html/page1.html | 14 +- views/plugin_mptt/index.html | 18 +- views/web2py_plugins.html | 4 +- views/web2py_plugins/index.html | 4 +- 64 files changed, 2185 insertions(+), 2135 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c091839 --- /dev/null +++ b/.gitignore @@ -0,0 +1,50 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.pyc + +# Numerous always-ignore extensions +################### +*.diff +*.err +*.orig +*.log +*.rej +*.swo +*.swp +*.vi +*~ + +*.sass-cache +# Folders to ignore +################### +.hg +.svn +.CVS +# OS or Editor folders +################### +.DS_Store +Icon? +Thumbs.db +ehthumbs.db +nbproject +.cache +.project +.settings +.tmproj +*.esproj +*.sublime-project +*.sublime-workspace +# Dreamweaver added files +################### +_notes +dwsync.xml +# Komodo +################### +*.komodoproject +.komodotools diff --git a/README.rst b/README.rst index d58fc70..3f5ddd1 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ Sqlabs About ----------------------------------------- -The aim for this project is to showcases developmental products by S-cubism. +The aim for this project is to showcases developmental products by S-cubism. Currently you can try demos for plugins of Web2py framework, and view their sources. License diff --git a/static/css/base.css b/static/css/base.css index 56d918c..f816046 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -39,7 +39,7 @@ License: This file is released under BSD and MIT */ -/* +/* credit is left where credit is due. additionally, much inspiration was taken from these projects: yui.yahooapis.com/2.8.1/build/base/base.css @@ -47,7 +47,7 @@ License: This file is released under BSD and MIT praegnanz.de/weblog/htmlcssjs-kickstart */ -/* +/* html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline) v1.4 2009-07-27 | Authors: Eric Meyer & Richard Clark html5doctor.com/html-5-reset-stylesheet/ @@ -62,7 +62,7 @@ b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, figcaption, figure, +article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video { margin:0; @@ -72,10 +72,10 @@ time, mark, audio, video { font-size:100%; vertical-align:baseline; background:transparent; -} +} article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { +footer, header, hgroup, menu, nav, section { display:block; } @@ -122,27 +122,27 @@ body { font:13px/1.231 sans-serif; *font-size:small; } /* hack retained to prese select, input, textarea, button { font:99% sans-serif; } -/* normalize monospace sizing +/* normalize monospace sizing * en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome */ pre, code, kbd, samp { font-family: monospace, sans-serif; } -/* - * minimal base styles +/* + * minimal base styles */ -/* #444 looks better than black: twitter.com/H_FJ/statuses/11800719859 */ +/* #444 looks better than black: twitter.com/H_FJ/statuses/11800719859 */ body, select, input, textarea { color:#444; } /* Headers (h1,h2,etc) have no default font-size or margin, - you'll want to define those yourself. */ - -/* www.aestheticallyloyal.com/public/optimize-legibility/ */ + you'll want to define those yourself. */ + +/* www.aestheticallyloyal.com/public/optimize-legibility/ */ h1,h2,h3,h4,h5,h6 { font-weight: bold; } -/* always force a scrollbar in non-IE */ +/* always force a scrollbar in non-IE */ html { overflow-y: scroll; } - + /* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */ a:hover, a:active { outline: none; } @@ -153,19 +153,19 @@ ul, ol { margin-left: 1.8em; } ol { list-style-type: decimal; } /* Remove margins for navigation lists */ -nav ul, nav li { margin: 0; } +nav ul, nav li { margin: 0; } small { font-size:85%; } strong, th { font-weight: bold; } -td, td img { vertical-align:top; } +td, td img { vertical-align:top; } sub { vertical-align: sub; font-size: smaller; } sup { vertical-align: super; font-size: smaller; } -pre { - padding: 15px; - +pre { + padding: 15px; + /* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */ white-space: pre; /* CSS2 */ white-space: pre-wrap; /* CSS 2.1 */ @@ -187,41 +187,41 @@ input[type="checkbox"] { vertical-align: bottom; } /* hand cursor on clickable input elements */ label, input[type=button], input[type=submit], button { cursor: pointer; } -/* webkit browsers add a 2px margin outside the chrome of form elements */ +/* webkit browsers add a 2px margin outside the chrome of form elements */ button, input, select, textarea { margin: 0; } /* colors for form validity */ input:valid, textarea:valid { } -input:invalid, textarea:invalid { +input:invalid, textarea:invalid { border-radius: 1px; - -moz-box-shadow: 0px 0px 5px red; - -webkit-box-shadow: 0px 0px 5px red; + -moz-box-shadow: 0px 0px 5px red; + -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red; } -.no-boxshadow input:invalid, +.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; } /* These selection declarations have to be separate. - No text-shadow: twitter.com/miketaylr/status/12228805301 + No text-shadow: twitter.com/miketaylr/status/12228805301 Also: hot pink. */ ::-moz-selection{ background: #555; color:#fff; text-shadow: none; } -::selection { background:#555; color:#fff; text-shadow: none; } +::selection { background:#555; color:#fff; text-shadow: none; } /* j.mp/webkit-tap-highlight-color */ -a:link { -webkit-tap-highlight-color: #555; } +a:link { -webkit-tap-highlight-color: #555; } -/* make buttons play nice in IE: +/* make buttons play nice in IE: www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */ button { width: auto; overflow: visible; } - -/* bicubic resizing for non-native sized IMG: + +/* bicubic resizing for non-native sized IMG: code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */ .ie7 img { -ms-interpolation-mode: bicubic; } -/* - * Non-semantic helper classes +/* + * Non-semantic helper classes */ /* for image replacement */ @@ -229,12 +229,12 @@ button { width: auto; overflow: visible; } /* Hide for both screenreaders and browsers css-discuss.incutio.com/wiki/Screenreader_Visibility */ -.hidden { display:none; } +.hidden { display:none; } -/* Hide only visually, but have it available for screenreaders - www.webaim.org/techniques/css/invisiblecontent/ +/* Hide only visually, but have it available for screenreaders + www.webaim.org/techniques/css/invisiblecontent/ Solution from: j.mp/visuallyhidden - Thanks Jonathan Neal! */ -.visuallyhidden { position:absolute !important; +.visuallyhidden { position:absolute !important; clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); } @@ -243,8 +243,8 @@ button { width: auto; overflow: visible; } /* >> The Magnificent CLEARFIX: Updated to prevent margin-collapsing on child elements << j.mp/bestclearfix */ .clearfix:before, .clearfix:after { - content: "\0020"; display: block; height: 0; visibility: hidden; -} + content: "\0020"; display: block; height: 0; visibility: hidden; +} .clearfix:after { clear: both; } /* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */ @@ -294,34 +294,34 @@ blockquote { input[type=text], input[type=password], textarea, select { margin: 2px 15px 2px 5px; - width: 280px; + width: 280px; background: #fff; color: #555; - border: 1px solid #dedede; + border: 1px solid #dedede; -moz-border-radius: 2px; -webkit-border-radius: 2px; - border-radius: 2px; + border-radius: 2px; font-size: 12px; } input[type=text], input[type=password] { - height: 16px; + height: 16px; } select[multiple=multiple] { - height: 90px; + height: 90px; } input[type=submit], input[type=button], button { margin: 0px; /*width: 85px;*/ - height: 22px; + height: 22px; background: #eaeaea; color: #555; border: 1px solid #dedede; -moz-border-radius: 2px; -webkit-border-radius: 2px; - border-radius: 2px; + border-radius: 2px; } input[type=submit]:disabled, input[type=button]:disabled, button:disabled { background: #ddd; @@ -336,7 +336,7 @@ input:focus, textarea:focus { background: #fafafa; } p {text-indent:30px;} -p, blockquote { +p, blockquote { margin-bottom: 10px; } @@ -357,15 +357,15 @@ h6 {font-size: 0.8em;} margin: 0 auto; padding: 0; } -#wrapper {margin: 0 auto;} -#wrapper {background-color: #fff; padding: 5px;} +#wrapper {margin: 0 auto;} +#wrapper {background-color: #fff; padding: 5px;} #statusbar { margin: 5px 0px 20px 0px;} -#footer { - padding: 5px; +#footer { + padding: 5px; } -#statusbar, #footer { - background: #eaeaea; - border-top: 1px #aaa solid; +#statusbar, #footer { + background: #eaeaea; + border-top: 1px #aaa solid; } #logo { width: 68px; @@ -379,25 +379,25 @@ h6 {font-size: 0.8em;} #right_sidebar { width: 160px; float:right; display: none; } #left_sidebar { width: 160px; float:left; display: none; } #content { float: left; /*width: 740px;*//*width: 63%;*/ /*width: 640px; float:left;*/ } /* uncomment this if you are going to use sidebars */ - + .auth_navbar { top: 0px; float: right; - padding: 3px 10px 3px 10px; + padding: 3px 10px 3px 10px; } /*********** web2py specific ***********/ div.flash { font-weight: bold; display: none; - position: fixed; + position: fixed; padding: 10px; top: 40px; right: 10px; min-width: 280px; opacity: 0.85; - margin: 0px 0px 10px 10px; - color: #fff; + margin: 0px 0px 10px 10px; + color: #fff; vertical-align: middle; cursor: pointer; background: #000; @@ -416,8 +416,8 @@ div.error { * CSS 3 Buttons * http://github.com/michenriksen/css3buttons * created by Michael Henriksen - * License: Unlicense - * + * License: Unlicense + * * *******************/ a.button { display: inline-block; padding: 3px 5px 3px 5px; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 12px; color: #3C3C3D; text-shadow: 1px 1px 0 #FFFFFF; background: #ECECEC url('../images/css3buttons_backgrounds.png') 0 0 no-repeat; white-space: nowrap; overflow: visible; cursor: pointer; text-decoration: none; border: 1px solid #CACACA; -webkit-border-radius: 2px; -moz-border-radius: 2px; -webkit-background-clip: padding-box; border-radius: 2px; outline: none; position: relative; zoom: 1; *display: inline; } @@ -655,9 +655,9 @@ max-height: 4.65em; float: left; border: 5px solid #fff; -moz-border-radius: 6px; --webkit-border-radius: 6px; +-webkit-border-radius: 6px; box-shadow: 0 0 6px #979797; --moz-box-shadow: 0 0 6px #979797; +-moz-box-shadow: 0 0 6px #979797; -webkit-box-shadow: 0 0 6px #979797; } @@ -743,39 +743,39 @@ font-weight: bold; * Media queries for responsive design */ -@media all and (orientation:portrait) { +@media all and (orientation:portrait) { /* Style adjustments for portrait mode goes here */ - + } -@media all and (orientation:landscape) { +@media all and (orientation:landscape) { /* Style adjustments for landscape mode goes here */ - + } -/* Grade-A Mobile Browsers (Opera Mobile, iPhone Safari, Android Chrome) +/* Grade-A Mobile Browsers (Opera Mobile, iPhone Safari, Android Chrome) Consider this: www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/ */ @media screen and (max-device-width: 480px) { - - + + /* Uncomment if you don't want iOS and WinMobile to mobile-optimize the text for you - j.mp/textsizeadjust + j.mp/textsizeadjust html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */ } -/* +/* * print styles - * inlined to avoid required HTTP connection www.phpied.com/delay-loading-your-print-css/ + * inlined to avoid required HTTP connection www.phpied.com/delay-loading-your-print-css/ */ @media print { * { background: transparent !important; color: #444 !important; text-shadow: none !important; } a, a:visited { color: #444 !important; text-decoration: underline; } - a:after { content: " (" attr(href) ")"; } + a:after { content: " (" attr(href) ")"; } abbr:after { content: " (" attr(title) ")"; } .ir a:after { content: ""; } /* Don't show links for images */ pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } - thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */ + thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */ tr, img { page-break-inside: avoid; } @page { margin: 0.5cm; } p, h2, h3 { orphans: 3; widows: 3; } diff --git a/static/css/handheld.css b/static/css/handheld.css index 141302e..3d91cc7 100644 --- a/static/css/handheld.css +++ b/static/css/handheld.css @@ -1,7 +1,7 @@ * { float: none; /* Screens are not big enough to account for floats */ - font-size: 80%; /* Slightly reducing font size to reduce need to scroll */ + font-size: 80%; /* Slightly reducing font size to reduce need to scroll */ background: #fff; /* As much contrast as possible */ color: #000; } \ No newline at end of file diff --git a/static/js/calendar.js b/static/js/calendar.js index 7f0b0b4..e0b992e 100644 --- a/static/js/calendar.js +++ b/static/js/calendar.js @@ -26,8 +26,8 @@ Calendar=function(J,K,H,G){this.activeDiv=null;this.currentDateEl=null;this.getD Time entry for jQuery v1.4.8. Written by Keith Wood (kbwood{at}iinet.com.au) June 2007. Minor changes by Massimo Di Pierro Nov 2010 (simplified and changed behavior) - Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and - MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. + Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and + MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. Please attribute the author if you use it. Turn an input field into an entry point for a time value. diff --git a/static/js/jquery.socialbutton.js b/static/js/jquery.socialbutton.js index 2d75238..57ffcf8 100644 --- a/static/js/jquery.socialbutton.js +++ b/static/js/jquery.socialbutton.js @@ -1,40 +1,40 @@ /** * jquery.socialbutton - jQuery plugin for social networking websites * http://itra.jp/jquery_socialbutton_plugin/ - * + * * Copyright 2010, Itrans, Inc. http://itra.jp/ - * + * * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license - * + * * Version: 1.8.0 */ /** * SYNOPSIS - * - * + * + * * mixi_check * http://developer.mixi.co.jp/connect/mixi_plugin/mixi_check/spec_mixi_check - * + * * $('#mixi_check').socialbutton('mixi_check', { * key: 'mixi-check-key' * }); - * + * * $('#mixi_check').socialbutton('mixi_check', { * key: 'mixi-check-key', * button: 'button-1', * url: 'http://itra.jp/' * }); - * - * + * + * * mixi_like * http://developer.mixi.co.jp/connect/mixi_plugin/favorite_button/spec - * + * * $('#mixi_like').socialbutton('mixi_like', { * key: 'mixi-check-key', * }); - * + * * $('#mixi_like').socialbutton('mixi_like', { * key: 'mixi-check-key', * url: 'http://itra.jp/', @@ -43,13 +43,13 @@ * show_faces: true, * style: 'additional-style-here' * }); - * - * + * + * * facebook_like * http://developers.facebook.com/docs/reference/plugins/like - * + * * $('#facebook_like').socialbutton('facebook_like'); - * + * * $('#facebook_like').socialbutton('facebook_like', { * button: 'standard', // synonym 'layout' * url: 'http://itra.jp', @@ -61,25 +61,25 @@ * font: 'arial', * colorscheme: 'light' * }); - * - * + * + * * facebook_share * http://developers.facebook.com/docs/share - * + * * $('#facebook_share').socialbutton('facebook_share'); - * + * * $('#facebook_share').socialbutton('facebook_share', { * button: 'button_count', // synonym 'type' * url: 'http://itra.jp', * text: 'Share' * }); - * - * + * + * * Twitter * http://twitter.com/goodies/tweetbutton - * + * * $('#twitter').socialbutton('twitter'); - * + * * $('#twitter').socialbutton('twitter', { * button: 'vertical', // synonym 'count' * url: 'http://itra.jp/', @@ -88,26 +88,26 @@ * via: 'ishiiyoshinori', * related: 'twitter' * }); - * - * + * + * * GREE Social Feedback * http://developer.gree.co.jp/connect/plugins/sf - * + * * $('#gree_sf').socialbutton('gree_sf'); - * + * * $('#gree_sf').socialbutton('gree_sf', { * button: 0, // synonym 'type' * url: 'http://itra.jp/', * width: 0, // auto * height: 20 * }); - * - * + * + * * Evernote Site Memory * http://www.evernote.com/about/developer/sitememory/ - * + * * $('#evernote').socialbutton('evernote'); - * + * * $('#evernote').socialbutton('evernote', { * button: 'article-clipper', * url: 'http://itra.jp/', @@ -119,38 +119,38 @@ * suggest_tags: 'comma-separated-tags,up-to-three-tags', * styling: 'full' * }); - * - * + * + * * Hatena Bookmark * http://b.hatena.ne.jp/ - * + * * $('#hatena').socialbutton('hatena'); - * + * * $('#hatena').socialbutton('hatena', { * button: 'standard', * url: 'http://itra.jp/', * title: 'page-title' * }); - * - * + * + * * Hatena Bookmark (Old Style) * http://b.hatena.ne.jp/ - * + * * $('#hatena').socialbutton('hatena_oldstyle'); - * + * * $('#hatena').socialbutton('hatena_oldstyle', { * button: '/path/to/your-icon.png', * url: 'http://itra.jp/', * padding: 10, * height: 15 * }); - * - * + * + * * Google +1 Button * http://www.google.com/webmasters/+1/button/ - * + * * $('#google').socialbutton('google_plusone'); - * + * * $('#google').socialbutton('google_plusone', { * lang: 'ja', * parsetags: 'explicit', @@ -159,7 +159,7 @@ * href: 'http://itra.jp/', * size: 'standard' * }); - * + * */ (function($) { @@ -653,7 +653,7 @@ function socialbutton_hatena(target, options, defaults, index, max_index) 'data-hatena-bookmark-layout': layout, 'title': 'このエントリーをはてなブックマークに追加' }); - + var tag = 'このエントリーをはてなブックマークに追加' + ''; diff --git a/static/js/jquery.ui.dialog.js b/static/js/jquery.ui.dialog.js index 0551d90..cba6e86 100644 --- a/static/js/jquery.ui.dialog.js +++ b/static/js/jquery.ui.dialog.js @@ -112,7 +112,7 @@ $.widget("ui.dialog", { .attr('tabIndex', -1).css('outline', 0).keydown(function(event) { if (options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode && event.keyCode === $.ui.keyCode.ESCAPE) { - + self.close(event); event.preventDefault(); } @@ -214,7 +214,7 @@ $.widget("ui.dialog", { destroy: function() { var self = this; - + if (self.overlay) { self.overlay.destroy(); } @@ -240,7 +240,7 @@ $.widget("ui.dialog", { close: function(event) { var self = this, maxZ, thisZ; - + if (false === self._trigger('beforeClose', event)) { return; } @@ -533,7 +533,7 @@ $.widget("ui.dialog", { at: myAt.join(" "), offset: offset.join(" ") }; - } + } position = $.extend({}, $.ui.dialog.prototype.options.position, position); } else { @@ -561,7 +561,7 @@ $.widget("ui.dialog", { $.each( options, function( key, value ) { self._setOption( key, value ); - + if ( key in sizeRelatedOptions ) { resize = true; } @@ -613,7 +613,7 @@ $.widget("ui.dialog", { if ( isDraggable && !value ) { uiDialog.draggable( "destroy" ); } - + if ( !isDraggable && value ) { self._makeDraggable(); } @@ -675,7 +675,7 @@ $.widget("ui.dialog", { }) .height(); minContentHeight = Math.max( 0, options.minHeight - nonContentHeight ); - + if ( options.height === "auto" ) { // only needed for IE6 support if ( $.support.minHeight ) { @@ -750,7 +750,7 @@ $.extend($.ui.dialog.overlay, { $(document).bind('keydown.dialog-overlay', function(event) { if (dialog.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode && event.keyCode === $.ui.keyCode.ESCAPE) { - + dialog.close(event); event.preventDefault(); } @@ -786,7 +786,7 @@ $.extend($.ui.dialog.overlay, { } $el.remove(); - + // adjust the maxZ to allow other modal dialogs to continue to work (see #4309) var maxZ = 0; $.each(this.instances, function() { diff --git a/static/js/jquery.ui.tabs.js b/static/js/jquery.ui.tabs.js index 4e5165a..55ec0ec 100644 --- a/static/js/jquery.ui.tabs.js +++ b/static/js/jquery.ui.tabs.js @@ -720,7 +720,7 @@ $.extend( $.ui.tabs.prototype, { var t = o.selected; self.select( ++t < self.anchors.length ? t : 0 ); }, ms ); - + if ( e ) { e.stopPropagation(); } diff --git a/static/js/jquery.ui.themeswitcher.js b/static/js/jquery.ui.themeswitcher.js index 5f189fd..1a1b4f1 100644 --- a/static/js/jquery.ui.themeswitcher.js +++ b/static/js/jquery.ui.themeswitcher.js @@ -15,10 +15,10 @@ $.fn.themeswitcher = function(settings){ onSelect: function(){} }, settings); - //markup + //markup var button = $(''+ options.initialText +''); var switcherpane = $('').find('div').removeAttr('id'); - + //button events button.click( function(){ @@ -27,7 +27,7 @@ $.fn.themeswitcher = function(settings){ return false; } ); - + //menu events (mouseout didn't work...) switcherpane.hover( function(){}, @@ -37,8 +37,8 @@ $.fn.themeswitcher = function(settings){ //show/hide panel functions $.fn.spShow = function(){ $(this).css({top: button.offset().top + options.buttonHeight + 6, left: button.offset().left}).slideDown(50); button.css(button_active); options.onOpen(); } $.fn.spHide = function(){ $(this).slideUp(50, function(){options.onClose();}); button.css(button_default); } - - + + /* Theme Loading ---------------------------------------------------------------------*/ switcherpane.find('a').click(function(){ @@ -50,19 +50,19 @@ $.fn.themeswitcher = function(settings){ if(options.closeOnSelect && switcherpane.is(':visible')){ switcherpane.spHide(); } return false; }); - + //function to append a new theme stylesheet with the new style changes function updateCSS(locStr){ var cssLink = $(''); $("head").append(cssLink); - - + + if( $("link.ui-theme").size() > 3){ $("link.ui-theme:first").remove(); - } - } - - /* Inline CSS + } + } + + /* Inline CSS ---------------------------------------------------------------------*/ var button_default = { fontFamily: 'Trebuchet MS, Verdana, sans-serif', @@ -74,7 +74,7 @@ $.fn.themeswitcher = function(settings){ '-webkit-border-radius': '6px', textDecoration: 'none', padding: '3px 3px 3px 8px', - width: options.width - 11,//minus must match left and right padding + width: options.width - 11,//minus must match left and right padding display: 'block', height: options.buttonHeight, outline: '0' @@ -96,25 +96,25 @@ $.fn.themeswitcher = function(settings){ '-webkit-border-bottom-right-radius': 0, outline: '0' }; - - - + + + //button css button.css(button_default) .hover( - function(){ - $(this).css(button_hover); + function(){ + $(this).css(button_hover); }, - function(){ + function(){ if( !switcherpane.is(':animated') && switcherpane.is(':hidden') ){ $(this).css(button_default); } - } + } ) .find('.jquery-ui-themeswitcher-icon').css({ float: 'right', width: '16px', height: '16px', background: 'url(http://jqueryui.com/themeroller/themeswitchertool/images/icon_color_arrow.gif) 50% 50% no-repeat' - }); + }); //pane css switcherpane.css({ position: 'absolute', @@ -141,19 +141,19 @@ $.fn.themeswitcher = function(settings){ height: options.height }).end() .find('li').hover( - function(){ + function(){ $(this).css({ 'borderColor':'#555', 'background': 'url(http://jqueryui.com/themeroller/themeswitchertool/images/menuhoverbg.png) 50% 50% repeat-x', cursor: 'pointer' - }); + }); }, - function(){ + function(){ $(this).css({ 'borderColor':'#111', 'background': '#000', cursor: 'auto' - }); + }); } ).css({ width: options.width-30, @@ -181,7 +181,7 @@ $.fn.themeswitcher = function(settings){ float: 'left', margin: '3px 0' }).end(); - + $(this).append(button); diff --git a/static/js/web2py_ajax.js b/static/js/web2py_ajax.js index 7db065d..cc637ec 100644 --- a/static/js/web2py_ajax.js +++ b/static/js/web2py_ajax.js @@ -18,7 +18,7 @@ function ajax(u,s,t) { } if (pcs.length>0){query = pcs.join("&");} } - jQuery.ajax({type: "POST", url: u, data: query, success: function(msg) { if(t) { if(t==':eval') eval(msg); else jQuery("#" + t).html(msg); } } }); + jQuery.ajax({type: "POST", url: u, data: query, success: function(msg) { if(t) { if(t==':eval') eval(msg); else jQuery("#" + t).html(msg); } } }); } String.prototype.reverse = function () { return this.split('').reverse().join('');}; @@ -40,12 +40,12 @@ function web2py_ajax_init() { inputField:this, ifFormat:datetime_format, showsTime: true,timeFormat: "24" }); }); } catch(e) {}; - jQuery("input.time").live('focus', function() { var el = jQuery(this); - if (!el.hasClass('hasTimeEntry')) try { el.timeEntry(); } catch(e) {}; + jQuery("input.time").live('focus', function() { var el = jQuery(this); + if (!el.hasClass('hasTimeEntry')) try { el.timeEntry(); } catch(e) {}; }); }; -jQuery(function() { +jQuery(function() { var flash = jQuery('.flash'); flash.hide(); if(flash.html()) flash.slideDown(); @@ -69,16 +69,16 @@ function web2py_ajax_page(method,action,data,target) { xhr.setRequestHeader('web2py-component-element',target);}, 'complete':function(xhr,text){ var html=xhr.responseText; - var content=xhr.getResponseHeader('web2py-component-content'); + var content=xhr.getResponseHeader('web2py-component-content'); var command=xhr.getResponseHeader('web2py-component-command'); var flash=xhr.getResponseHeader('web2py-component-flash'); var t = jQuery('#'+target); - if(content=='prepend') t.prepend(html); + if(content=='prepend') t.prepend(html); else if(content=='append') t.append(html); - else if(content!='hide') t.html(html); + else if(content!='hide') t.html(html); web2py_trap_form(action,target); web2py_trap_link(target); - web2py_ajax_init(); + web2py_ajax_init(); if(command) eval(command); if(flash) jQuery('.flash').html(flash).slideDown(); } @@ -106,5 +106,5 @@ function web2py_trap_link(target) { web2py_ajax_page('get',link.attr('href'),[],target); e.preventDefault(); }); - }); + }); } \ No newline at end of file diff --git a/static/plugin_anytime_widget/anytime.css b/static/plugin_anytime_widget/anytime.css index f1998f1..44bc86b 100644 --- a/static/plugin_anytime_widget/anytime.css +++ b/static/plugin_anytime_widget/anytime.css @@ -3,7 +3,7 @@ * * VERSION: 4.1112 * - * Copyright 2008-2010 Andrew M. Andrews III (www.AMA3.com). Some Rights + * Copyright 2008-2010 Andrew M. Andrews III (www.AMA3.com). Some Rights * Reserved. This work licensed under the Creative Commons Attribution- * Noncommercial-Share Alike 3.0 Unported License except in jurisdicitons * for which the license has been ported by Creative Commons International, @@ -42,7 +42,7 @@ { border:0; font: inherit; - font-size: x-small; + font-size: x-small; font-style:normal; font-weight:normal; list-style-type:none; @@ -53,7 +53,7 @@ /* * .AnyTime-win simulates a "window" that might be a popup or inline. - * Styles should include background-color and border. A window should + * Styles should include background-color and border. A window should * be sized according to its contents; therefore, width and height * should NOT be specified. */ @@ -69,7 +69,7 @@ } /* - * .AnyTime-pkr is the Date/Time picker, inserted into the page immediately + * .AnyTime-pkr is the Date/Time picker, inserted into the page immediately * after the input (text field) to which it corresponds. The picker * attempts to size itself automatically based on its format fields; * therefore, do NOT set width or height. This is empty by default, @@ -122,7 +122,7 @@ /* * .AnyTime-x-btn is a pseudo-button that, when clicked, causes the entire - * picker to disappear (the picker also disappears if the user clicks + * picker to disappear (the picker also disappears if the user clicks * almost anywhere off of it, or presses ESC). This is designed to have, * at minumum, a border and float:right. */ @@ -437,14 +437,14 @@ /* * .AnyTime-hr-btn is a pseudo-button for selecting an hour. * Style should include width. - * Each button also has a style of its own. + * Each button also has a style of its own. */ .AnyTime-hr-btn { text-align:right; padding-right:0.25em; - width:3em; + width:3em; } .AnyTime-hr0-btn, @@ -503,7 +503,7 @@ * A width should be specified. * Each button also has its own style. */ - + .AnyTime-min-ten-btn, .AnyTime-min-one-btn { @@ -582,14 +582,14 @@ /* * .AnyTime-offs contains the UTC offset (timezone) selection pseudo-buttons. - * The container is designed to have clear:left, float:left and padding. + * The container is designed to have clear:left, float:left and padding. * The two buttons have their own styles, and .AnyTime-off-select-btn should * include a width. * The width of the container and the .AnyTime-off-cur-btn should not be * specified, as they are computed based on the width of the * .AnyTime-off-select-btn and the .AnyTime-time container. */ - + .AnyTime-offs { clear:left; @@ -613,7 +613,7 @@ * .AnyTime-yr-selector is an overlay (popup) for selecting a specific year. * The picker attempts to size the overlay automatically, based on * whether "era" buttons are displayed; therefore, do not set width. - * AnyTime-hdr-yr-selector is its title bar. + * AnyTime-hdr-yr-selector is its title bar. * AnyTime-body-yr-selector is its body. */ @@ -627,7 +627,7 @@ .AnyTime-body-yr-selector { - padding:1em; + padding:1em; } /* @@ -704,7 +704,7 @@ * .AnyTime-off-selector is an overlay (popup) for selecting a specific year. * The picker attempts to size the overlay automatically, based on * its contents; therefore, do not set width. - * .AnyTime-hdr-off-selector is its title bar. + * .AnyTime-hdr-off-selector is its title bar. * .AnyTime-body-off-selector is its body. * .AnyTime-off-off is the column of offset-selector pseudo-buttons. * .AnyTime-off-off-btn is an offset-selector pseudo-button. @@ -721,7 +721,7 @@ .AnyTime-body-off-selector { - margin:0.5em; + margin:0.5em; } .AnyTime-off-off { @@ -761,7 +761,7 @@ * out-of-range. Typically, this is to give it a "grayed-out" appearance. * Note that color alone is not sufficient for color-blind users to * differentiate the buttons, but since there's no harm in pressing these - * buttons, it's probably no big deal. + * buttons, it's probably no big deal. */ .AnyTime-out-btn diff --git a/static/plugin_anytime_widget/anytime.js b/static/plugin_anytime_widget/anytime.js index d9fdb82..cb0af3d 100644 --- a/static/plugin_anytime_widget/anytime.js +++ b/static/plugin_anytime_widget/anytime.js @@ -3,7 +3,7 @@ * * VERSION: 4.1112H * - * Copyright 2008-2010 Andrew M. Andrews III (www.AMA3.com). Some Rights + * Copyright 2008-2010 Andrew M. Andrews III (www.AMA3.com). Some Rights * Reserved. This work licensed under the Creative Commons Attribution- * Noncommercial-Share Alike 3.0 Unported License except in jurisdicitons * for which the license has been ported by Creative Commons International, @@ -27,7 +27,7 @@ * * AnyTime.pad() * Pads a value with a specific number of leading zeroes. - * + * * AnyTime.noPicker() * Destroys a calendar widget previously added by AnyTime.picker(). * Can also be invoked via jQuery using $(selector).AnyTime_noPicker() @@ -79,27 +79,27 @@ var AnyTime = var __daysIn = [ 31,28,31,30,31,30,31,31,30,31,30,31 ]; var __iframe = null; var __initialized = false; - var __msie6 = ( navigator.userAgent.indexOf('MSIE 6') > 0 ); - var __msie7 = ( navigator.userAgent.indexOf('MSIE 7') > 0 ); + var __msie6 = ( navigator.userAgent.indexOf('MSIE 6') > 0 ); + var __msie7 = ( navigator.userAgent.indexOf('MSIE 7') > 0 ); var __pickers = []; // Add methods to jQuery to create and destroy pickers using // the typical jQuery approach. - + jQuery.prototype.AnyTime_picker = function( options ) { return this.each( function(i) { AnyTime.picker( this.id, options ); } ); } - + jQuery.prototype.AnyTime_noPicker = function() { return this.each( function(i) { AnyTime.noPicker( this.id ); } ); } - + // Add special methods to jQuery to compute the height and width // of picker components differently for Internet Explorer 6.x // This prevents the pickers from being too tall and wide. - + jQuery.prototype.AnyTime_height = function(inclusive) { return ( __msie6 ? @@ -114,7 +114,7 @@ var AnyTime = this.outerWidth(inclusive) ); }; - + // Add a method to jQuery to change the classes of an element to // indicate whether it's value is current (used by AnyTime.picker), // and another to trigger the click handler for the currently- @@ -136,20 +136,20 @@ var AnyTime = this.removeClass('AnyTime-out-btn ui-state-disabled'); } }; - + jQuery.prototype.AnyTime_clickCurrent = function() { this.find('.AnyTime-cur-btn').triggerHandler('click'); } - - $(document).ready( + + $(document).ready( function() { // IE6 doesn't float popups over is "hidden" (the picker appears in +// hideInput - if true, the is "hidden" (the picker appears in // its place). This actually sets the border, height, margin, padding // and width of the field as small as possivle, so it can still get focus. // If you try to hide the field using traditional techniques (such as @@ -1301,7 +1301,7 @@ AnyTime.picker = function( id, options ) { // Create a new private object instance to manage the picker, // if one does not already exist. - + if ( __pickers[id] ) throw 'Cannot create another AnyTime picker for "'+id+'"'; @@ -1310,7 +1310,7 @@ AnyTime.picker = function( id, options ) __pickers[id] = { // private members - + twelveHr: false, ajaxOpts: null, // options for AJAX requests denyTab: true, // set to true to stop Opera from tabbing away @@ -1407,7 +1407,7 @@ AnyTime.picker = function( id, options ) if ( ! this.ajaxOpts.success ) this.ajaxOpts.success = function(data,status) { _this.inp.val(data); }; } - + if ( options.earliest ) { if ( typeof options.earliest.getTime == 'function' ) @@ -1419,7 +1419,7 @@ AnyTime.picker = function( id, options ) if ( options.firstDOW ) { if ( ( options.firstDOW < 0 ) || ( options.firstDOW > 6 ) ) - throw new Exception('illegal firstDOW: ' + options.firstDOW); + throw new Exception('illegal firstDOW: ' + options.firstDOW); this.fDOW = options.firstDOW; } @@ -1461,7 +1461,7 @@ AnyTime.picker = function( id, options ) var askTime = askHour || askMinute || askSec || askOff; if ( askOff ) - this.oConv = new AnyTime.Converter( { format: options.formatUtcOffset || + this.oConv = new AnyTime.Converter( { format: options.formatUtcOffset || format.match(/\S*%[-+:;<>#@]\S*/g).join(' ') } ); // Create the picker HTML and add it to the page. @@ -1473,7 +1473,7 @@ AnyTime.picker = function( id, options ) this.inp.after(this.div); this.wMinW = this.div.outerWidth(!$.browser.safari); this.wMinH = this.div.AnyTime_height(true); - this.hTitle = $( '
' ); + this.hTitle = $( '
' ); this.div.append( this.hTitle ); this.dB = $( '
' ); this.div.append( this.dB ); @@ -1482,7 +1482,7 @@ AnyTime.picker = function( id, options ) if ( options.hideInput ) this.inp.css({border:0,height:'1px',margin:0,padding:0,width:'1px'}); - + // Add dismiss box to title (if popup) t = null; @@ -1520,7 +1520,7 @@ AnyTime.picker = function( id, options ) 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); - + shownFields++; } // if ( askYear ) @@ -1534,7 +1534,7 @@ AnyTime.picker = function( id, options ) this.dD.append(this.dMo); for ( i = 0 ; i < 12 ; i++ ) { - var mBtn = this.btn( this.dMo, this.conv.mAbbr[i], + var mBtn = this.btn( this.dMo, this.conv.mAbbr[i], function( event ) { var elem = $(event.target); @@ -1649,7 +1649,7 @@ AnyTime.picker = function( id, options ) } shownFields++; - + } // if ( askHour ) if ( askMinute ) @@ -1663,7 +1663,7 @@ AnyTime.picker = function( id, options ) this.dM.append(tensDiv); for ( i = 0 ; i < 6 ; i++ ) - this.btn( tensDiv, i, + this.btn( tensDiv, i, function( event ) { var elem = $(event.target); @@ -1681,7 +1681,7 @@ AnyTime.picker = function( id, options ) onesDiv = $('