To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Changeset 1110

Show
Ignore:
Timestamp:
04/30/10 16:17:46 (22 months ago)
Author:
johnnyoffline
Message:

blog.js tweak

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostropheBlogPlugin/trunk/web/js/aBlog.js

    r1109 r1110  
    134134        // $('#a-blog-post-status-indicator').ajaxStart(function(){ 
    135135        //      $(this).show(); 
    136         // }) 
     136        // }); 
    137137        // $('#a-blog-post-status-indicator').ajaxStop(function(){ 
    138138        //      $(this).hide(); 
    139         // }) 
     139        // }); 
    140140 
    141141        $.ajax({ 
     
    160160      }; 
    161161 
    162                         // if ( the Comments has changed ) { 
    163       updateComments(data.aBlogPost.allow_comments); // Update Comments after ajax 
    164                         // }; 
     162      if ( typeof(data.modified.allow_comments) != "undefined" ) { 
     163        updateComments(data.aBlogPost.allow_comments); // Update Comments after ajax 
     164                        }; 
    165165 
    166166                        checkAndSetPublish(data.aBlogPost.status, slug_url); // Re-set Publish button after ajax