[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/js/swfupload/ -> handlers.js (source)

   1  var topWin = window.dialogArguments || opener || parent || top;
   2  
   3  function fileDialogStart() {}
   4  function fileQueued() {}
   5  function uploadStart() {}
   6  function uploadProgress() {}
   7  function prepareMediaItem() {}
   8  function prepareMediaItemInit() {}
   9  function itemAjaxError() {}
  10  function deleteSuccess() {}
  11  function deleteError() {}
  12  function updateMediaForm() {}
  13  function uploadSuccess() {}
  14  function uploadComplete() {}
  15  function wpQueueError() {}
  16  function wpFileError() {}
  17  function fileQueueError() {}
  18  function fileDialogComplete() {}
  19  function uploadError() {}
  20  function cancelUpload() {}
  21  
  22  function switchUploader() {
  23      jQuery( '#' + swfu.customSettings.swfupload_element_id ).hide();
  24      jQuery( '#' + swfu.customSettings.degraded_element_id ).show();
  25      jQuery( '.upload-html-bypass' ).hide();
  26  }
  27  
  28  function swfuploadPreLoad() {
  29      switchUploader();
  30  }
  31  
  32  function swfuploadLoadFailed() {
  33      switchUploader();
  34  }
  35  
  36  jQuery(document).ready(function($){
  37      $( 'input[type="radio"]', '#media-items' ).on( 'click', function(){
  38          var tr = $(this).closest('tr');
  39  
  40          if ( $(tr).hasClass('align') )
  41              setUserSetting('align', $(this).val());
  42          else if ( $(tr).hasClass('image-size') )
  43              setUserSetting('imgsize', $(this).val());
  44      });
  45  
  46      $( 'button.button', '#media-items' ).on( 'click', function(){
  47          var c = this.className || '';
  48          c = c.match(/url([^ '"]+)/);
  49          if ( c && c[1] ) {
  50              setUserSetting('urlbutton', c[1]);
  51              $(this).siblings('.urlfield').val( $(this).attr('title') );
  52          }
  53      });
  54  });


Generated : Wed Dec 18 08:20:01 2024 Cross-referenced by PHPXref