Changeset 11224
- Timestamp:
- 05/06/2009 09:31:07 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
-
wp-admin/css/colors-classic.css (modified) (4 diffs)
-
wp-admin/css/colors-fresh.css (modified) (4 diffs)
-
wp-admin/css/press-this.css (modified) (1 diff)
-
wp-admin/edit-form-advanced.php (modified) (2 diffs)
-
wp-admin/edit-link-form.php (modified) (2 diffs)
-
wp-admin/js/link.dev.js (modified) (1 diff)
-
wp-admin/js/link.js (modified) (1 diff)
-
wp-admin/js/post.dev.js (modified) (1 diff)
-
wp-admin/js/post.js (modified) (1 diff)
-
wp-admin/press-this.php (modified) (1 diff)
-
wp-admin/rtl.css (modified) (2 diffs)
-
wp-admin/wp-admin.css (modified) (5 diffs)
-
wp-includes/script-loader.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/colors-classic.css
r11166 r11224 103 103 } 104 104 105 div.ui-tabs-panel { 106 border-color: #f1f1f1; 107 } 108 109 ul#category-tabs li.ui-tabs-selected { 105 div.tabs-panel, 106 ul#category-tabs li.tabs { 107 border-color: #dfdfdf; 108 } 109 110 ul#category-tabs li.tabs { 110 111 background-color: #f1f1f1; 111 112 } … … 368 369 } 369 370 370 #side-sortables #category-tabs . ui-tabs-selecteda {371 #side-sortables #category-tabs .tabs a { 371 372 color: #333; 372 373 } … … 474 475 475 476 /* Because we don't want visited on these links */ 476 body.press-this . ui-tabs-selecteda,477 body.press-this . ui-tabs-selecteda:hover {477 body.press-this .tabs a, 478 body.press-this .tabs a:hover { 478 479 background-color: #fff; 479 480 border-color: #c6d9e9; … … 1429 1430 } 1430 1431 1431 #post-body ul#category-tabs li. ui-tabs-selecteda {1432 #post-body ul#category-tabs li.tabs a { 1432 1433 color: #333; 1433 1434 } -
trunk/wp-admin/css/colors-fresh.css
r11166 r11224 103 103 } 104 104 105 div.ui-tabs-panel { 106 border-color: #f1f1f1; 107 } 108 109 ul#category-tabs li.ui-tabs-selected { 105 div.tabs-panel, 106 ul#category-tabs li.tabs { 107 border-color: #dfdfdf; 108 } 109 110 ul#category-tabs li.tabs { 110 111 background-color: #f1f1f1; 111 112 } … … 360 361 } 361 362 362 #side-sortables #category-tabs . ui-tabs-selecteda {363 #side-sortables #category-tabs .tabs a { 363 364 color: #333; 364 365 } … … 461 462 462 463 /* Because we don't want visited on these links */ 463 body.press-this . ui-tabs-selecteda,464 body.press-this . ui-tabs-selecteda:hover {464 body.press-this .tabs a, 465 body.press-this .tabs a:hover { 465 466 background-color: #fff; 466 467 border-color: #c6d9e9; … … 1410 1411 } 1411 1412 1412 #post-body ul#category-tabs li. ui-tabs-selecteda {1413 #post-body ul#category-tabs li.tabs a { 1413 1414 color: #333; 1414 1415 } -
trunk/wp-admin/css/press-this.css
r11203 r11224 346 346 } 347 347 348 #categorydiv div. ui-tabs-panel {348 #categorydiv div.tabs-panel { 349 349 height: 150px; 350 350 overflow: auto; -
trunk/wp-admin/edit-form-advanced.php
r11204 r11224 314 314 ?> 315 315 <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> 317 317 <li class="hide-if-no-js"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li> 318 318 </ul> 319 319 320 <div id="categories-pop" class=" ui-tabs-panel" style="display: none;">320 <div id="categories-pop" class="tabs-panel" style="display: none;"> 321 321 <ul id="categorychecklist-pop" class="categorychecklist form-no-clear" > 322 322 <?php $popular_ids = wp_popular_terms_checklist('category'); ?> … … 324 324 </div> 325 325 326 <div id="categories-all" class=" ui-tabs-panel">326 <div id="categories-all" class="tabs-panel"> 327 327 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 328 328 <?php wp_category_checklist($post->ID, false, false, $popular_ids) ?> -
trunk/wp-admin/edit-link-form.php
r11204 r11224 115 115 function link_categories_meta_box($link) { ?> 116 116 <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> 118 118 <li class="hide-if-no-js"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li> 119 119 </ul> 120 120 121 <div id="categories-all" class=" ui-tabs-panel">121 <div id="categories-all" class="tabs-panel"> 122 122 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 123 123 <?php … … 130 130 </div> 131 131 132 <div id="categories-pop" class=" ui-tabs-panel" style="display: none;">132 <div id="categories-pop" class="tabs-panel" style="display: none;"> 133 133 <ul id="categorychecklist-pop" class="categorychecklist form-no-clear"> 134 134 <?php wp_popular_terms_checklist('link_category'); ?> -
trunk/wp-admin/js/link.dev.js
r10834 r11224 10 10 $('#category-tabs a').click(function(){ 11 11 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(); 14 14 $(t).show(); 15 15 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()});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("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 237 237 $('#category-tabs a').click(function(){ 238 238 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(); 241 241 $(t).show(); 242 242 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> '+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}}})}});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> '+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 473 473 <div class="inside"> 474 474 475 <div id="categories-all" class=" ui-tabs-panel">475 <div id="categories-all" class="tabs-panel"> 476 476 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 477 477 <?php wp_category_checklist($post_ID, false) ?> -
trunk/wp-admin/rtl.css
r11133 r11224 293 293 margin-right: 120px; 294 294 } 295 #post-body ul#category-tabs li. ui-tabs-selected{295 #post-body ul#category-tabs li.tabs { 296 296 -moz-border-radius: 0 3px 3px 0; 297 297 -webkit-border-top-left-radius: 0; … … 309 309 margin: 0 0 0 -120px; 310 310 } 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 { 313 313 margin: 0 120px 0 5px; 314 314 } -
trunk/wp-admin/wp-admin.css
r11191 r11224 1917 1917 text-align: right; 1918 1918 /* Negative margin for the sake of those without JS: all tabs display */ 1919 margin: 0 -120px 0 0;1919 margin: 0 -120px 0 5px; 1920 1920 padding: 0; 1921 1921 } … … 1925 1925 } 1926 1926 1927 #post-body ul#category-tabs li. ui-tabs-selected{1927 #post-body ul#category-tabs li.tabs { 1928 1928 -moz-border-radius: 3px 0 0 3px; 1929 1929 -webkit-border-top-left-radius: 3px; … … 1935 1935 } 1936 1936 1937 #post-body ul#category-tabs li. ui-tabs-selecteda {1937 #post-body ul#category-tabs li.tabs a { 1938 1938 font-weight: bold; 1939 1939 text-decoration: none; 1940 1940 } 1941 1941 1942 #categorydiv div. ui-tabs-panel,1943 #linkcategorydiv div. ui-tabs-panel {1942 #categorydiv div.tabs-panel, 1943 #linkcategorydiv div.tabs-panel { 1944 1944 height: 150px; 1945 1945 overflow: auto; 1946 1946 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;1955 1947 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; 1956 1954 } 1957 1955 … … 1992 1990 } 1993 1991 1994 #categorydiv . ui-tabs-panel {1992 #categorydiv .tabs-panel { 1995 1993 border-width: 3px; 1996 1994 border-style: solid; … … 1999 1997 ul#category-tabs { 2000 1998 margin-top: 12px; 1999 } 2000 2001 ul#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; 2001 2010 } 2002 2011 -
trunk/wp-includes/script-loader.php
r11204 r11224 263 263 ) ); 264 264 265 $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox', 'slug'), '20090 325' );265 $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox', 'slug'), '20090506' ); 266 266 $scripts->add_data( 'post', 'group', 1 ); 267 267 $scripts->localize( 'post', 'postL10n', array( … … 314 314 ) ); 315 315 316 $scripts->add( 'link', "/wp-admin/js/link$suffix.js", array('wp-lists', 'postbox'), '20090 325' );316 $scripts->add( 'link', "/wp-admin/js/link$suffix.js", array('wp-lists', 'postbox'), '20090506' ); 317 317 $scripts->add_data( 'link', 'group', 1 ); 318 318 … … 419 419 $rtl_styles = array( 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'plugin-install', 'farbtastic' ); 420 420 421 $styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20090 428' );421 $styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20090506' ); 422 422 $styles->add_data( 'wp-admin', 'rtl', '/wp-admin/rtl.css' ); 423 423 … … 425 425 $styles->add_data( 'ie', 'conditional', 'lte IE 7' ); 426 426 427 $styles->add( 'colors', true, array(), '2009050 3' ); // Register "meta" stylesheet for admin colors427 $styles->add( 'colors', true, array(), '20090506' ); // Register "meta" stylesheet for admin colors 428 428 $styles->add( 'colors-fresh', '/wp-admin/css/colors-fresh.css', array(), '20081210'); // for login.php. Is there a better way? 429 429 $styles->add_data( 'colors-fresh', 'rtl', true ); … … 437 437 $styles->add( 'install', '/wp-admin/css/install.css', array(), '20081210' ); 438 438 $styles->add( 'theme-editor', '/wp-admin/css/theme-editor.css', array(), '20081210' ); 439 $styles->add( 'press-this', '/wp-admin/css/press-this.css', array(), '200 81210' );439 $styles->add( 'press-this', '/wp-admin/css/press-this.css', array(), '20090506' ); 440 440 $styles->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array(), '20081210' ); 441 441 $styles->add( 'login', '/wp-admin/css/login.css', array(), '20081210' );
Note: See TracChangeset
for help on using the changeset viewer.