From e048131522d16d8e435dcaf6ce6d92eac3718b30 Mon Sep 17 00:00:00 2001 From: Naama Menda Date: Fri, 26 Mar 2010 19:28:23 +0000 Subject: [PATCH] 'new' button can be highlited always. AjaxFormPage and the server side script take care of redirecting to the login page if needed git-svn-id: svn+ssh://svn.sgn.cornell.edu/cxgn/cxgn-jslib/trunk@17820 b4ddb4e3-33f1-0310-aa89-e703427ae9b8 --- CXGN/Page/Form/JSFormPage.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/CXGN/Page/Form/JSFormPage.js b/CXGN/Page/Form/JSFormPage.js index cf87433..9bc5b5b 100644 --- a/CXGN/Page/Form/JSFormPage.js +++ b/CXGN/Page/Form/JSFormPage.js @@ -159,14 +159,10 @@ CXGN.Page.Form.JSFormPage.prototype = { printNewButton: function() { //new link var action = this.getAction(); - var newLink = ' [New] ' ; - if ((this.getUserType() == "curator") || this.getIsOwner() ==1 ) { - //newLink = '[New]'; - MochiKit.Logging.log('printing new button...'); - newLink = '[New]'; + + //var newLink = ' [New] ' ; + var newLink = '[New]'; - //window.location = this.getPageName() + '?action=new' ; - } if (action == "edit" || action == "delete") { newLink = ' [New] '; } -- 2.11.4.GIT