Skip to content

Commit

Permalink
fixed edit url appearing in the view url link
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Apr 6, 2011
1 parent a3568cb commit c727618
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
2.7.3
2.7.4
1 change: 1 addition & 0 deletions index.php
Expand Up @@ -106,6 +106,7 @@
<?php endif ?>
<script src="http://forbind.net/js/?apikey=2796bc83070164231a3ab8c90227dbca"></script>
<script src="/js/<?=VERSION?>/jsbin.js"></script>
<script>jsbin.version = "<?=VERSION?>";</script>
<?php if (!OFFLINE) : ?>
<script>
var _gaq = _gaq || [];
Expand Down
2 changes: 1 addition & 1 deletion js/chrome/save.js
Expand Up @@ -28,7 +28,7 @@ function saveCode(method, ajax, ajaxCallback) {
if (window.history && window.history.pushState) {
window.history.pushState(null, data.edit, data.edit);

$('#jsbinurl').attr('href', data.edit).text(data.edit);
$('#jsbinurl').attr('href', data.edit).text(data.url);
} else {
window.location = data.edit;
}
Expand Down

0 comments on commit c727618

Please sign in to comment.