-
Notifications
You must be signed in to change notification settings - Fork 3
/
admin.min.js
1 lines (1 loc) · 908 Bytes
/
admin.min.js
1
jQuery(function(a){if(sscpt.screen=="post"){if(parseInt(sscpt.is_sticky)){a("#post-visibility-display").text(sscpt.sticky_visibility_text)}a('#post-visibility-select label[for="visibility-radio-public"]').next("br").after('<span id="sticky-span"><input id="sticky" name="sticky" type="checkbox" value="sticky"'+sscpt.checked_attribute+' /> <label for="sticky" class="selectit">'+sscpt.label_text+"</label><br /></span>")}else{if(parseInt(sscpt.sticky_count)>0){var b=a(".subsubsub > .publish");b.append(" |");b.after('<li class="sticky"><a href="edit.php?post_type='+sscpt.post_type+'&show_sticky=1">'+sscpt.sticky_text+' <span class="count">('+sscpt.sticky_count+")</span></a></li>")}a('span.title:contains("'+sscpt.status_label_text+'")').parent().after('<label class="alignleft"><input type="checkbox" name="sticky" value="sticky" /> <span class="checkbox-title">'+sscpt.label_text+"</span></label>")}});