Browse Source

[spark] Open notebook instead of editor when notebook parameter is present

Johan Ahlen 10 years ago
parent
commit
e209461807

+ 1 - 1
apps/spark/src/spark/templates/editor.mako

@@ -26,7 +26,7 @@ ${ commonheader(_('Editor'), app_name, user, "68px") | n,unicode }
 <script type="text/javascript">
   if (window.location.hash != "") {
     if (window.location.hash.indexOf("notebook") > -1) {
-      location.href = "/spark/editor?" + window.location.hash.substr(1).replace(/(<([^>]+)>)/ig, "");
+      location.href = "/spark/notebook?" + window.location.hash.substr(1).replace(/(<([^>]+)>)/ig, "");
     }
   }
 </script>

+ 1 - 1
apps/spark/src/spark/templates/notebook.mako

@@ -26,7 +26,7 @@ ${ commonheader(_('Notebook'), app_name, user, "68px") | n,unicode }
 <script type="text/javascript">
   if (window.location.hash != "") {
     if (window.location.hash.indexOf("notebook") > -1) {
-      location.href = "/spark/editor?" + window.location.hash.substr(1).replace(/(<([^>]+)>)/ig, "");
+      location.href = "/spark/notebook?" + window.location.hash.substr(1).replace(/(<([^>]+)>)/ig, "");
     }
   }
 </script>