From 9cef42390812e148435e6b05e530338cdca083a9 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Sun, 19 Aug 2012 14:25:02 -0600 Subject: [PATCH] Remove default value in new page. --- lib/gollum/frontend/public/gollum/javascript/gollum.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/gollum/frontend/public/gollum/javascript/gollum.js b/lib/gollum/frontend/public/gollum/javascript/gollum.js index 29ba6d6d..6dae3d06 100755 --- a/lib/gollum/frontend/public/gollum/javascript/gollum.js +++ b/lib/gollum/frontend/public/gollum/javascript/gollum.js @@ -154,14 +154,6 @@ $(document).ready(function() { $('#minibutton-new-page').click(function(e) { e.preventDefault(); - var path = location.pathname; - // ensure there's more than one slash in pathname. - if (path.split('/').length > 2) { - path = path.substr(0, path.lastIndexOf('/') + 1); - } else { - path = ''; - } - $.GollumDialog.init({ title: 'Create New Page', fields: [ @@ -169,7 +161,7 @@ $(document).ready(function() { id: 'name', name: 'Page Name', type: 'text', - defaultValue: path || '' + defaultValue: '' } ], OK: function( res ) {