1
0
mirror of https://github.com/typecho/typecho.git synced 2025-03-20 09:59:41 +01:00

fix upload

This commit is contained in:
joyqi 2013-10-14 15:32:46 +08:00
parent 5dad98b752
commit 5cd89d8bcc
2 changed files with 3 additions and 1 deletions

@ -38,7 +38,7 @@ $(document).ready(function() {
.html('<input type="hidden" name="attachment[]" value="' + data.cid + '" />'
+ '<a class="file" target="_blank" href="<?php $options->adminUrl('media.php'); ?>?cid='
+ data.cid + '">' + data.title + '</a> ' + data.bits
+ ' <a class="insert" href="#">' + <?php _e('插入'); ?> + '</a>'
+ ' <a class="insert" href="#"><?php _e('插入'); ?></a>'
+ ' <a class="delete" href="#">&times;</a>')
.effect('highlight', '#AACB36', 1000);

@ -318,6 +318,7 @@ class Widget_Upload extends Widget_Abstract_Contents implements Widget_Interface
'url' => $this->attachment->url,
'permalink' => $this->permalink
)) . ');</script>';
return;
}
}
}
@ -377,6 +378,7 @@ class Widget_Upload extends Widget_Abstract_Contents implements Widget_Interface
'url' => $this->attachment->url,
'permalink' => $this->permalink
)) . ');</script>';
return;
}
}
}