namespace serendipity_editor.js
This commit is contained in:
parent
edaf7e9d6f
commit
ce9ac484d9
@ -121,7 +121,7 @@ switch ($serendipity['GET']['step']) {
|
||||
serendipity_plugin_api::hook_event('media_getproperties_cached', $media['file']['props']['base_metadata'], $media['file']['realfile']);
|
||||
|
||||
if ($file['is_image']) {
|
||||
$file['finishJSFunction'] = $file['origfinishJSFunction'] = 'serendipity_imageSelector_done(\'' . htmlspecialchars($serendipity['GET']['textarea']) . '\')';
|
||||
$file['finishJSFunction'] = $file['origfinishJSFunction'] = 'serendipity.serendipity_imageSelector_done(\'' . htmlspecialchars($serendipity['GET']['textarea']) . '\')';
|
||||
|
||||
if (!empty($serendipity['GET']['filename_only']) && $serendipity['GET']['filename_only'] !== 'true') {
|
||||
$file['fast_select'] = true;
|
||||
|
@ -236,7 +236,7 @@ if (parent.frames && parent.frames['tree']) {
|
||||
{serendipity_hookPlugin hookAll=true hook='frontend_image_selector_more' eventData=$media.file}
|
||||
<div class="form_buttons">
|
||||
<input class="go_back" type="button" value="{$CONST.BACK}">
|
||||
<input type="button" value="{$CONST.DONE}" onclick="rememberMediaOptions(); {$media.file.origfinishJSFunction}">
|
||||
<input type="button" value="{$CONST.DONE}" onclick="serendipity.rememberMediaOptions(); {$media.file.origfinishJSFunction}">
|
||||
{serendipity_hookPlugin hookAll=true hook='frontend_image_selector_submit' eventData=$media.file}
|
||||
</div>
|
||||
{/if}{* else fast_select end *}
|
||||
@ -320,7 +320,7 @@ if (parent.frames && parent.frames['tree']) {
|
||||
tree.draw();
|
||||
}
|
||||
|
||||
addLoadEvent(treeInit);
|
||||
serendipity.addLoadEvent(treeInit);
|
||||
</script>
|
||||
{/if}
|
||||
</body>
|
||||
|
@ -134,11 +134,11 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
{foreach $media.sortParams AS $sortParam}
|
||||
SetCookie("sortorder_{$sortParam}","{$get_sortorder_{$sortParam}}" )
|
||||
serendipity.SetCookie("sortorder_{$sortParam}","{$get_sortorder_{$sortParam}}" )
|
||||
{/foreach}
|
||||
|
||||
{foreach $media.filterParams AS $filterParam}
|
||||
SetCookie("{$filterParam}", "{$get_{$filterParam}}" )
|
||||
serendipity.SetCookie("{$filterParam}", "{$get_{$filterParam}}" )
|
||||
{/foreach}
|
||||
});
|
||||
</script>
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user