Permalink
Browse files

updating sprittes, minor tweaks

  • Loading branch information...
1 parent fb2f6a5 commit 20ba082f9fe9ee249a0b7e95120045ad401f3731 @addyosmani committed Dec 7, 2011
Showing with 11 additions and 5 deletions.
  1. +6 −0 css/ui.daterangepicker.css
  2. +4 −3 js/daterangepicker.jQuery.js
  3. +1 −2 single.html
@@ -157,6 +157,12 @@
.ui-daterangepicker-arrows .ui-daterangepicker-prev {
left: 2px;
}
+
+
+.ui-daterangepicker-arrows .ui-daterangepicker-prev{
+
+}
+
.ui-daterangepicker-arrows .ui-daterangepicker-next {
right: 2px;
}
@@ -319,14 +319,15 @@ jQuery.fn.daterangepicker = function(settings){
//inject rp
jQuery(options.appendTo).append(rp);
-
+
+
//wrap and position
rp.wrap('<div class="ui-daterangepickercontain"></div>');
//add arrows (only available on one input)
if(options.arrows && rangeInput.size()==1){
- var prevLink = jQuery('<a href="#" class="ui-daterangepicker-prev ui-corner-all" title="'+ options.prevLinkText +'"><span class="ui-icon ui-icon-triangle-1-a">'+ options.prevLinkText +'</span></a>');
- var nextLink = jQuery('<a href="#" class="ui-daterangepicker-next ui-corner-all" title="'+ options.nextLinkText +'"><span class="ui-icon ui-icon-triangle-1-e">'+ options.nextLinkText +'</span></a>');
+ var prevLink = jQuery('<a href="#" class="ui-daterangepicker-prev ui-corner-all" title="'+ options.prevLinkText +'"><span class="ui-icon ui-icon-triangle-1-e">'+ options.prevLinkText +'</span></a>');
+ var nextLink = jQuery('<a href="#" class="ui-daterangepicker-next ui-corner-all" title="'+ options.nextLinkText +'"><span class="ui-icon ui-icon-triangle-1-s">'+ options.nextLinkText +'</span></a>');
jQuery(this)
.addClass('ui-rangepicker-input ui-widget-content')
View
@@ -20,13 +20,12 @@
<!-- from here down, demo-related styles and scripts -->
<!-- from here down, demo-related styles and scripts -->
<link rel="shortcut icon" href="/images/favicon2.ico" type="image/x-icon" />
- <link href="/style/demoPages" media="screen" rel="Stylesheet" type="text/css" />
<style type="text/css">
body { font-size: 62.5%; padding:20px; }
input {width: 196px; height: 1.1em; display:block;}
h2 { clear: both; padding: 2em 0 0; }
- #rangeBa,#rangeBb { float: left; margin-right: 10px; }
+ #rangeA { float: left; margin-right: 10px; width:200px; }
</style>
</head>
<body>

0 comments on commit 20ba082

Please sign in to comment.