mirror of
https://github.com/typecho/typecho.git
synced 2025-03-20 09:59:41 +01:00
fix upload
This commit is contained in:
parent
5dad98b752
commit
5cd89d8bcc
@ -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="#">×</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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user