Replaces inline onclick handler for .status_timestamp.
Also moved reference to serendipity_editor.js before the closing body element. This way, jQuery's $(document).ready() equals $(window).load(), so we don't have to use that any longer.
This commit is contained in:
@@ -129,7 +129,7 @@
|
|||||||
|
|
||||||
<div class="entry_info clearfix">
|
<div class="entry_info clearfix">
|
||||||
<span class="status_timestamp">
|
<span class="status_timestamp">
|
||||||
{$entry.timestamp|@formatTime:"{$CONST.DATE_FORMAT_SHORT}"}{if $entry.timestamp <= ($entry.last_modified - 1800)} <a class="icon_link" href="#" title="{$CONST.LAST_UPDATED}: {$entry.last_modified|@formatTime:"{$CONST.DATE_FORMAT_SHORT}"}" onclick="alert(this.title)"><span class="icon-info-circle"></span><span class="visuallyhidden"> {$CONST.LAST_UPDATED}</span></a>{/if}
|
{$entry.timestamp|@formatTime:"{$CONST.DATE_FORMAT_SHORT}"}{if $entry.timestamp <= ($entry.last_modified - 1800)} <a class="icon_link" href="#" title="{$CONST.LAST_UPDATED}: {$entry.last_modified|@formatTime:"{$CONST.DATE_FORMAT_SHORT}"}"><span class="icon-info-circle"></span><span class="visuallyhidden"> {$CONST.LAST_UPDATED}</span></a>{/if}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="entry_meta">{$CONST.POSTED_BY} {$entry.author|escape}
|
<span class="entry_meta">{$CONST.POSTED_BY} {$entry.author|escape}
|
||||||
|
|||||||
@@ -10,10 +10,7 @@
|
|||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<link rel="stylesheet" href="{$admin_vars.css_file}">
|
<link rel="stylesheet" href="{$admin_vars.css_file}">
|
||||||
<script src="{serendipity_getFile file='admin/js/modernizr-2.6.2.min.js'}"></script>
|
<script src="{serendipity_getFile file='admin/js/modernizr-2.6.2.min.js'}"></script>
|
||||||
{if $admin_vars.admin_installed}
|
{if $admin_vars.admin_installed}{serendipity_hookPlugin hook="backend_header" hookAll="true"}{/if}
|
||||||
{serendipity_hookPlugin hook="backend_header" hookAll="true"}
|
|
||||||
{/if}
|
|
||||||
<script src="{serendipity_getFile file='admin/serendipity_editor.js'}"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body id="serendipity_admin_page">
|
<body id="serendipity_admin_page">
|
||||||
{if NOT $admin_vars.no_banner}
|
{if NOT $admin_vars.no_banner}
|
||||||
@@ -182,5 +179,6 @@
|
|||||||
<p>{$admin_vars.version_info}</p>
|
<p>{$admin_vars.version_info}</p>
|
||||||
</footer>
|
</footer>
|
||||||
{/if}
|
{/if}
|
||||||
|
<script src="{serendipity_getFile file='admin/serendipity_editor.js'}"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -666,18 +666,21 @@ function highlightComment(id, checkvalue) {
|
|||||||
footer: '#meta'
|
footer: '#meta'
|
||||||
});
|
});
|
||||||
|
|
||||||
// Wait until content including images is loaded
|
// Fire WYSIWYG editor(s)
|
||||||
$(window).load(function() {
|
spawn();
|
||||||
// Fire WYSIWYG editor(s)
|
|
||||||
spawn();
|
|
||||||
|
|
||||||
// Equal Heights
|
// Click events
|
||||||
var $eqHeights = $('body').has('.equal_heights');
|
$('.status_timestamp > a').click(function(e) {
|
||||||
|
alert($(this).attr('title'));
|
||||||
if($eqHeights.size() > 0) {
|
e.preventDefault();
|
||||||
$('.equal_heights').syncHeight({
|
|
||||||
updateOnResize: true
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Equal Heights
|
||||||
|
var $eqHeights = $('body').has('.equal_heights');
|
||||||
|
|
||||||
|
if($eqHeights.size() > 0) {
|
||||||
|
$('.equal_heights').syncHeight({
|
||||||
|
updateOnResize: true
|
||||||
|
});
|
||||||
|
}
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|||||||
Reference in New Issue
Block a user