Browse files

The rest of the changes.

  • Loading branch information...
1 parent 3a56055 commit 2fa74f00053a17899d803709898d94ef0b5bfded @Boberober Boberober committed Jun 7, 2012
Showing with 18 additions and 11 deletions.
  1. +7 −4 datepicker/datePicker.css
  2. +1 −0 functions_admin.php
  3. +8 −5 scripts.js
  4. +2 −2 styles.css
View
11 datepicker/datePicker.css
@@ -3,8 +3,9 @@
table.jCalendar {
border: 1px solid #000;
background: #aaa;
- border-collapse: separate;
- border-spacing: 2px;
+ border-collapse: separate;
+ border-spacing: 2px;
+ width: 100%;
}
table.jCalendar th {
background: #333;
@@ -58,7 +59,9 @@ table.jCalendar td.unselectable.dp-hover {
/* For the popup */
/* NOTE - you will probably want to style a.dp-choose-date - see how I did it in demo.css */
-
+a.dp-choose-date{
+ margin-left: 5px;
+}
div.dp-popup {
position: relative;
background: #ccc;
@@ -126,4 +129,4 @@ div.dp-popup td {
}
div.dp-popup td.disabled {
cursor: default;
-}
+}
View
1 functions_admin.php
@@ -844,6 +844,7 @@ function simple_fields_field_group_add_field_template($fieldID, $field_group_in_
$out .= "<div class='" . (($field_type=="date") ? "" : " hidden ") . " simple-fields-field-type-options simple-fields-field-type-options-date'>";
$out .= "<input type='checkbox' name='field[{$fieldID}][type_date_options][use_time]' " . (($field_type_date_option_use_time) ? " checked='checked'" : "") . " value='1' /> ".__('Also show time', 'simple-fields');
$out .= "</div>";
+
// connect post - select post types
$out .= "<div class='" . (($field_type=="post") ? "" : " hidden ") . " simple-fields-field-type-options simple-fields-field-type-options-post'>";
View
13 scripts.js
@@ -159,11 +159,11 @@ var simple_fields_tinymce_iframes = new Array;
$("li.simple-fields-field-group-one-field").live("mouseenter", function() {
$(this).find("div.delete").show();
});
- $("li.simple-fields-field-group-one-field").live("mouseleave", function() {
+ $("li.simple-fields-field-group-one-field").on("mouseleave", function() {
$(this).find("div.delete").hide();
});
- $("li.simple-fields-field-group-one-field div.delete a").live("click", function(){
+ $("li.simple-fields-field-group-one-field div.delete a").on("click", function(){
if (confirm(sfstrings.confirmDelete)) {
$(this).closest("li").find(".hidden_deleted").attr("value", 1);
$(this).closest("li").hide("slow");
@@ -172,15 +172,15 @@ var simple_fields_tinymce_iframes = new Array;
return false;
});
- $(".simple-fields-field-group-delete a").live("click", function() {
+ $(".simple-fields-field-group-delete a").on("click", function() {
if (confirm(sfstrings.confirmDeleteGroup)) {
return true;
} else {
}
return false;
});
- $(".simple-fields-post-connector-delete a").live("click", function() {
+ $(".simple-fields-post-connector-delete a").on("click", function() {
if (confirm(sfstrings.confirmDeleteConnector)) {
return true;
} else {
@@ -587,7 +587,10 @@ var simple_fields_tinymce_iframes = new Array;
}
// type date
- $('input.simple-fields-field-type-date').datePicker(simple_fields_datepicker_args);
+ $('input.simple-fields-field-type-date').datePicker();
+
+
+
});
View
4 styles.css
@@ -251,11 +251,11 @@ ul.simple-fields-metabox-field-group-fields-repeatable .simple-fields-metabox-fi
{
width: 6em;
}
-
+/*
.simple-fields-metabox-field-group .dp-choose-date {
display: none;
}
-
+*/
.simple-fields-metabox-field-textarea-tinymce-wrapper {
width: 100%;
}

0 comments on commit 2fa74f0

Please sign in to comment.