Skip to content

Commit 20ef3f4

Browse files
committed
Open jekylledit interface after email confirmation
1 parent 713c673 commit 20ef3f4

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

javascript/src/jekylledit.js

+13-3
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,22 @@ klokantech.jekylledit.JekyllEdit.prototype.setAdminBtn = function(btn) {
4444
var repo = btn.getAttribute('data-jekylledit-repo');
4545
var path = btn.getAttribute('data-jekylledit-path');
4646
var lang = btn.getAttribute('data-jekylledit-lang');
47-
goog.events.listen(btn, goog.events.EventType.CLICK, function(e) {
48-
klokantech.jekylledit.lang.setLanguage(lang);
47+
klokantech.jekylledit.lang.setLanguage(lang);
48+
49+
var start = goog.bind(function() {
4950
klokantech.jekylledit.utils.installStyle(
5051
klokantech.jekylledit.BASE_URL + 'static/styles/jekylledit.css');
5152
this.initPopup(repo, path);
52-
}, false, this);
53+
}, this);
54+
55+
goog.events.listen(btn, goog.events.EventType.CLICK, function(e) {
56+
start();
57+
e.preventDefault();
58+
});
59+
60+
if (location.hash == '#sign-in') {
61+
start();
62+
}
5363
};
5464

5565

0 commit comments

Comments
 (0)