Changeset 36375
- Timestamp:
- 01/21/2016 10:49:43 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/inline-edit-post.js
r36303 r36375 123 123 124 124 edit : function(id) { 125 var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, cur_format,f, val, pw;125 var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, f, val, pw; 126 126 t.revert(); 127 127 … … 150 150 $('label.inline-edit-author', editRow).hide(); 151 151 } 152 153 // hide unsupported formats, but leave the current format alone154 cur_format = $('.post_format', rowData).text();155 $('option.unsupported', editRow).each(function() {156 var $this = $(this);157 if ( $this.val() !== cur_format ) {158 $this.remove();159 }160 });161 152 162 153 for ( f = 0; f < fields.length; f++ ) {
Note: See TracChangeset
for help on using the changeset viewer.