From 25a96fa649aebebe495f7c7c89eeb4bff0a12c37 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Fri, 25 Nov 2011 12:40:18 +0100 Subject: Code cleanups. --- src/mulk/benki/util.clj | 1 - static/js/wiki.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mulk/benki/util.clj b/src/mulk/benki/util.clj index fd2e353..bd7e537 100644 --- a/src/mulk/benki/util.clj +++ b/src/mulk/benki/util.clj @@ -51,7 +51,6 @@ [[:wiki title & xs]] (fresolve "/wiki/~a~@[~a~]" title (first xs)))) (defn call-with-auth [thunk] - (println (request/ring-request)) (if (session/get :user) (thunk) (do (session/flash-put! (:uri (request/ring-request))) diff --git a/static/js/wiki.js b/static/js/wiki.js index f4d32fb..5deab10 100644 --- a/static/js/wiki.js +++ b/static/js/wiki.js @@ -76,8 +76,9 @@ jQuery(function ($) { Aloha.ready(function() { var $$ = Aloha.jQuery; + var editable; $$('#wiki-page-content').aloha(); - var editable = Aloha.editables[0]; + editable = Aloha.editables[0]; editable.disable(); $('#wiki-page-content').on('blur', function() { mulk.savePage(); -- cgit v1.2.3