Changeset 1086785
- Timestamp:
- 02/10/2015 11:21:02 PM (11 years ago)
- Location:
- force-post-category-selection
- Files:
-
- 4 edited
-
branches/force-post-category-selection.php (modified) (2 diffs)
-
branches/readme.txt (modified) (2 diffs)
-
trunk/force-post-category-selection.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
force-post-category-selection/branches/force-post-category-selection.php
r1073821 r1086785 8 8 Tags: post, category, publish, without, require, force, must, draft 9 9 Requires at least: 3.x 10 Tested up to: 4. 111 Stable tag: 1. 012 Version: 1. 010 Tested up to: 4.x 11 Stable tag: 1.1 12 Version: 1.1 13 13 */ 14 14 function force_post_cat_init() … … 25 25 .find('.selectit') 26 26 .find('input'); 27 category_selected=false; 28 for (counter=0; counter<cats.length; counter++) 27 if(cats.length) 29 28 { 30 if (cats.get(counter).checked==true) 29 category_selected=false; 30 for (counter=0; counter<cats.length; counter++) 31 31 { 32 category_selected=true; 33 break; 34 } 35 } 36 if(category_selected==false) 37 { 38 alert('You have not selected any category for the post. Kindly select post category.'); 39 setTimeout(\"jQuery('#ajax-loading').css('visibility', 'hidden');\", 100); 40 jQuery('[id^=\"taxonomy\"]').find('.tabs-panel').css('background', '#F96'); 41 setTimeout(\"jQuery('#publish').removeClass('button-primary-disabled');\", 100); 42 return false; 43 } 32 if (cats.get(counter).checked==true) 33 { 34 category_selected=true; 35 break; 36 } 37 } 38 if(category_selected==false) 39 { 40 alert('You have not selected any category for the post. Kindly select post category.'); 41 setTimeout(\"jQuery('#ajax-loading').css('visibility', 'hidden');\", 100); 42 jQuery('[id^=\"taxonomy\"]').find('.tabs-panel').css('background', '#F96'); 43 setTimeout(\"jQuery('#publish').removeClass('button-primary-disabled');\", 100); 44 return false; 45 } 46 } 44 47 }); 45 48 "; -
force-post-category-selection/branches/readme.txt
r1073821 r1086785 5 5 Tags: post, category, publish, without, require, force, must, draft 6 6 Requires at least: 3.x 7 Tested up to: 4. 18 Stable tag: 1. 09 Version: 1. 07 Tested up to: 4.x 8 Stable tag: 1.1 9 Version: 1.1 10 10 11 11 This is simple plugin which forces the users to select atleast one category from the list while publishing a new post. … … 38 38 = 1.0 = 39 39 * Just developed 40 41 = 1.1 = 42 * Fixed bug with bbpress -
force-post-category-selection/trunk/force-post-category-selection.php
r1073818 r1086785 8 8 Tags: post, category, publish, without, require, force, must, draft 9 9 Requires at least: 3.x 10 Tested up to: 4. 111 Stable tag: 1. 012 Version: 1. 010 Tested up to: 4.x 11 Stable tag: 1.1 12 Version: 1.1 13 13 */ 14 14 function force_post_cat_init() … … 25 25 .find('.selectit') 26 26 .find('input'); 27 category_selected=false; 28 for (counter=0; counter<cats.length; counter++) 27 if(cats.length) 29 28 { 30 if (cats.get(counter).checked==true) 29 category_selected=false; 30 for (counter=0; counter<cats.length; counter++) 31 31 { 32 category_selected=true; 33 break; 34 } 35 } 36 if(category_selected==false) 37 { 38 alert('You have not selected any category for the post. Kindly select post category.'); 39 setTimeout(\"jQuery('#ajax-loading').css('visibility', 'hidden');\", 100); 40 jQuery('[id^=\"taxonomy\"]').find('.tabs-panel').css('background', '#F96'); 41 setTimeout(\"jQuery('#publish').removeClass('button-primary-disabled');\", 100); 42 return false; 43 } 32 if (cats.get(counter).checked==true) 33 { 34 category_selected=true; 35 break; 36 } 37 } 38 if(category_selected==false) 39 { 40 alert('You have not selected any category for the post. Kindly select post category.'); 41 setTimeout(\"jQuery('#ajax-loading').css('visibility', 'hidden');\", 100); 42 jQuery('[id^=\"taxonomy\"]').find('.tabs-panel').css('background', '#F96'); 43 setTimeout(\"jQuery('#publish').removeClass('button-primary-disabled');\", 100); 44 return false; 45 } 46 } 44 47 }); 45 48 "; -
force-post-category-selection/trunk/readme.txt
r1073818 r1086785 5 5 Tags: post, category, publish, without, require, force, must, draft 6 6 Requires at least: 3.x 7 Tested up to: 4. 18 Stable tag: 1. 09 Version: 1. 07 Tested up to: 4.x 8 Stable tag: 1.1 9 Version: 1.1 10 10 11 11 This is simple plugin which forces the users to select atleast one category from the list while publishing a new post. … … 38 38 = 1.0 = 39 39 * Just developed 40 41 = 1.1 = 42 * Fixed bug with bbpress
Note: See TracChangeset
for help on using the changeset viewer.