Commit 64330547 authored by lechuck's avatar lechuck Committed by lucha
Browse files

simply-exclude plugin 2.0.6.2

parent 9dacbdac
jQuery(document).ready(function() {
jQuery('td.column-se-actions input.se-term-input').click(function(){
//alert('click');
var input_name = jQuery(this).attr('name');
var is_checked = jQuery(this).attr('checked');
var label = jQuery(this).parent('td.column-se-actions');
//var label = jQuery(this).parents('td.column-se-actions');
var label = jQuery(this).next('label');
if (is_checked == 'checked') is_checked = "yes";
else is_checked = "no";
//alert('input_name=['+input_name+'] checked=['+is_checked+']');
//se_send_update(input_name, is_checked);
var data = {
action: 'se_update',
se_action: 'se_update_terms',
......@@ -21,22 +18,26 @@ jQuery(document).ready(function() {
};
jQuery.post(ajaxurl, data, function(response) {
if (response == "SUCCESS") // SUCCESS is yellow fade to white
jQuery(label).stop().css("background-color", "#FFFF9C").animate({ backgroundColor: "#FFFFFF"}, 1500);
else // On !SUCCESS is red fade to white
jQuery(label).stop().css("background-color", "#FF0000").animate({ backgroundColor: "#FFFFFF"}, 1500);
var label_background_color = jQuery(label).css('background-color');
if (response == "SUCCESS") { // SUCCESS is yellow fade to white
jQuery(label).stop().css("background-color", "#FFFF9C").animate({ backgroundColor: label_background_color}, 1500, 'swing', function(){
jQuery(label).css('background-color', label_background_color);
});
} else { // On !SUCCESS is red fade to white
jQuery(label).stop().css("background-color", "#FF0000").animate({ backgroundColor: label_background_color}, 1500, 'swing', function(){
jQuery(label).css('background-color', label_background_color);
});
}
});
});
//jQuery('table.simplyexclude-actions-panel input[type="radio"]').click(function(){
jQuery('table.simply-exclude-settings-postbox input[type="radio"]').click(function(){
//alert('click');
var input_name = jQuery(this).attr('name');
var value = jQuery(this).attr('value');
var label = jQuery(this).parent('td.inc-excl');
//alert("input_name=["+input_name+"] value=["+value+"]");
var label = jQuery(this).parents('td.inc-excl');
//var label = jQuery(this).next('label');
var data = {
action: 'se_update',
......@@ -46,10 +47,12 @@ jQuery(document).ready(function() {
};
jQuery.post(ajaxurl, data, function(response) {
var label_background_color = jQuery(label).css('background-color');
if (response == "SUCCESS") // SUCCESS is yellow fade to white
jQuery(label).stop().css("background-color", "#FFFF9C").animate({ backgroundColor: "#FFFFFF"}, 1500);
jQuery(label).stop().css("background-color", "#FFFF9C").animate({ backgroundColor: label_background_color}, 1500);
else // On !SUCCESS is red fade to white
jQuery(label).stop().css("background-color", "#FF0000").animate({ backgroundColor: "#FFFFFF"}, 1500);
jQuery(label).stop().css("background-color", "#FF0000").animate({ backgroundColor: label_background_color}, 1500);
});
});
......
=== Simply Exclude ===
Contributors: Paul Menard
Contributors: pmenard
Donate link: http://www.codehooligans.com
Tags: admin, posts, pages, categories, tags, Post Type, Taxonomy, exclude, include, is_front, is_archive, is_search, is_feed, is_author
Requires at least: 3.2
Tested up to: 3.3.1
Stable tag: 2.0.6
Requires at least: 3.7
Tested up to: 3.9
Stable tag: 2.0.6.2
License: GPLv2
License URI: http://www.opensource.org/licenses/GPL-2.0
== Description ==
......@@ -48,6 +50,15 @@ At the time (version 1.6.1) the plugin only effects Pages included in the tradit
== Changelog ==
= 2.0.6.2 =
- Corrected reported issue related to undefined 'action' settings in the widget hooks. Thanks Arnold.
- Cleanup some of the CSS related to settings used within the dashboard area.
= 2.0.6.1 =
Corrected issue with reported PHP 5.4 related code.
Changes settings screen to split Taxonomies, Post Types and Users into tabbed screen. Better than one long screen.
Fixed issue with excluding categories on Home and Archive where it effects the pager. Note this is only for the default WordPress paging. Custom pagers may still have issue.
= 2.0.6 =
2013-03-20
Bug fixes for Illegal string offset 'action' PHP Warnings.
......
/*
input.se-term-input {
width: 15px;
float: left;
}
*/
table.simplyexclude-actions-panel td.action {
width: 20%;
}
......@@ -33,6 +34,33 @@ table.simplyexclude-active-panel td.inc-excl {
margin-bottom: 5px;
}
td.column-se-actions ul.se-actions-list,
td.inc-excl ul.se-actions-list {
margin: 0;
padding: 0;
list-style: none;
width: 100%;
}
td.column-se-actions ul.se-actions-list li,
td.inc-excl ul.se-actions-list li {
margin: 0;
padding: 0;
list-style: none;
width: 100%;
}
td.column-se-actions ul.se-actions-list li input.se-term-input {
width: 15px;
/* float: left; */
}
td.column-se-actions ul.se-actions-list li label {
/* float: left; */
vertical-align: top;
}
.ui-accordion-header {
border-top-left-radius: 3px;
border-top-right-radius: 3px;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment