revision diff link
This commit is contained in:
parent
6294a20c7b
commit
85ffb3a12e
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "gist",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"authors": [
|
||||
"Simon Vieille <simon@deblan.fr>"
|
||||
],
|
||||
|
|
|
@ -69,6 +69,12 @@ var editorEvents = function() {
|
|||
$('.show-diff').click(function() {
|
||||
$($(this).data('target')).toggle();
|
||||
});
|
||||
|
||||
if ((document.location.href).indexOf('#diff-') !== -1) {
|
||||
var anchor = '#' + (document.location.href).toString().split('#')[1];
|
||||
$('.show-diff[href="' + anchor + '"]').click();
|
||||
document.location.href = anchor;
|
||||
}
|
||||
}
|
||||
|
||||
var mainEditorEvents = function() {
|
||||
|
|
Loading…
Reference in a new issue