Changeset 518854
- Timestamp:
- 03/14/2012 10:36:13 AM (14 years ago)
- File:
-
- 1 edited
-
hacklog-remote-image-autosave/trunk/handle.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hacklog-remote-image-autosave/trunk/handle.php
r517176 r518854 19 19 ?> 20 20 <style type="text/css" media="screen"> 21 .hack-ok {22 background-image: url(<?php echo WP_PLUGIN_URL . '/hacklog-remote-image-autosave/images/ok_24.png';23 ?>);}24 .hack-downloading {25 background-image: url(<?php echo WP_PLUGIN_URL . '/hacklog-remote-image-autosave/images/downloading.gif';26 ?>);}27 21 .error { 28 22 color:#F00; 29 23 } 30 24 </style> 25 26 <script type="text/javascript"> 27 //Preload images 28 (new Image()).src = "<?php echo WP_PLUGIN_URL . '/hacklog-remote-image-autosave/images/ok_24.png'; 29 ?>"; 30 (new Image()).src = "<?php echo WP_PLUGIN_URL . '/hacklog-remote-image-autosave/images/downloading.gif'; 31 ?>"; 32 </script> 33 31 34 <script type="text/javascript"> 32 35 var hacklog_ria_debug = false; … … 211 214 $('#image-list').html(html); 212 215 $('#img-cnt').val( data.images.length ); 216 var post_id = $('#post_id').val(); 213 217 for(var i=0;i<data.images.length;++i) 214 218 { 215 219 var id = data.images[i].id; 216 var post_id = $('#post_id').val();217 220 down_single_img(id,post_id, data.images[i].url); 218 219 221 } 220 222 setTimeout("check_down();",check_down_interval); … … 241 243 { 242 244 $('#hacklog-ria-form').show(); 243 //alert(mce.getContent({format : 'text'}));244 //mce.setContent(mce.getContent({format : 'text'})+'<a href="#aaa">aaa</a>',{format : 'text'});245 245 get_images(); 246 246 } 247 247 }); 248 //alert(parent.location.href);249 //parent.document.getElementById('content').value = parent.document.getElementById('content').value + '<a href="#test">test</a>';250 //alert( parent.document.getElementById('content').value );251 248 </script> 252 <div style="visibility:hidden;"> 253 <span class="hack-downloading"></span> 254 <span class="hack-ok"></span> 255 </div> 249 256 250 <h3 id="all-done" style="display:none;color:#57d;margin:15px auto 0 40px;">All remote images has been downloaded.Have fun -_-.</h3> 257 251 <form id="hacklog-ria-form" action="" method="post" accept-charset="utf-8" style="display:none;margin: 0 auto 8px; padding: 10px;">
Note: See TracChangeset
for help on using the changeset viewer.