Changeset 930166
- Timestamp:
- 06/11/2014 08:52:56 AM (12 years ago)
- Location:
- somatic-framework/trunk
- Files:
-
- 4 edited
-
inc/somaUploadField.php (modified) (2 diffs)
-
js/soma-plupload.js (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
somaticFramework.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
somatic-framework/trunk/inc/somaUploadField.php
r768786 r930166 63 63 'max_file_count' => $this->max, 64 64 'multiple_queues' => true, 65 'max_file_size' => wp_max_upload_size() . 'b',66 65 'unique_names' => true, 67 66 'url' => admin_url('admin-ajax.php'), … … 74 73 'action' => 'plupload_action', // the ajax action name 75 74 '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 ), 77 79 ); 78 80 if (isset($this->field['width']) && isset($this->field['height'])) { -
somatic-framework/trunk/js/soma-plupload.js
r766113 r930166 68 68 69 69 $('#' + 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)); 71 71 }); 72 72 … … 88 88 $('#' + file.id).fadeOut(); 89 89 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) 92 91 // 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; 94 93 95 94 // create new hidden inputs and append to this form, to store wp_handle_upload data … … 238 237 // SORTABLE REENABLE LATER 239 238 // if (images.length > 1) { 240 // thumbsContainer.sortable({239 // thumbsContainer.sortable({ 241 240 // update: function(event, ui) { 242 // var kimages = [];243 // thumbsContainer.find("img").each(function() {241 // var kimages = []; 242 // thumbsContainer.find("img").each(function() { 244 243 // kimages[kimages.length] = $(this).attr("src"); 245 244 // $("#" + fieldID).val(kimages.join()); -
somatic-framework/trunk/readme.txt
r875743 r930166 3 3 Tags: CMS, custom post type, metabox, custom taxonomy 4 4 Donate link: http://somaticstudios.com/code 5 Requires at least: 3. 36 Tested up to: 3. 57 Stable tag: 1.8. 95 Requires at least: 3.9 6 Tested up to: 3.9 7 Stable tag: 1.8.10 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 = 1.8.10 = 36 36 * 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 37 38 38 39 = 1.8.9 = -
somatic-framework/trunk/somaticFramework.php
r865422 r930166 4 4 Plugin URI: http://wordpress.org/extend/plugins/somatic-framework/ 5 5 Description: Adds useful classes for getting the most out of Wordpress' advanced CMS features 6 Version: 1.8. 96 Version: 1.8.10 7 7 Author: Israel Curtis 8 8 Author URI: mailto:israel@somaticstudios.com
Note: See TracChangeset
for help on using the changeset viewer.