WordPress.org

Make WordPress Core

Changeset 11224


Ignore:
Timestamp:
05/06/09 21:31:07 (5 years ago)
Author:
azaozz
Message:

Change CSS classes to avoid collisions with ui.tabs, fixes #9740

Location:
trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/colors-classic.css

    r11166 r11224  
    103103} 
    104104 
    105 div.ui-tabs-panel { 
    106     border-color: #f1f1f1; 
    107 } 
    108  
    109 ul#category-tabs li.ui-tabs-selected { 
     105div.tabs-panel, 
     106ul#category-tabs li.tabs { 
     107    border-color: #dfdfdf; 
     108} 
     109 
     110ul#category-tabs li.tabs { 
    110111    background-color: #f1f1f1; 
    111112} 
     
    368369} 
    369370 
    370 #side-sortables #category-tabs .ui-tabs-selected a { 
     371#side-sortables #category-tabs .tabs a { 
    371372    color: #333; 
    372373} 
     
    474475 
    475476/* Because we don't want visited on these links */ 
    476 body.press-this .ui-tabs-selected a, 
    477 body.press-this .ui-tabs-selected a:hover { 
     477body.press-this .tabs a, 
     478body.press-this .tabs a:hover { 
    478479    background-color: #fff; 
    479480    border-color: #c6d9e9; 
     
    14291430} 
    14301431 
    1431 #post-body ul#category-tabs li.ui-tabs-selected a { 
     1432#post-body ul#category-tabs li.tabs a { 
    14321433    color: #333; 
    14331434} 
  • trunk/wp-admin/css/colors-fresh.css

    r11166 r11224  
    103103} 
    104104 
    105 div.ui-tabs-panel { 
    106     border-color: #f1f1f1; 
    107 } 
    108  
    109 ul#category-tabs li.ui-tabs-selected { 
     105div.tabs-panel, 
     106ul#category-tabs li.tabs { 
     107    border-color: #dfdfdf; 
     108} 
     109 
     110ul#category-tabs li.tabs { 
    110111    background-color: #f1f1f1; 
    111112} 
     
    360361} 
    361362 
    362 #side-sortables #category-tabs .ui-tabs-selected a { 
     363#side-sortables #category-tabs .tabs a { 
    363364    color: #333; 
    364365} 
     
    461462 
    462463/* Because we don't want visited on these links */ 
    463 body.press-this .ui-tabs-selected a, 
    464 body.press-this .ui-tabs-selected a:hover { 
     464body.press-this .tabs a, 
     465body.press-this .tabs a:hover { 
    465466    background-color: #fff; 
    466467    border-color: #c6d9e9; 
     
    14101411} 
    14111412 
    1412 #post-body ul#category-tabs li.ui-tabs-selected a { 
     1413#post-body ul#category-tabs li.tabs a { 
    14131414    color: #333; 
    14141415} 
  • trunk/wp-admin/css/press-this.css

    r11203 r11224  
    346346} 
    347347 
    348 #categorydiv div.ui-tabs-panel { 
     348#categorydiv div.tabs-panel { 
    349349    height: 150px; 
    350350    overflow: auto; 
  • trunk/wp-admin/edit-form-advanced.php

    r11204 r11224  
    314314?> 
    315315<ul id="category-tabs"> 
    316     <li class="ui-tabs-selected"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li> 
     316    <li class="tabs"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li> 
    317317    <li class="hide-if-no-js"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li> 
    318318</ul> 
    319319 
    320 <div id="categories-pop" class="ui-tabs-panel" style="display: none;"> 
     320<div id="categories-pop" class="tabs-panel" style="display: none;"> 
    321321    <ul id="categorychecklist-pop" class="categorychecklist form-no-clear" > 
    322322<?php $popular_ids = wp_popular_terms_checklist('category'); ?> 
     
    324324</div> 
    325325 
    326 <div id="categories-all" class="ui-tabs-panel"> 
     326<div id="categories-all" class="tabs-panel"> 
    327327    <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 
    328328<?php wp_category_checklist($post->ID, false, false, $popular_ids) ?> 
  • trunk/wp-admin/edit-link-form.php

    r11204 r11224  
    115115function link_categories_meta_box($link) { ?> 
    116116<ul id="category-tabs"> 
    117     <li class="ui-tabs-selected"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li> 
     117    <li class="tabs"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li> 
    118118    <li class="hide-if-no-js"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li> 
    119119</ul> 
    120120 
    121 <div id="categories-all" class="ui-tabs-panel"> 
     121<div id="categories-all" class="tabs-panel"> 
    122122    <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 
    123123        <?php 
     
    130130</div> 
    131131 
    132 <div id="categories-pop" class="ui-tabs-panel" style="display: none;"> 
     132<div id="categories-pop" class="tabs-panel" style="display: none;"> 
    133133    <ul id="categorychecklist-pop" class="categorychecklist form-no-clear"> 
    134134        <?php wp_popular_terms_checklist('link_category'); ?> 
  • trunk/wp-admin/js/link.dev.js

    r10834 r11224  
    1010    $('#category-tabs a').click(function(){ 
    1111        var t = $(this).attr('href'); 
    12         $(this).parent().addClass('ui-tabs-selected').siblings('li').removeClass('ui-tabs-selected'); 
    13         $('.ui-tabs-panel').hide(); 
     12        $(this).parent().addClass('tabs').siblings('li').removeClass('tabs'); 
     13        $('.tabs-panel').hide(); 
    1414        $(t).show(); 
    1515        if ( '#categories-all' == t ) 
  • trunk/wp-admin/js/link.js

    r10834 r11224  
    1 jQuery(document).ready(function(c){var b,a=false,d,e;c("#link_name").focus();postboxes.add_postbox_toggles("link");c("#category-tabs a").click(function(){var f=c(this).attr("href");c(this).parent().addClass("ui-tabs-selected").siblings("li").removeClass("ui-tabs-selected");c(".ui-tabs-panel").hide();c(f).show();if("#categories-all"==f){deleteUserSetting("cats")}else{setUserSetting("cats","pop")}return false});if(getUserSetting("cats")){c('#category-tabs a[href="#categories-pop"]').click()}b=c("#newcat").one("focus",function(){c(this).val("").removeClass("form-input-tip")});c("#category-add-submit").click(function(){b.focus()});d=function(){if(a){return}a=true;var f=c(this),h=f.is(":checked"),g=f.val().toString();c("#in-link-category-"+g+", #in-popular-category-"+g).attr("checked",h);a=false};e=function(g,f){c(f.what+" response_data",g).each(function(){var h=c(c(this).text());h.find("label").each(function(){var j=c(this),l=j.find("input").val(),m=j.find("input")[0].id,i=c.trim(j.text()),k;c("#"+m).change(d);k=c('<option value="'+parseInt(l,10)+'"></option>').text(i)})})};c("#categorychecklist").wpList({alt:"",what:"link-category",response:"category-ajax-response",addAfter:e});c('a[href="#categories-all"]').click(function(){deleteUserSetting("cats")});c('a[href="#categories-pop"]').click(function(){setUserSetting("cats","pop")});if("pop"==getUserSetting("cats")){c('a[href="#categories-pop"]').click()}c("#category-add-toggle").click(function(){c(this).parents("div:first").toggleClass("wp-hidden-children");c('#category-tabs a[href="#categories-all"]').click();return false});c(".categorychecklist :checkbox").change(d).filter(":checked").change()}); 
     1jQuery(document).ready(function(c){var b,a=false,d,e;c("#link_name").focus();postboxes.add_postbox_toggles("link");c("#category-tabs a").click(function(){var f=c(this).attr("href");c(this).parent().addClass("tabs").siblings("li").removeClass("tabs");c(".tabs-panel").hide();c(f).show();if("#categories-all"==f){deleteUserSetting("cats")}else{setUserSetting("cats","pop")}return false});if(getUserSetting("cats")){c('#category-tabs a[href="#categories-pop"]').click()}b=c("#newcat").one("focus",function(){c(this).val("").removeClass("form-input-tip")});c("#category-add-submit").click(function(){b.focus()});d=function(){if(a){return}a=true;var f=c(this),h=f.is(":checked"),g=f.val().toString();c("#in-link-category-"+g+", #in-popular-category-"+g).attr("checked",h);a=false};e=function(g,f){c(f.what+" response_data",g).each(function(){var h=c(c(this).text());h.find("label").each(function(){var j=c(this),l=j.find("input").val(),m=j.find("input")[0].id,i=c.trim(j.text()),k;c("#"+m).change(d);k=c('<option value="'+parseInt(l,10)+'"></option>').text(i)})})};c("#categorychecklist").wpList({alt:"",what:"link-category",response:"category-ajax-response",addAfter:e});c('a[href="#categories-all"]').click(function(){deleteUserSetting("cats")});c('a[href="#categories-pop"]').click(function(){setUserSetting("cats","pop")});if("pop"==getUserSetting("cats")){c('a[href="#categories-pop"]').click()}c("#category-add-toggle").click(function(){c(this).parents("div:first").toggleClass("wp-hidden-children");c('#category-tabs a[href="#categories-all"]').click();return false});c(".categorychecklist :checkbox").change(d).filter(":checked").change()}); 
  • trunk/wp-admin/js/post.dev.js

    r10834 r11224  
    237237    $('#category-tabs a').click(function(){ 
    238238        var t = $(this).attr('href'); 
    239         $(this).parent().addClass('ui-tabs-selected').siblings('li').removeClass('ui-tabs-selected'); 
    240         $('.ui-tabs-panel').hide(); 
     239        $(this).parent().addClass('tabs').siblings('li').removeClass('tabs'); 
     240        $('.tabs-panel').hide(); 
    241241        $(t).show(); 
    242242        if ( '#categories-all' == t ) 
  • trunk/wp-admin/js/post.js

    r10834 r11224  
    1 function array_unique_noempty(b){var c=[];jQuery.each(b,function(a,d){d=jQuery.trim(d);if(d&&jQuery.inArray(d,c)==-1){c.push(d)}});return c}function new_tag_remove_tag(){var e=jQuery(this).attr("id"),a=e.split("-check-num-")[1],c=jQuery(this).parents(".tagsdiv"),b=c.find(".the-tags").val().split(","),d=[];delete b[a];jQuery.each(b,function(f,g){g=jQuery.trim(g);if(g){d.push(g)}});c.find(".the-tags").val(d.join(",").replace(/\s*,+\s*/,",").replace(/,+/,",").replace(/,+\s+,+/,",").replace(/,+\s*$/,"").replace(/^\s*,+/,""));tag_update_quickclicks(c);return false}function tag_update_quickclicks(b){if(jQuery(b).find(".the-tags").length==0){return}var a=jQuery(b).find(".the-tags").val().split(",");jQuery(b).find(".tagchecklist").empty();shown=false;jQuery.each(a,function(e,f){var c,d;f=jQuery.trim(f);if(!f.match(/^\s+$/)&&""!=f){d=jQuery(b).attr("id")+"-check-num-"+e;c='<span><a id="'+d+'" class="ntdelbutton">X</a>&nbsp;'+f+"</span> ";jQuery(b).find(".tagchecklist").append(c);jQuery("#"+d).click(new_tag_remove_tag)}});if(shown){jQuery(b).find(".tagchecklist").prepend("<strong>"+postL10n.tagsUsed+"</strong><br />")}}function tag_flush_to_text(g,b){b=b||false;var e,f,c,d;e=jQuery("#"+g);f=b?jQuery(b).text():e.find("input.newtag").val();if(e.find("input.newtag").hasClass("form-input-tip")&&!b){return false}c=e.find(".the-tags").val();d=c?c+","+f:f;d=d.replace(/\s+,+\s*/g,",").replace(/,+/g,",").replace(/,+\s+,+/g,",").replace(/,+\s*$/g,"").replace(/^\s*,+/g,"");d=array_unique_noempty(d.split(",")).join(",");e.find(".the-tags").val(d);tag_update_quickclicks(e);if(!b){e.find("input.newtag").val("").focus()}return false}function tag_save_on_publish(){jQuery(".tagsdiv").each(function(a){if(!jQuery(this).find("input.newtag").hasClass("form-input-tip")){tag_flush_to_text(jQuery(this).parents(".tagsdiv").attr("id"))}})}function tag_press_key(a){if(13==a.which){tag_flush_to_text(jQuery(a.target).parents(".tagsdiv").attr("id"));return false}}function tag_init(){jQuery(".ajaxtag").show();jQuery(".tagsdiv").each(function(a){tag_update_quickclicks(this)});jQuery(".ajaxtag input.tagadd").click(function(){tag_flush_to_text(jQuery(this).parents(".tagsdiv").attr("id"))});jQuery(".ajaxtag input.newtag").focus(function(){if(!this.cleared){this.cleared=true;jQuery(this).val("").removeClass("form-input-tip")}});jQuery(".ajaxtag input.newtag").blur(function(){if(this.value==""){this.cleared=false;jQuery(this).val(postL10n.addTag).addClass("form-input-tip")}});jQuery("#publish").click(tag_save_on_publish);jQuery("#save-post").click(tag_save_on_publish);jQuery(".ajaxtag input.newtag").keypress(tag_press_key)}var commentsBox,tagCloud;(function(a){commentsBox={st:0,get:function(d,c){var b=this.st,e;if(!c){c=20}this.st+=c;this.total=d;a("#commentsdiv img.waiting").show();e={action:"get-comments",mode:"single",_ajax_nonce:a("#add_comment_nonce").val(),post_ID:a("#post_ID").val(),start:b,num:c};a.post(ajaxurl,e,function(f){f=wpAjax.parseAjaxResponse(f);a("#commentsdiv .widefat").show();a("#commentsdiv img.waiting").hide();if("object"==typeof f&&f.responses[0]){a("#the-comment-list").append(f.responses[0].data);theList=theExtraList=null;a("a[className*=':']").unbind();setCommentsList();if(commentsBox.st>commentsBox.total){a("#show-comments").hide()}else{a("#show-comments").html(postL10n.showcomm)}return}else{if(1==f){a("#show-comments").parent().html(postL10n.endcomm);return}}a("#the-comment-list").append('<tr><td colspan="5">'+wpAjax.broken+"</td></tr>")});return false}};tagCloud={init:function(){a(".tagcloud-link").click(function(){tagCloud.get(a(this).attr("id"));a(this).unbind().click(function(){a(this).siblings(".the-tagcloud").toggle();return false});return false})},get:function(c){var b=c.substr(c.indexOf("-")+1);a.post(ajaxurl,{action:"get-tagcloud",tax:b},function(e,d){if(0==e||"success"!=d){e=wpAjax.broken}e=a('<p id="tagcloud-'+b+'" class="the-tagcloud">'+e+"</p>");a("a",e).click(function(){var f=a(this).parents("p").attr("id");tag_flush_to_text(f.substr(f.indexOf("-")+1),this);return false});a("#"+c).after(e)})}};a(document).ready(function(){tagCloud.init()})})(jQuery);jQuery(document).ready(function(g){var d=false,j,e,h=true,a=g("#timestamp").html(),b=g("#post-visibility-display").html(),i="";if(typeof autosave!="function"){autosave=function(){}}postboxes.add_postbox_toggles("post");make_slugedit_clickable();tag_init();g("#title").blur(function(){if((g("#post_ID").val()>0)||(g("#title").val().length==0)){return}autosave()});g(".newtag").each(function(){var k=g(this).parents("div.tagsdiv").attr("id");g(this).suggest("admin-ajax.php?action=ajax-tag-search&tax="+k,{delay:500,minchars:2,multiple:true,multipleSep:", "})});g("#category-tabs a").click(function(){var k=g(this).attr("href");g(this).parent().addClass("ui-tabs-selected").siblings("li").removeClass("ui-tabs-selected");g(".ui-tabs-panel").hide();g(k).show();if("#categories-all"==k){deleteUserSetting("cats")}else{setUserSetting("cats","pop")}return false});if(getUserSetting("cats")){g('#category-tabs a[href="#categories-pop"]').click()}g("#newcat").one("focus",function(){g(this).val("").removeClass("form-input-tip")});g("#category-add-sumbit").click(function(){g("#newcat").focus()});j=function(){if(d){return}d=true;var k=jQuery(this),m=k.is(":checked"),l=k.val().toString();g("#in-category-"+l+", #in-popular-category-"+l).attr("checked",m);d=false};popularCats=g("#categorychecklist-pop :checkbox").map(function(){return parseInt(jQuery(this).val(),10)}).get().join(",");catAddBefore=function(k){if(!g("#newcat").val()){return false}k.data+="&popular_ids="+popularCats+"&"+jQuery("#categorychecklist :checked").serialize();return k};e=function(n,l){var k=jQuery("#newcat_parent"),m=k.find('option[value="-1"]');g(l.what+" response_data",n).each(function(){var o=g(g(this).text());o.find("label").each(function(){var q=g(this),s=q.find("input").val(),t=q.find("input")[0].id,p,r;g("#"+t).change(j).change();if(k.find('option[value="'+s+'"]').size()){return}p=g.trim(q.text());r=g('<option value="'+parseInt(s,10)+'"></option>').text(p);k.prepend(r)});m.attr("selected","selected")})};g("#categorychecklist").wpList({alt:"",response:"category-ajax-response",addBefore:catAddBefore,addAfter:e});g("#category-add-toggle").click(function(){g("#category-adder").toggleClass("wp-hidden-children");g('#category-tabs a[href="#categories-all"]').click();return false});g(".categorychecklist .popular-category :checkbox").change(j).filter(":checked").change(),i="";function f(){if(g("#post-visibility-select input:radio:checked").val()!="public"){g("#sticky").attr("checked",false);g("#sticky-span").hide()}else{g("#sticky-span").show()}if(g("#post-visibility-select input:radio:checked").val()!="password"){g("#password-span").hide()}else{g("#password-span").show()}}function c(){var k,m,l,n;k=new Date(g("#aa").val(),g("#mm").val()-1,g("#jj").val(),g("#hh").val(),g("#mn").val());m=new Date(g("#hidden_aa").val(),g("#hidden_mm").val()-1,g("#hidden_jj").val(),g("#hidden_hh").val(),g("#hidden_mn").val());l=new Date(g("#cur_aa").val(),g("#cur_mm").val()-1,g("#cur_jj").val(),g("#cur_hh").val(),g("#cur_mn").val());if(k>l&&g("#original_post_status").val()!="future"){n=postL10n.publishOnFuture;g("#publish").val(postL10n.schedule)}else{if(k<=l&&g("#original_post_status").val()!="publish"){n=postL10n.publishOn;g("#publish").val(postL10n.publish)}else{n=postL10n.publishOnPast;g("#publish").val(postL10n.update)}}if(m.toUTCString()==k.toUTCString()){g("#timestamp").html(a)}else{g("#timestamp").html(n+" <b>"+g("#mm option[value="+g("#mm").val()+"]").text()+" "+g("#jj").val()+", "+g("#aa").val()+" @ "+g("#hh").val()+":"+g("#mn").val()+"</b> ")}if(g("#post-visibility-select input:radio:checked").val()=="private"){g("#publish").val(postL10n.update);if(g("#post_status option[value=publish]").length==0){g("#post_status").append('<option value="publish">'+postL10n.privatelyPublished+"</option>")}g("#post_status option[value=publish]").html(postL10n.privatelyPublished);g("#post_status option[value=publish]").attr("selected",true);g(".edit-post-status").hide()}else{if(g("#original_post_status").val()=="future"||g("#original_post_status").val()=="draft"){if(g("#post_status option[value=publish]").length!=0){g("#post_status option[value=publish]").remove();g("#post_status").val(g("#hidden_post_status").val())}}else{g("#post_status option[value=publish]").html(postL10n.published)}g(".edit-post-status").show()}g("#post-status-display").html(g("#post_status :selected").text());if(g("#post_status :selected").val()=="private"||g("#post_status :selected").val()=="publish"){g("#save-post").hide()}else{g("#save-post").show();if(g("#post_status :selected").val()=="pending"){g("#save-post").show().val(postL10n.savePending)}else{g("#save-post").show().val(postL10n.saveDraft)}}}g(".edit-visibility").click(function(){if(g("#post-visibility-select").is(":hidden")){f();g("#post-visibility-select").slideDown("normal");g(".edit-visibility").hide()}return false});g(".cancel-post-visibility").click(function(){g("#post-visibility-select").slideUp("normal");g("#visibility-radio-"+g("#hidden-post-visibility").val()).attr("checked",true);g("#post_password").val(g("#hidden_post_password").val());g("#sticky").attr("checked",g("#hidden-post-sticky").attr("checked"));g("#post-visibility-display").html(b);g(".edit-visibility").show();c();return false});g(".save-post-visibility").click(function(){g("#post-visibility-select").slideUp("normal");g(".edit-visibility").show();c();if(g("#post-visibility-select input:radio:checked").val()!="public"){g("#sticky").attr("checked",false)}if(true==g("#sticky").attr("checked")){i="Sticky"}else{i=""}g("#post-visibility-display").html(postL10n[g("#post-visibility-select input:radio:checked").val()+i]);return false});g("#post-visibility-select input:radio").change(function(){f()});g(".edit-timestamp").click(function(){if(g("#timestampdiv").is(":hidden")){g("#timestampdiv").slideDown("normal");g(".edit-timestamp").hide()}return false});g(".cancel-timestamp").click(function(){g("#timestampdiv").slideUp("normal");g("#mm").val(g("#hidden_mm").val());g("#jj").val(g("#hidden_jj").val());g("#aa").val(g("#hidden_aa").val());g("#hh").val(g("#hidden_hh").val());g("#mn").val(g("#hidden_mn").val());g(".edit-timestamp").show();c();return false});g(".save-timestamp").click(function(){g("#timestampdiv").slideUp("normal");g(".edit-timestamp").show();c();return false});g(".edit-post-status").click(function(){if(g("#post-status-select").is(":hidden")){g("#post-status-select").slideDown("normal");g(this).hide()}return false});g(".save-post-status").click(function(){g("#post-status-select").slideUp("normal");g(".edit-post-status").show();c();return false});g(".cancel-post-status").click(function(){g("#post-status-select").slideUp("normal");g("#post_status").val(g("#hidden_post_status").val());g(".edit-post-status").show();c();return false});jQuery("#the-list").wpList({addAfter:function(k,l){g("table#list-table").show();if(jQuery.isFunction(autosave_update_post_ID)){autosave_update_post_ID(l.parsed.responses[0].supplemental.postid)}},addBefore:function(k){k.data+="&post_id="+jQuery("#post_ID").val();return k}});g("#post-preview").click(function(k){if(1>g("#post_ID").val()&&autosaveFirst){autosaveDelayPreview=true;autosave();return false}g("input#wp-preview").val("dopreview");g("form#post").attr("target","wp-preview").submit().attr("target","");g("input#wp-preview").val("");return false});if(typeof tinyMCE!="undefined"){g("#title")[g.browser.opera?"keypress":"keydown"](function(k){if(k.which==9&&!k.shiftKey&&!k.controlKey&&!k.altKey){if((g("#post_ID").val()<1)&&(g("#title").val().length>0)){autosave()}if(tinyMCE.activeEditor&&!tinyMCE.activeEditor.isHidden()&&h){k.preventDefault();h=false;tinyMCE.activeEditor.focus();return false}}})}}); 
     1function array_unique_noempty(b){var c=[];jQuery.each(b,function(a,d){d=jQuery.trim(d);if(d&&jQuery.inArray(d,c)==-1){c.push(d)}});return c}function new_tag_remove_tag(){var e=jQuery(this).attr("id"),a=e.split("-check-num-")[1],c=jQuery(this).parents(".tagsdiv"),b=c.find(".the-tags").val().split(","),d=[];delete b[a];jQuery.each(b,function(f,g){g=jQuery.trim(g);if(g){d.push(g)}});c.find(".the-tags").val(d.join(",").replace(/\s*,+\s*/,",").replace(/,+/,",").replace(/,+\s+,+/,",").replace(/,+\s*$/,"").replace(/^\s*,+/,""));tag_update_quickclicks(c);return false}function tag_update_quickclicks(b){if(jQuery(b).find(".the-tags").length==0){return}var a=jQuery(b).find(".the-tags").val().split(",");jQuery(b).find(".tagchecklist").empty();shown=false;jQuery.each(a,function(e,f){var c,d;f=jQuery.trim(f);if(!f.match(/^\s+$/)&&""!=f){d=jQuery(b).attr("id")+"-check-num-"+e;c='<span><a id="'+d+'" class="ntdelbutton">X</a>&nbsp;'+f+"</span> ";jQuery(b).find(".tagchecklist").append(c);jQuery("#"+d).click(new_tag_remove_tag)}});if(shown){jQuery(b).find(".tagchecklist").prepend("<strong>"+postL10n.tagsUsed+"</strong><br />")}}function tag_flush_to_text(g,b){b=b||false;var e,f,c,d;e=jQuery("#"+g);f=b?jQuery(b).text():e.find("input.newtag").val();if(e.find("input.newtag").hasClass("form-input-tip")&&!b){return false}c=e.find(".the-tags").val();d=c?c+","+f:f;d=d.replace(/\s+,+\s*/g,",").replace(/,+/g,",").replace(/,+\s+,+/g,",").replace(/,+\s*$/g,"").replace(/^\s*,+/g,"");d=array_unique_noempty(d.split(",")).join(",");e.find(".the-tags").val(d);tag_update_quickclicks(e);if(!b){e.find("input.newtag").val("").focus()}return false}function tag_save_on_publish(){jQuery(".tagsdiv").each(function(a){if(!jQuery(this).find("input.newtag").hasClass("form-input-tip")){tag_flush_to_text(jQuery(this).parents(".tagsdiv").attr("id"))}})}function tag_press_key(a){if(13==a.which){tag_flush_to_text(jQuery(a.target).parents(".tagsdiv").attr("id"));return false}}function tag_init(){jQuery(".ajaxtag").show();jQuery(".tagsdiv").each(function(a){tag_update_quickclicks(this)});jQuery(".ajaxtag input.tagadd").click(function(){tag_flush_to_text(jQuery(this).parents(".tagsdiv").attr("id"))});jQuery(".ajaxtag input.newtag").focus(function(){if(!this.cleared){this.cleared=true;jQuery(this).val("").removeClass("form-input-tip")}});jQuery(".ajaxtag input.newtag").blur(function(){if(this.value==""){this.cleared=false;jQuery(this).val(postL10n.addTag).addClass("form-input-tip")}});jQuery("#publish").click(tag_save_on_publish);jQuery("#save-post").click(tag_save_on_publish);jQuery(".ajaxtag input.newtag").keypress(tag_press_key)}var commentsBox,tagCloud;(function(a){commentsBox={st:0,get:function(d,c){var b=this.st,e;if(!c){c=20}this.st+=c;this.total=d;a("#commentsdiv img.waiting").show();e={action:"get-comments",mode:"single",_ajax_nonce:a("#add_comment_nonce").val(),post_ID:a("#post_ID").val(),start:b,num:c};a.post(ajaxurl,e,function(f){f=wpAjax.parseAjaxResponse(f);a("#commentsdiv .widefat").show();a("#commentsdiv img.waiting").hide();if("object"==typeof f&&f.responses[0]){a("#the-comment-list").append(f.responses[0].data);theList=theExtraList=null;a("a[className*=':']").unbind();setCommentsList();if(commentsBox.st>commentsBox.total){a("#show-comments").hide()}else{a("#show-comments").html(postL10n.showcomm)}return}else{if(1==f){a("#show-comments").parent().html(postL10n.endcomm);return}}a("#the-comment-list").append('<tr><td colspan="5">'+wpAjax.broken+"</td></tr>")});return false}};tagCloud={init:function(){a(".tagcloud-link").click(function(){tagCloud.get(a(this).attr("id"));a(this).unbind().click(function(){a(this).siblings(".the-tagcloud").toggle();return false});return false})},get:function(c){var b=c.substr(c.indexOf("-")+1);a.post(ajaxurl,{action:"get-tagcloud",tax:b},function(e,d){if(0==e||"success"!=d){e=wpAjax.broken}e=a('<p id="tagcloud-'+b+'" class="the-tagcloud">'+e+"</p>");a("a",e).click(function(){var f=a(this).parents("p").attr("id");tag_flush_to_text(f.substr(f.indexOf("-")+1),this);return false});a("#"+c).after(e)})}};a(document).ready(function(){tagCloud.init()})})(jQuery);jQuery(document).ready(function(g){var d=false,j,e,h=true,a=g("#timestamp").html(),b=g("#post-visibility-display").html(),i="";if(typeof autosave!="function"){autosave=function(){}}postboxes.add_postbox_toggles("post");make_slugedit_clickable();tag_init();g("#title").blur(function(){if((g("#post_ID").val()>0)||(g("#title").val().length==0)){return}autosave()});g(".newtag").each(function(){var k=g(this).parents("div.tagsdiv").attr("id");g(this).suggest("admin-ajax.php?action=ajax-tag-search&tax="+k,{delay:500,minchars:2,multiple:true,multipleSep:", "})});g("#category-tabs a").click(function(){var k=g(this).attr("href");g(this).parent().addClass("tabs").siblings("li").removeClass("tabs");g(".tabs-panel").hide();g(k).show();if("#categories-all"==k){deleteUserSetting("cats")}else{setUserSetting("cats","pop")}return false});if(getUserSetting("cats")){g('#category-tabs a[href="#categories-pop"]').click()}g("#newcat").one("focus",function(){g(this).val("").removeClass("form-input-tip")});g("#category-add-sumbit").click(function(){g("#newcat").focus()});j=function(){if(d){return}d=true;var k=jQuery(this),m=k.is(":checked"),l=k.val().toString();g("#in-category-"+l+", #in-popular-category-"+l).attr("checked",m);d=false};popularCats=g("#categorychecklist-pop :checkbox").map(function(){return parseInt(jQuery(this).val(),10)}).get().join(",");catAddBefore=function(k){if(!g("#newcat").val()){return false}k.data+="&popular_ids="+popularCats+"&"+jQuery("#categorychecklist :checked").serialize();return k};e=function(n,l){var k=jQuery("#newcat_parent"),m=k.find('option[value="-1"]');g(l.what+" response_data",n).each(function(){var o=g(g(this).text());o.find("label").each(function(){var q=g(this),s=q.find("input").val(),t=q.find("input")[0].id,p,r;g("#"+t).change(j).change();if(k.find('option[value="'+s+'"]').size()){return}p=g.trim(q.text());r=g('<option value="'+parseInt(s,10)+'"></option>').text(p);k.prepend(r)});m.attr("selected","selected")})};g("#categorychecklist").wpList({alt:"",response:"category-ajax-response",addBefore:catAddBefore,addAfter:e});g("#category-add-toggle").click(function(){g("#category-adder").toggleClass("wp-hidden-children");g('#category-tabs a[href="#categories-all"]').click();return false});g(".categorychecklist .popular-category :checkbox").change(j).filter(":checked").change(),i="";function f(){if(g("#post-visibility-select input:radio:checked").val()!="public"){g("#sticky").attr("checked",false);g("#sticky-span").hide()}else{g("#sticky-span").show()}if(g("#post-visibility-select input:radio:checked").val()!="password"){g("#password-span").hide()}else{g("#password-span").show()}}function c(){var k,m,l,n;k=new Date(g("#aa").val(),g("#mm").val()-1,g("#jj").val(),g("#hh").val(),g("#mn").val());m=new Date(g("#hidden_aa").val(),g("#hidden_mm").val()-1,g("#hidden_jj").val(),g("#hidden_hh").val(),g("#hidden_mn").val());l=new Date(g("#cur_aa").val(),g("#cur_mm").val()-1,g("#cur_jj").val(),g("#cur_hh").val(),g("#cur_mn").val());if(k>l&&g("#original_post_status").val()!="future"){n=postL10n.publishOnFuture;g("#publish").val(postL10n.schedule)}else{if(k<=l&&g("#original_post_status").val()!="publish"){n=postL10n.publishOn;g("#publish").val(postL10n.publish)}else{n=postL10n.publishOnPast;g("#publish").val(postL10n.update)}}if(m.toUTCString()==k.toUTCString()){g("#timestamp").html(a)}else{g("#timestamp").html(n+" <b>"+g("#mm option[value="+g("#mm").val()+"]").text()+" "+g("#jj").val()+", "+g("#aa").val()+" @ "+g("#hh").val()+":"+g("#mn").val()+"</b> ")}if(g("#post-visibility-select input:radio:checked").val()=="private"){g("#publish").val(postL10n.update);if(g("#post_status option[value=publish]").length==0){g("#post_status").append('<option value="publish">'+postL10n.privatelyPublished+"</option>")}g("#post_status option[value=publish]").html(postL10n.privatelyPublished);g("#post_status option[value=publish]").attr("selected",true);g(".edit-post-status").hide()}else{if(g("#original_post_status").val()=="future"||g("#original_post_status").val()=="draft"){if(g("#post_status option[value=publish]").length!=0){g("#post_status option[value=publish]").remove();g("#post_status").val(g("#hidden_post_status").val())}}else{g("#post_status option[value=publish]").html(postL10n.published)}g(".edit-post-status").show()}g("#post-status-display").html(g("#post_status :selected").text());if(g("#post_status :selected").val()=="private"||g("#post_status :selected").val()=="publish"){g("#save-post").hide()}else{g("#save-post").show();if(g("#post_status :selected").val()=="pending"){g("#save-post").show().val(postL10n.savePending)}else{g("#save-post").show().val(postL10n.saveDraft)}}}g(".edit-visibility").click(function(){if(g("#post-visibility-select").is(":hidden")){f();g("#post-visibility-select").slideDown("normal");g(".edit-visibility").hide()}return false});g(".cancel-post-visibility").click(function(){g("#post-visibility-select").slideUp("normal");g("#visibility-radio-"+g("#hidden-post-visibility").val()).attr("checked",true);g("#post_password").val(g("#hidden_post_password").val());g("#sticky").attr("checked",g("#hidden-post-sticky").attr("checked"));g("#post-visibility-display").html(b);g(".edit-visibility").show();c();return false});g(".save-post-visibility").click(function(){g("#post-visibility-select").slideUp("normal");g(".edit-visibility").show();c();if(g("#post-visibility-select input:radio:checked").val()!="public"){g("#sticky").attr("checked",false)}if(true==g("#sticky").attr("checked")){i="Sticky"}else{i=""}g("#post-visibility-display").html(postL10n[g("#post-visibility-select input:radio:checked").val()+i]);return false});g("#post-visibility-select input:radio").change(function(){f()});g(".edit-timestamp").click(function(){if(g("#timestampdiv").is(":hidden")){g("#timestampdiv").slideDown("normal");g(".edit-timestamp").hide()}return false});g(".cancel-timestamp").click(function(){g("#timestampdiv").slideUp("normal");g("#mm").val(g("#hidden_mm").val());g("#jj").val(g("#hidden_jj").val());g("#aa").val(g("#hidden_aa").val());g("#hh").val(g("#hidden_hh").val());g("#mn").val(g("#hidden_mn").val());g(".edit-timestamp").show();c();return false});g(".save-timestamp").click(function(){g("#timestampdiv").slideUp("normal");g(".edit-timestamp").show();c();return false});g(".edit-post-status").click(function(){if(g("#post-status-select").is(":hidden")){g("#post-status-select").slideDown("normal");g(this).hide()}return false});g(".save-post-status").click(function(){g("#post-status-select").slideUp("normal");g(".edit-post-status").show();c();return false});g(".cancel-post-status").click(function(){g("#post-status-select").slideUp("normal");g("#post_status").val(g("#hidden_post_status").val());g(".edit-post-status").show();c();return false});jQuery("#the-list").wpList({addAfter:function(k,l){g("table#list-table").show();if(jQuery.isFunction(autosave_update_post_ID)){autosave_update_post_ID(l.parsed.responses[0].supplemental.postid)}},addBefore:function(k){k.data+="&post_id="+jQuery("#post_ID").val();return k}});g("#post-preview").click(function(k){if(1>g("#post_ID").val()&&autosaveFirst){autosaveDelayPreview=true;autosave();return false}g("input#wp-preview").val("dopreview");g("form#post").attr("target","wp-preview").submit().attr("target","");g("input#wp-preview").val("");return false});if(typeof tinyMCE!="undefined"){g("#title")[g.browser.opera?"keypress":"keydown"](function(k){if(k.which==9&&!k.shiftKey&&!k.controlKey&&!k.altKey){if((g("#post_ID").val()<1)&&(g("#title").val().length>0)){autosave()}if(tinyMCE.activeEditor&&!tinyMCE.activeEditor.isHidden()&&h){k.preventDefault();h=false;tinyMCE.activeEditor.focus();return false}}})}}); 
  • trunk/wp-admin/press-this.php

    r11204 r11224  
    473473                <div class="inside"> 
    474474 
    475                     <div id="categories-all" class="ui-tabs-panel"> 
     475                    <div id="categories-all" class="tabs-panel"> 
    476476                        <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 
    477477                            <?php wp_category_checklist($post_ID, false) ?> 
  • trunk/wp-admin/rtl.css

    r11133 r11224  
    293293    margin-right: 120px; 
    294294} 
    295 #post-body ul#category-tabs li.ui-tabs-selected { 
     295#post-body ul#category-tabs li.tabs { 
    296296    -moz-border-radius: 0 3px 3px 0; 
    297297    -webkit-border-top-left-radius: 0; 
     
    309309    margin: 0 0 0 -120px; 
    310310} 
    311 #post-body #categorydiv div.ui-tabs-panel, 
    312 #post-body #linkcategorydiv div.ui-tabs-panel { 
     311#post-body #categorydiv div.tabs-panel, 
     312#post-body #linkcategorydiv div.tabs-panel { 
    313313    margin: 0 120px 0 5px; 
    314314} 
  • trunk/wp-admin/wp-admin.css

    r11191 r11224  
    19171917    text-align: right; 
    19181918    /* Negative margin for the sake of those without JS: all tabs display */ 
    1919     margin: 0 -120px 0 0; 
     1919    margin: 0 -120px 0 5px; 
    19201920    padding: 0; 
    19211921} 
     
    19251925} 
    19261926 
    1927 #post-body ul#category-tabs li.ui-tabs-selected { 
     1927#post-body ul#category-tabs li.tabs { 
    19281928    -moz-border-radius: 3px 0 0 3px; 
    19291929    -webkit-border-top-left-radius: 3px; 
     
    19351935} 
    19361936 
    1937 #post-body ul#category-tabs li.ui-tabs-selected a { 
     1937#post-body ul#category-tabs li.tabs a { 
    19381938    font-weight: bold; 
    19391939    text-decoration: none; 
    19401940} 
    19411941 
    1942 #categorydiv div.ui-tabs-panel, 
    1943 #linkcategorydiv div.ui-tabs-panel { 
     1942#categorydiv div.tabs-panel, 
     1943#linkcategorydiv div.tabs-panel { 
    19441944    height: 150px; 
    19451945    overflow: auto; 
    19461946    padding: 0.5em 0.9em; 
    1947 } 
    1948  
    1949 #post-body #categorydiv div.ui-tabs-panel, 
    1950 #post-body #linkcategorydiv div.ui-tabs-panel { 
    1951     margin: 0 5px 0 120px; 
    1952     height: 10em; 
    1953     overflow: auto; 
    1954     border-width: 4px; 
    19551947    border-style: solid; 
     1948    border-width: 1px; 
     1949} 
     1950 
     1951#post-body #categorydiv div.tabs-panel, 
     1952#post-body #linkcategorydiv div.tabs-panel { 
     1953    margin: 0 5px 0 125px; 
    19561954} 
    19571955 
     
    19921990} 
    19931991 
    1994 #categorydiv .ui-tabs-panel { 
     1992#categorydiv .tabs-panel { 
    19951993    border-width: 3px; 
    19961994    border-style: solid;  
     
    19991997ul#category-tabs { 
    20001998    margin-top: 12px; 
     1999} 
     2000 
     2001ul#category-tabs li.tabs { 
     2002    border-style: solid solid none; 
     2003    border-width: 1px 1px 0; 
     2004} 
     2005 
     2006#post-body #category-tabs li.tabs { 
     2007    border-style: solid none solid solid; 
     2008    border-width: 1px 0 1px 1px; 
     2009    margin-right: -1px; 
    20012010} 
    20022011 
  • trunk/wp-includes/script-loader.php

    r11204 r11224  
    263263        ) ); 
    264264 
    265         $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox', 'slug'), '20090325' ); 
     265        $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox', 'slug'), '20090506' ); 
    266266        $scripts->add_data( 'post', 'group', 1 ); 
    267267        $scripts->localize( 'post', 'postL10n', array( 
     
    314314        ) ); 
    315315 
    316         $scripts->add( 'link', "/wp-admin/js/link$suffix.js", array('wp-lists', 'postbox'), '20090325' ); 
     316        $scripts->add( 'link', "/wp-admin/js/link$suffix.js", array('wp-lists', 'postbox'), '20090506' ); 
    317317        $scripts->add_data( 'link', 'group', 1 ); 
    318318 
     
    419419    $rtl_styles = array( 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'plugin-install', 'farbtastic' ); 
    420420 
    421     $styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20090428' ); 
     421    $styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20090506' ); 
    422422    $styles->add_data( 'wp-admin', 'rtl', '/wp-admin/rtl.css' ); 
    423423 
     
    425425    $styles->add_data( 'ie', 'conditional', 'lte IE 7' ); 
    426426 
    427     $styles->add( 'colors', true, array(), '20090503' ); // Register "meta" stylesheet for admin colors 
     427    $styles->add( 'colors', true, array(), '20090506' ); // Register "meta" stylesheet for admin colors 
    428428    $styles->add( 'colors-fresh', '/wp-admin/css/colors-fresh.css', array(), '20081210'); // for login.php.  Is there a better way? 
    429429    $styles->add_data( 'colors-fresh', 'rtl', true ); 
     
    437437    $styles->add( 'install', '/wp-admin/css/install.css', array(), '20081210' ); 
    438438    $styles->add( 'theme-editor', '/wp-admin/css/theme-editor.css', array(), '20081210' ); 
    439     $styles->add( 'press-this', '/wp-admin/css/press-this.css', array(), '20081210' ); 
     439    $styles->add( 'press-this', '/wp-admin/css/press-this.css', array(), '20090506' ); 
    440440    $styles->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array(), '20081210' ); 
    441441    $styles->add( 'login', '/wp-admin/css/login.css', array(), '20081210' ); 
Note: See TracChangeset for help on using the changeset viewer.