Skip to content

Commit

Permalink
Remove Messages
Browse files Browse the repository at this point in the history
Not working at the moment
  • Loading branch information
Mark Wilkinson committed Jul 2, 2015
1 parent 711010c commit e1ca47f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-limit-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ function wplt_limit_tags_js() {

/* set the maximum number of tags allowed - pulled from options */
var maxtags = <?php echo intval( $maxtags ); ?>;

/**
* function disabletags()
* this hides the tags button and disables the input when max tags is reached
Expand Down Expand Up @@ -369,6 +369,7 @@ function disableenter() {
* we also count number of tags added to the input and disable if more than max tags
*/
$(document).ready( function() {

$( '.tagchecklist' ).bind( "DOMSubtreeModified", function() {
var count = $(".tagchecklist > span").length;
if( count >= maxtags ) {
Expand Down

0 comments on commit e1ca47f

Please sign in to comment.