diff --git wp-admin/js/categories.js wp-admin/js/categories.js
index cc58eb4..9ee67db 100644
|
|
|
jQuery(document).ready(function($) {
|
| 30 | 30 | else |
| 31 | 31 | $('#the-list').wpList({ delBefore: delBefore }); |
| 32 | 32 | |
| 33 | | $('.delete a[class^="delete"]').live('click', function(){return false;}); |
| | 33 | $('.delete a[class^="delete"]').live('click', function(e) { e.preventDefault(); }); |
| 34 | 34 | }); |
diff --git wp-admin/js/comment.js wp-admin/js/comment.js
index f9d93bf..e22ea89 100644
|
|
|
jQuery(document).ready( function($) {
|
| 3 | 3 | postboxes.add_postbox_toggles('comment'); |
| 4 | 4 | |
| 5 | 5 | var stamp = $('#timestamp').html(); |
| 6 | | $('.edit-timestamp').click(function () { |
| | 6 | $('.edit-timestamp').click(function (e) { |
| | 7 | e.preventDefault(); |
| 7 | 8 | if ($('#timestampdiv').is(":hidden")) { |
| 8 | 9 | $('#timestampdiv').slideDown("normal"); |
| 9 | 10 | $('.edit-timestamp').hide(); |
| 10 | 11 | } |
| 11 | | return false; |
| 12 | 12 | }); |
| 13 | 13 | |
| 14 | | $('.cancel-timestamp').click(function() { |
| | 14 | $('.cancel-timestamp').click(function(e) { |
| | 15 | e.preventDefault(); |
| 15 | 16 | $('#timestampdiv').slideUp("normal"); |
| 16 | 17 | $('#mm').val($('#hidden_mm').val()); |
| 17 | 18 | $('#jj').val($('#hidden_jj').val()); |
| … |
… |
jQuery(document).ready( function($) {
|
| 20 | 21 | $('#mn').val($('#hidden_mn').val()); |
| 21 | 22 | $('#timestamp').html(stamp); |
| 22 | 23 | $('.edit-timestamp').show(); |
| 23 | | return false; |
| 24 | 24 | }); |
| 25 | 25 | |
| 26 | | $('.save-timestamp').click(function () { // crazyhorse - multiple ok cancels |
| | 26 | $('.save-timestamp').click(function (e) { // crazyhorse - multiple ok cancels |
| | 27 | e.preventDefault(); |
| 27 | 28 | var aa = $('#aa').val(), mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val(), |
| 28 | 29 | newD = new Date( aa, mm - 1, jj, hh, mn ); |
| 29 | 30 | |
| 30 | 31 | if ( newD.getFullYear() != aa || (1 + newD.getMonth()) != mm || newD.getDate() != jj || newD.getMinutes() != mn ) { |
| 31 | 32 | $('.timestamp-wrap', '#timestampdiv').addClass('form-invalid'); |
| 32 | | return false; |
| | 33 | return; |
| 33 | 34 | } else { |
| 34 | 35 | $('.timestamp-wrap', '#timestampdiv').removeClass('form-invalid'); |
| 35 | 36 | } |
| … |
… |
jQuery(document).ready( function($) {
|
| 44 | 45 | hh + ':' + |
| 45 | 46 | mn + '</b> ' |
| 46 | 47 | ); |
| 47 | | return false; |
| 48 | 48 | }); |
| 49 | 49 | }); |
diff --git wp-admin/js/common.js wp-admin/js/common.js
index 0f6b84d..e6e09ac 100644
|
|
|
$(document).ready( function() {
|
| 327 | 327 | }); |
| 328 | 328 | }); |
| 329 | 329 | |
| 330 | | $('#default-password-nag-no').click( function() { |
| | 330 | $('#default-password-nag-no').click( function(e) { |
| | 331 | e.preventDefault(); |
| 331 | 332 | setUserSetting('default_password_nag', 'hide'); |
| 332 | 333 | $('div.default-password-nag').hide(); |
| 333 | | return false; |
| 334 | 334 | }); |
| 335 | 335 | |
| 336 | 336 | // tab in textareas |
diff --git wp-admin/js/dashboard.js wp-admin/js/dashboard.js
index 50a17f8..6b8faf7 100644
|
|
|
jQuery(document).ready( function($) {
|
| 65 | 65 | /* QuickPress */ |
| 66 | 66 | quickPressLoad = function() { |
| 67 | 67 | var act = $('#quickpost-action'), t; |
| 68 | | t = $('#quick-press').submit( function() { |
| | 68 | t = $('#quick-press').submit( function(e) { |
| | 69 | e.preventDefault(); |
| 69 | 70 | $('#dashboard_quick_press #publishing-action .spinner').show(); |
| 70 | 71 | $('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop('disabled', true); |
| 71 | 72 | |
| … |
… |
jQuery(document).ready( function($) {
|
| 82 | 83 | } ).end().remove(); |
| 83 | 84 | quickPressLoad(); |
| 84 | 85 | } ); |
| 85 | | return false; |
| 86 | 86 | } ); |
| 87 | 87 | |
| 88 | 88 | $('#publish').click( function() { act.val( 'post-quickpress-publish' ); } ); |
diff --git wp-admin/js/edit-comments.js wp-admin/js/edit-comments.js
index 038a1e5..8489a16 100644
|
|
|
setCommentsList = function() {
|
| 76 | 76 | a.attr('class', 'vim-z vim-destructive'); |
| 77 | 77 | $('.avatar', el).clone().prependTo('#undo-' + id + ' .' + action + '-undo-inside'); |
| 78 | 78 | |
| 79 | | a.click(function(){ |
| | 79 | a.click(function(e){ |
| | 80 | e.preventDefault(); |
| 80 | 81 | list.wpList.del(this); |
| 81 | 82 | $('#undo-' + id).css( {backgroundColor:'#ceb'} ).fadeOut(350, function(){ |
| 82 | 83 | $(this).remove(); |
| 83 | 84 | $('#comment-' + id).css('backgroundColor', '').fadeIn(300, function(){ $(this).show() }); |
| 84 | 85 | }); |
| 85 | | return false; |
| 86 | 86 | }); |
| 87 | 87 | } |
| 88 | 88 | |
| … |
… |
$(document).ready(function(){
|
| 560 | 560 | |
| 561 | 561 | setCommentsList(); |
| 562 | 562 | commentReply.init(); |
| 563 | | $(document).delegate('span.delete a.delete', 'click', function(){return false;}); |
| | 563 | $(document).delegate('span.delete a.delete', 'click', function(e) { e.preventDefault(); }); |
| 564 | 564 | |
| 565 | 565 | if ( typeof $.table_hotkeys != 'undefined' ) { |
| 566 | 566 | make_hotkeys_redirect = function(which) { |
diff --git wp-admin/js/gallery.js wp-admin/js/gallery.js
index d7b4bb1..658556a 100644
|
|
|
jQuery(document).ready(function($) {
|
| 34 | 34 | }); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | | $('#asc').click(function(){desc = false; sortIt(); return false;}); |
| 38 | | $('#desc').click(function(){desc = true; sortIt(); return false;}); |
| 39 | | $('#clear').click(function(){clearAll(1); return false;}); |
| 40 | | $('#showall').click(function(){ |
| | 37 | $('#asc').click(function(e){desc = false; sortIt(); e.preventDefault();}); |
| | 38 | $('#desc').click(function(e){desc = true; sortIt(); e.preventDefault();}); |
| | 39 | $('#clear').click(function(e){clearAll(1); e.preventDefault();}); |
| | 40 | $('#showall').click(function(e){ |
| | 41 | e.preventDefault(); |
| 41 | 42 | $('#sort-buttons span a').toggle(); |
| 42 | 43 | $('a.describe-toggle-on').hide(); |
| 43 | 44 | $('a.describe-toggle-off, table.slidetoggle').show(); |
| 44 | 45 | $('img.pinkynail').toggle(false); |
| 45 | | return false; |
| 46 | 46 | }); |
| 47 | | $('#hideall').click(function(){ |
| | 47 | $('#hideall').click(function(e){ |
| | 48 | e.preventDefault(); |
| 48 | 49 | $('#sort-buttons span a').toggle(); |
| 49 | 50 | $('a.describe-toggle-on').show(); |
| 50 | 51 | $('a.describe-toggle-off, table.slidetoggle').hide(); |
| 51 | 52 | $('img.pinkynail').toggle(true); |
| 52 | | return false; |
| 53 | 53 | }); |
| 54 | 54 | |
| 55 | 55 | // initialize sortable |
diff --git wp-admin/js/inline-edit-post.js wp-admin/js/inline-edit-post.js
index 9abf478..9883ad0 100644
|
|
|
inlineEditPost = {
|
| 42 | 42 | }); |
| 43 | 43 | |
| 44 | 44 | // add events |
| 45 | | $('a.editinline').live('click', function(){ |
| | 45 | $('a.editinline').live('click', function(e){ |
| | 46 | e.preventDefault(); |
| 46 | 47 | inlineEditPost.edit(this); |
| 47 | | return false; |
| 48 | 48 | }); |
| 49 | 49 | |
| 50 | 50 | $('#bulk-title-div').parents('fieldset').after( |
diff --git wp-admin/js/link.js wp-admin/js/link.js
index f8b4583..c38d9ae 100644
|
|
|
jQuery(document).ready( function($) {
|
| 7 | 7 | postboxes.add_postbox_toggles('link'); |
| 8 | 8 | |
| 9 | 9 | // category tabs |
| 10 | | $('#category-tabs a').click(function(){ |
| | 10 | $('#category-tabs a').click(function(e){ |
| | 11 | e.preventDefault(); |
| 11 | 12 | var t = $(this).attr('href'); |
| 12 | 13 | $(this).parent().addClass('tabs').siblings('li').removeClass('tabs'); |
| 13 | 14 | $('.tabs-panel').hide(); |
| … |
… |
jQuery(document).ready( function($) {
|
| 16 | 17 | deleteUserSetting('cats'); |
| 17 | 18 | else |
| 18 | 19 | setUserSetting('cats','pop'); |
| 19 | | return false; |
| 20 | 20 | }); |
| 21 | 21 | if ( getUserSetting('cats') ) |
| 22 | 22 | $('#category-tabs a[href="#categories-pop"]').click(); |
| … |
… |
jQuery(document).ready( function($) {
|
| 56 | 56 | if ( 'pop' == getUserSetting('cats') ) |
| 57 | 57 | $('a[href="#categories-pop"]').click(); |
| 58 | 58 | |
| 59 | | $('#category-add-toggle').click( function() { |
| | 59 | $('#category-add-toggle').click( function(e) { |
| | 60 | e.preventDefault(); |
| 60 | 61 | $(this).parents('div:first').toggleClass( 'wp-hidden-children' ); |
| 61 | 62 | $('#category-tabs a[href="#categories-all"]').click(); |
| 62 | 63 | $('#newcategory').focus(); |
| 63 | | return false; |
| 64 | 64 | } ); |
| 65 | 65 | |
| 66 | 66 | $('.categorychecklist :checkbox').change( syncChecks ).filter( ':checked' ).change(); |
diff --git wp-admin/js/plugin-install.js wp-admin/js/plugin-install.js
index f32574a..1901f8d 100644
|
|
|
jQuery(document).ready(function($) {
|
| 27 | 27 | |
| 28 | 28 | $(window).resize(function(){ tb_position(); }); |
| 29 | 29 | |
| 30 | | $('#dashboard_plugins a.thickbox, .plugins a.thickbox').click( function() { |
| | 30 | $('#dashboard_plugins a.thickbox, .plugins a.thickbox').click( function(e) { |
| | 31 | e.preventDefault(); |
| 31 | 32 | tb_click.call(this); |
| 32 | 33 | |
| 33 | 34 | $('#TB_title').css({'background-color':'#222','color':'#cfcfcf'}); |
| 34 | 35 | $('#TB_ajaxWindowTitle').html('<strong>' + plugininstallL10n.plugin_information + '</strong> ' + $(this).attr('title') ); |
| 35 | | return false; |
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | 38 | /* Plugin install related JS*/ |
| 39 | | $('#plugin-information #sidemenu a').click( function() { |
| | 39 | $('#plugin-information #sidemenu a').click( function(e) { |
| | 40 | e.preventDefault(); |
| 40 | 41 | var tab = $(this).attr('name'); |
| 41 | 42 | //Flip the tab |
| 42 | 43 | $('#plugin-information-header a.current').removeClass('current'); |
| … |
… |
jQuery(document).ready(function($) {
|
| 44 | 45 | //Flip the content. |
| 45 | 46 | $('#section-holder div.section').hide(); //Hide 'em all |
| 46 | 47 | $('#section-' + tab).show(); |
| 47 | | return false; |
| 48 | 48 | }); |
| 49 | 49 | |
| 50 | 50 | $('a.install-now').click( function() { |
diff --git wp-admin/js/post.js wp-admin/js/post.js
index d08dc4a..7ef4d92 100644
|
|
|
tagBox = {
|
| 164 | 164 | }); |
| 165 | 165 | |
| 166 | 166 | // tag cloud |
| 167 | | $('a.tagcloud-link').click(function(){ |
| | 167 | $('a.tagcloud-link').click(function(e){ |
| | 168 | e.preventDefault(); |
| 168 | 169 | if ( ! $('.the-tagcloud').length ) |
| 169 | 170 | tagBox.get( $(this).attr('id') ); |
| 170 | 171 | $(this).siblings('.the-tagcloud').toggle(); |
| 171 | | return false; |
| 172 | 172 | }); |
| 173 | 173 | } |
| 174 | 174 | }; |
| … |
… |
jQuery(document).ready( function($) {
|
| 280 | 280 | settingName = 'cats'; |
| 281 | 281 | |
| 282 | 282 | // TODO: move to jQuery 1.3+, support for multiple hierarchical taxonomies, see wp-lists.js |
| 283 | | $('a', '#' + taxonomy + '-tabs').click( function(){ |
| | 283 | $('a', '#' + taxonomy + '-tabs').click( function(e){ |
| | 284 | e.preventDefault(); |
| 284 | 285 | var t = $(this).attr('href'); |
| 285 | 286 | $(this).parent().addClass('tabs').siblings('li').removeClass('tabs'); |
| 286 | 287 | $('#' + taxonomy + '-tabs').siblings('.tabs-panel').hide(); |
| … |
… |
jQuery(document).ready( function($) {
|
| 289 | 290 | deleteUserSetting(settingName); |
| 290 | 291 | else |
| 291 | 292 | setUserSetting(settingName, 'pop'); |
| 292 | | return false; |
| 293 | 293 | }); |
| 294 | 294 | |
| 295 | 295 | if ( getUserSetting(settingName) ) |
| … |
… |
jQuery(document).ready( function($) {
|
| 340 | 340 | addAfter: catAddAfter |
| 341 | 341 | }); |
| 342 | 342 | |
| 343 | | $('#' + taxonomy + '-add-toggle').click( function() { |
| | 343 | $('#' + taxonomy + '-add-toggle').click( function(e) { |
| | 344 | e.preventDefault(); |
| 344 | 345 | $('#' + taxonomy + '-adder').toggleClass( 'wp-hidden-children' ); |
| 345 | 346 | $('a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs').click(); |
| 346 | 347 | $('#new'+taxonomy).focus(); |
| 347 | | return false; |
| 348 | 348 | }); |
| 349 | 349 | |
| 350 | 350 | $('#' + taxonomy + 'checklist li.popular-category input[type="checkbox"], #' + taxonomy + 'checklist-pop input[type="checkbox"]').live( 'click', function(){ |
| … |
… |
jQuery(document).ready( function($) {
|
| 464 | 464 | return true; |
| 465 | 465 | } |
| 466 | 466 | |
| 467 | | $('.edit-visibility', '#visibility').click(function () { |
| | 467 | $('.edit-visibility', '#visibility').click(function (e) { |
| | 468 | e.preventDefault(); |
| 468 | 469 | if ($('#post-visibility-select').is(":hidden")) { |
| 469 | 470 | updateVisibility(); |
| 470 | 471 | $('#post-visibility-select').slideDown('fast'); |
| 471 | 472 | $(this).hide(); |
| 472 | 473 | } |
| 473 | | return false; |
| 474 | 474 | }); |
| 475 | 475 | |
| 476 | | $('.cancel-post-visibility', '#post-visibility-select').click(function () { |
| | 476 | $('.cancel-post-visibility', '#post-visibility-select').click(function (e) { |
| | 477 | e.preventDefault(); |
| 477 | 478 | $('#post-visibility-select').slideUp('fast'); |
| 478 | 479 | $('#visibility-radio-' + $('#hidden-post-visibility').val()).prop('checked', true); |
| 479 | 480 | $('#post_password').val($('#hidden_post_password').val()); |
| … |
… |
jQuery(document).ready( function($) {
|
| 481 | 482 | $('#post-visibility-display').html(visibility); |
| 482 | 483 | $('.edit-visibility', '#visibility').show(); |
| 483 | 484 | updateText(); |
| 484 | | return false; |
| 485 | 485 | }); |
| 486 | 486 | |
| 487 | | $('.save-post-visibility', '#post-visibility-select').click(function () { // crazyhorse - multiple ok cancels |
| | 487 | $('.save-post-visibility', '#post-visibility-select').click(function (e) { // crazyhorse - multiple ok cancels |
| | 488 | e.preventDefault(); |
| 488 | 489 | var pvSelect = $('#post-visibility-select'); |
| 489 | 490 | |
| 490 | 491 | pvSelect.slideUp('fast'); |
| … |
… |
jQuery(document).ready( function($) {
|
| 502 | 503 | } |
| 503 | 504 | |
| 504 | 505 | $('#post-visibility-display').html( postL10n[$('input:radio:checked', pvSelect).val() + sticky] ); |
| 505 | | return false; |
| 506 | 506 | }); |
| 507 | 507 | |
| 508 | 508 | $('input:radio', '#post-visibility-select').change(function() { |
| 509 | 509 | updateVisibility(); |
| 510 | 510 | }); |
| 511 | 511 | |
| 512 | | $('#timestampdiv').siblings('a.edit-timestamp').click(function() { |
| | 512 | $('#timestampdiv').siblings('a.edit-timestamp').click(function(e) { |
| | 513 | e.preventDefault(); |
| 513 | 514 | if ($('#timestampdiv').is(":hidden")) { |
| 514 | 515 | $('#timestampdiv').slideDown('fast'); |
| 515 | 516 | $('#mm').focus(); |
| 516 | 517 | $(this).hide(); |
| 517 | 518 | } |
| 518 | | return false; |
| 519 | 519 | }); |
| 520 | 520 | |
| 521 | | $('.cancel-timestamp', '#timestampdiv').click(function() { |
| | 521 | $('.cancel-timestamp', '#timestampdiv').click(function(e) { |
| | 522 | e.preventDefault(); |
| 522 | 523 | $('#timestampdiv').slideUp('fast'); |
| 523 | 524 | $('#mm').val($('#hidden_mm').val()); |
| 524 | 525 | $('#jj').val($('#hidden_jj').val()); |
| … |
… |
jQuery(document).ready( function($) {
|
| 527 | 528 | $('#mn').val($('#hidden_mn').val()); |
| 528 | 529 | $('#timestampdiv').siblings('a.edit-timestamp').show(); |
| 529 | 530 | updateText(); |
| 530 | | return false; |
| 531 | 531 | }); |
| 532 | 532 | |
| 533 | | $('.save-timestamp', '#timestampdiv').click(function () { // crazyhorse - multiple ok cancels |
| | 533 | $('.save-timestamp', '#timestampdiv').click(function (e) { // crazyhorse - multiple ok cancels |
| | 534 | e.preventDefault(); |
| 534 | 535 | if ( updateText() ) { |
| 535 | 536 | $('#timestampdiv').slideUp('fast'); |
| 536 | 537 | $('#timestampdiv').siblings('a.edit-timestamp').show(); |
| 537 | 538 | } |
| 538 | | return false; |
| 539 | 539 | }); |
| 540 | 540 | |
| 541 | 541 | $('#post').on( 'submit', function(e){ |
| … |
… |
jQuery(document).ready( function($) {
|
| 548 | 548 | } |
| 549 | 549 | }); |
| 550 | 550 | |
| 551 | | $('#post-status-select').siblings('a.edit-post-status').click(function() { |
| | 551 | $('#post-status-select').siblings('a.edit-post-status').click(function(e) { |
| | 552 | e.preventDefault(); |
| 552 | 553 | if ($('#post-status-select').is(":hidden")) { |
| 553 | 554 | $('#post-status-select').slideDown('fast'); |
| 554 | 555 | $(this).hide(); |
| 555 | 556 | } |
| 556 | | return false; |
| 557 | 557 | }); |
| 558 | 558 | |
| 559 | | $('.save-post-status', '#post-status-select').click(function() { |
| | 559 | $('.save-post-status', '#post-status-select').click(function(e) { |
| | 560 | e.preventDefault(); |
| 560 | 561 | $('#post-status-select').slideUp('fast'); |
| 561 | 562 | $('#post-status-select').siblings('a.edit-post-status').show(); |
| 562 | 563 | updateText(); |
| 563 | | return false; |
| 564 | 564 | }); |
| 565 | 565 | |
| 566 | | $('.cancel-post-status', '#post-status-select').click(function() { |
| | 566 | $('.cancel-post-status', '#post-status-select').click(function(e) { |
| | 567 | e.preventDefault(); |
| 567 | 568 | $('#post-status-select').slideUp('fast'); |
| 568 | 569 | $('#post_status').val($('#hidden_post_status').val()); |
| 569 | 570 | $('#post-status-select').siblings('a.edit-post-status').show(); |
| 570 | 571 | updateText(); |
| 571 | | return false; |
| 572 | 572 | }); |
| 573 | 573 | } // end submitdiv |
| 574 | 574 | |
| … |
… |
jQuery(document).ready( function($) {
|
| 579 | 579 | |
| 580 | 580 | $('#view-post-btn').hide(); |
| 581 | 581 | b.html('<a href="#" class="save button button-small">'+postL10n.ok+'</a> <a class="cancel" href="#">'+postL10n.cancel+'</a>'); |
| 582 | | b.children('.save').click(function() { |
| | 582 | b.children('.save').click(function(e) { |
| | 583 | e.preventDefault(); |
| 583 | 584 | var new_slug = e.children('input').val(); |
| 584 | 585 | if ( new_slug == $('#editable-post-name-full').text() ) { |
| 585 | 586 | return $('.cancel', '#edit-slug-buttons').click(); |
| … |
… |
jQuery(document).ready( function($) {
|
| 597 | 598 | makeSlugeditClickable(); |
| 598 | 599 | $('#view-post-btn').show(); |
| 599 | 600 | }); |
| 600 | | return false; |
| 601 | 601 | }); |
| 602 | 602 | |
| 603 | | $('.cancel', '#edit-slug-buttons').click(function() { |
| | 603 | $('.cancel', '#edit-slug-buttons').click(function(e) { |
| | 604 | e.preventDefault(); |
| 604 | 605 | $('#view-post-btn').show(); |
| 605 | 606 | e.html(revert_e); |
| 606 | 607 | b.html(revert_b); |
| 607 | 608 | real_slug.val(revert_slug); |
| 608 | | return false; |
| 609 | 609 | }); |
| 610 | 610 | |
| 611 | 611 | for ( i = 0; i < full.length; ++i ) { |
diff --git wp-admin/js/postbox.js wp-admin/js/postbox.js
index 838db5d..a9b4e89 100644
|
|
|
var postboxes;
|
| 31 | 31 | }); |
| 32 | 32 | |
| 33 | 33 | $('.postbox a.dismiss').bind('click.postboxes', function(e) { |
| | 34 | e.preventDefault(); |
| 34 | 35 | var hide_id = $(this).parents('.postbox').attr('id') + '-hide'; |
| 35 | 36 | $( '#' + hide_id ).prop('checked', false).triggerHandler('click'); |
| 36 | | return false; |
| 37 | 37 | }); |
| 38 | 38 | |
| 39 | 39 | $('.hide-postbox-tog').bind('click.postboxes', function() { |
diff --git wp-admin/js/theme-preview.js wp-admin/js/theme-preview.js
index b7959c5..5521476 100644
|
|
|
jQuery(document).ready(function($) {
|
| 20 | 20 | thickDims(); |
| 21 | 21 | $(window).resize( function() { thickDims() } ); |
| 22 | 22 | |
| 23 | | $('a.thickbox-preview').click( function() { |
| | 23 | $('a.thickbox-preview').click( function(e) { |
| | 24 | e.preventDefault(); |
| 24 | 25 | tb_click.call(this); |
| 25 | 26 | |
| 26 | 27 | var alink = $(this).parents('.available-theme').find('.activatelink'), link = '', href = $(this).attr('href'), url, text; |
| … |
… |
jQuery(document).ready(function($) {
|
| 50 | 51 | |
| 51 | 52 | $('#TB_iframeContent').width('100%'); |
| 52 | 53 | thickDims(); |
| 53 | | |
| 54 | | return false; |
| 55 | 54 | } ); |
| 56 | 55 | }); |
diff --git wp-admin/js/theme.js wp-admin/js/theme.js
index 079c73b..7dda4df 100644
|
|
|
var ThemeViewer;
|
| 64 | 64 | ThemeViewer = function( args ) { |
| 65 | 65 | |
| 66 | 66 | function init() { |
| 67 | | $( '#filter-click, #mini-filter-click' ).unbind( 'click' ).click( function() { |
| | 67 | $( '#filter-click, #mini-filter-click' ).unbind( 'click' ).click( function(e) { |
| | 68 | e.preventDefault(); |
| 68 | 69 | $( '#filter-click' ).toggleClass( 'current' ); |
| 69 | 70 | $( '#filter-box' ).slideToggle(); |
| 70 | 71 | $( '#current-theme' ).slideToggle( 300 ); |
| 71 | | return false; |
| 72 | 72 | }); |
| 73 | 73 | |
| 74 | 74 | $( '#filter-box :checkbox' ).unbind( 'click' ).click( function() { |
diff --git wp-includes/js/comment-reply.js wp-includes/js/comment-reply.js
index 2015425..e9d8d52 100644
|
|
|
addComment = {
|
| 22 | 22 | parent.value = parentId; |
| 23 | 23 | cancel.style.display = ''; |
| 24 | 24 | |
| 25 | | cancel.onclick = function() { |
| | 25 | cancel.onclick = function(e) { |
| | 26 | e.preventDefault(); |
| 26 | 27 | var t = addComment, temp = t.I('wp-temp-form-div'), respond = t.I(t.respondId); |
| 27 | 28 | |
| 28 | 29 | if ( ! temp || ! respond ) |
| … |
… |
addComment = {
|
| 33 | 34 | temp.parentNode.removeChild(temp); |
| 34 | 35 | this.style.display = 'none'; |
| 35 | 36 | this.onclick = null; |
| 36 | | return false; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | try { t.I('comment').focus(); } |