Editorial Calendar - Version 1.0

Version Description

  • Fixed a scrolling issue where you can't click the action links on the last post if the individual day showing a scroll bar.
Download this release

Release Info

Developer zgrossbart
Plugin Icon wp plugin Editorial Calendar
Version 1.0
Comparing to
See all releases

Code changes from version 0.9 to 1.0

Files changed (4) hide show
  1. edcal.js +18 -4
  2. edcal.php +1 -1
  3. readme.txt +8 -1
  4. vid.png +0 -0
edcal.js CHANGED
@@ -756,7 +756,7 @@ var edcal = {
756
  }
757
 
758
  var time;
759
- if(post.time != '') {
760
  time = Date.parse(post.time);
761
  } else {
762
  time = Date.parse('10:00:00'); // If we don't have a time set, default it to 10am
@@ -1032,15 +1032,29 @@ var edcal = {
1032
  if (edcal.inDrag || !edcal.isPostEditable(post)) {
1033
  return;
1034
  }
1035
- jQuery('#' + postid + ' > div.postactions').show();
 
 
 
 
 
 
 
 
 
 
 
 
 
1036
  },
1037
-
1038
  /*
1039
  Hides the action links for the post with the specified
1040
  post ID.
1041
  */
1042
  hideActionLinks: function(/*string*/ postid) {
1043
- jQuery('#' + postid + ' > div.postactions').hide();
 
1044
  },
1045
 
1046
  /*
756
  }
757
 
758
  var time;
759
+ if(post.time !== '') {
760
  time = Date.parse(post.time);
761
  } else {
762
  time = Date.parse('10:00:00'); // If we don't have a time set, default it to 10am
1032
  if (edcal.inDrag || !edcal.isPostEditable(post)) {
1033
  return;
1034
  }
1035
+
1036
+ var elem = jQuery('#' + postid + ' > div.postactions');
1037
+
1038
+ elem.show();
1039
+
1040
+
1041
+ if (elem.parent().position().top > 40) {
1042
+ /*
1043
+ This means the action links probably won't be visible and we need to
1044
+ scroll to make sure the users can see it.
1045
+ */
1046
+ var p = jQuery('#' + postid + ' > div.postactions').parent().parent();
1047
+ p.scrollTop(p.scrollTop() + 45);
1048
+ }
1049
  },
1050
+
1051
  /*
1052
  Hides the action links for the post with the specified
1053
  post ID.
1054
  */
1055
  hideActionLinks: function(/*string*/ postid) {
1056
+ var elem = jQuery('#' + postid + ' > div.postactions');
1057
+ elem.hide();
1058
  },
1059
 
1060
  /*
edcal.php CHANGED
@@ -18,7 +18,7 @@
18
  /*
19
  Plugin Name: WordPress Editorial Calendar
20
  Description: The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
21
- Version: 0.9
22
  Author: Colin Vernon, Justin Evans, Mary Vogt, and Zack Grossbart
23
  Author URI: http://www.zackgrossbart.com
24
  Plugin URI: http://www.zackgrossbart.com
18
  /*
19
  Plugin Name: WordPress Editorial Calendar
20
  Description: The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
21
+ Version: 1.0
22
  Author: Colin Vernon, Justin Evans, Mary Vogt, and Zack Grossbart
23
  Author URI: http://www.zackgrossbart.com
24
  Plugin URI: http://www.zackgrossbart.com
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: cvernon, justinstresslimit, MaryVogt, zgrossbart
3
  Tags: posts, post, calendar, AJAX, admin, administration
4
  Requires at least: 2.8.5
5
  Tested up to: 3.0.1
6
- Stable tag: 0.9
7
 
8
  The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
9
 
@@ -46,6 +46,10 @@ Thank you to everyone who has given us feedback and helped us improve this plugi
46
 
47
  From time to time people write articles about the editorial calendar. We appreciate every one.
48
 
 
 
 
 
49
  <a href="http://chrisg.org/drag-and-drop-post-scheduling-with-the-editorial-calendar-wordpress-plugin/">Drag and Drop Post Scheduling with the Editorial Calendar WordPress plugin</a> by <a href="http://chrisg.org/">Chris Garrett</a>
50
 
51
  <a href="http://theincidentaleconomist.com/wordpress-plug-in-plug-editorial-calendar/">WordPress Plug-In Plug: Editorial Calendar</a> on <a href="http://theincidentaleconomist.com/">The Incidental Economist</a>
@@ -131,6 +135,9 @@ Moving published posts can cause problems with some RSS feeds and is generally n
131
 
132
  == Changelog ==
133
 
 
 
 
134
  = 0.9 =
135
  * The calendar now uses the QUnit unit test framework to make sure the calendar maintains high quality in every release. You can see the <a href="http://www.zackgrossbart.com/extras/sandbox/wp-admin/edit.php?page=cal&qunit=true">tests run</a> on our integration blog or run them on your own blog by adding &qunit=true to the end of the URL for the calendar.
136
  * Made it easier to see the first day of the month using a special header and background color.
3
  Tags: posts, post, calendar, AJAX, admin, administration
4
  Requires at least: 2.8.5
5
  Tested up to: 3.0.1
6
+ Stable tag: 1.0
7
 
8
  The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
9
 
46
 
47
  From time to time people write articles about the editorial calendar. We appreciate every one.
48
 
49
+ <a href="http://www.chrisbrogan.com/use-an-editorial-calendar/">Use An Editorial Calendar</a> by <a href="http://www.chrisbrogan.com">Chris Brogan</a>
50
+
51
+ <a href="http://www.smashingmagazine.com/2010/08/30/the-importance-of-consistency-using-editorial-calendars-and-style-guides/">Blogging For Web Designers: Editorial Calendars and Style Guides</a> by <a href="http://jessica.smashingmagazine.com/">Jessica Bordeau</a> at <a href="http://www.smashingmagazine.com/">Smashing Magazine</a>
52
+
53
  <a href="http://chrisg.org/drag-and-drop-post-scheduling-with-the-editorial-calendar-wordpress-plugin/">Drag and Drop Post Scheduling with the Editorial Calendar WordPress plugin</a> by <a href="http://chrisg.org/">Chris Garrett</a>
54
 
55
  <a href="http://theincidentaleconomist.com/wordpress-plug-in-plug-editorial-calendar/">WordPress Plug-In Plug: Editorial Calendar</a> on <a href="http://theincidentaleconomist.com/">The Incidental Economist</a>
135
 
136
  == Changelog ==
137
 
138
+ = 1.0 =
139
+ * Fixed a scrolling issue where you can't click the action links on the last post if the individual day showing a scroll bar.
140
+
141
  = 0.9 =
142
  * The calendar now uses the QUnit unit test framework to make sure the calendar maintains high quality in every release. You can see the <a href="http://www.zackgrossbart.com/extras/sandbox/wp-admin/edit.php?page=cal&qunit=true">tests run</a> on our integration blog or run them on your own blog by adding &qunit=true to the end of the URL for the calendar.
143
  * Made it easier to see the first day of the month using a special header and background color.
vid.png ADDED
Binary file