Plugin Directory

Changeset 930166


Ignore:
Timestamp:
06/11/2014 08:52:56 AM (12 years ago)
Author:
somatic
Message:

new save-back button
fixed plUpload failure for post wp3.9

Location:
somatic-framework/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • somatic-framework/trunk/inc/somaUploadField.php

    r768786 r930166  
    6363            'max_file_count' => $this->max,
    6464            'multiple_queues' => true,
    65             'max_file_size' => wp_max_upload_size() . 'b',
    6665            'unique_names' => true,
    6766            'url' => admin_url('admin-ajax.php'),
     
    7473                'action' => 'plupload_action',                                          // the ajax action name
    7574                'fieldID' => $this->field['id'],                                        // gets passed to ajax callback in $_POST
    76             )
     75            ),
     76            'filters' => array(
     77                'max_file_size' => wp_max_upload_size() . 'b',
     78            ),
    7779        );
    7880        if (isset($this->field['width']) && isset($this->field['height'])) {
  • somatic-framework/trunk/js/soma-plupload.js

    r766113 r930166  
    6868
    6969                $('#' + file.id + " .fileprogress").width(file.percent + "%");
    70                 $('#' + file.id + " span").html(plupload.formatSize(parseInt(file.size * file.percent / 100)));
     70                $('#' + file.id + " span").html(plupload.formatSize(parseInt(file.size * file.percent / 100), 10));
    7171            });
    7272
     
    8888                $('#' + file.id).fadeOut();
    8989
    90 
    91                 // grab the input id from the settings
     90                // grab the input element from the settings (stored as actual DOM element now, not just ID string)
    9291                // retrieve the form element that this input is embedded in
    93                 var thisform = document.getElementById(uploader.settings.browse_button).form;
     92                var thisform = uploader.settings.browse_button[0].form;
    9493
    9594                // create new hidden inputs and append to this form, to store wp_handle_upload data
     
    238237    // SORTABLE REENABLE LATER
    239238    // if (images.length > 1) {
    240     //  thumbsContainer.sortable({
     239    //  thumbsContainer.sortable({
    241240    //      update: function(event, ui) {
    242     //          var kimages = [];
    243     //          thumbsContainer.find("img").each(function() {
     241    //          var kimages = [];
     242    //          thumbsContainer.find("img").each(function() {
    244243    //              kimages[kimages.length] = $(this).attr("src");
    245244    //              $("#" + fieldID).val(kimages.join());
  • somatic-framework/trunk/readme.txt

    r875743 r930166  
    33Tags: CMS, custom post type, metabox, custom taxonomy
    44Donate link: http://somaticstudios.com/code
    5 Requires at least: 3.3
    6 Tested up to: 3.5
    7 Stable tag: 1.8.9
     5Requires at least: 3.9
     6Tested up to: 3.9
     7Stable tag: 1.8.10
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535= 1.8.10 =
    3636* NEW: metabox button "save-back" outputs a save button which immediately redirects back to referring page after saving
     37* FIX: upload boxes work again with the new plUpload 2.1 that is bundled with wordpress 3.9
    3738
    3839= 1.8.9 =
  • somatic-framework/trunk/somaticFramework.php

    r865422 r930166  
    44Plugin URI: http://wordpress.org/extend/plugins/somatic-framework/
    55Description: Adds useful classes for getting the most out of Wordpress' advanced CMS features
    6 Version: 1.8.9
     6Version: 1.8.10
    77Author: Israel Curtis
    88Author URI: mailto:israel@somaticstudios.com
Note: See TracChangeset for help on using the changeset viewer.