[WTF CVS] wtf/static general.css,1.3,1.4 tracking.js,1.1.1.1,1.2
Brought to you by:
gryphonshafer
|
From: Gryphon S. <gry...@us...> - 2006-10-27 22:34:55
|
Update of /cvsroot/wtf-tracker/wtf/static In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv2283/static Modified Files: general.css tracking.js Log Message: Changes to support the creation of 'login as' functionality; managers with this new authz can login as one of their employees Index: general.css =================================================================== RCS file: /cvsroot/wtf-tracker/wtf/static/general.css,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** general.css 25 Oct 2006 16:39:58 -0000 1.3 --- general.css 27 Oct 2006 22:34:51 -0000 1.4 *************** *** 60,63 **** --- 60,76 ---- } + span.login_as { + font-weight: normal; + font-size: 8pt; + } + + span.login_as a { + text-decoration: none; + } + + span.login_as a:hover { + text-decoration: underline; + } + /* Navigation Bar (and similar menues) */ Index: tracking.js =================================================================== RCS file: /cvsroot/wtf-tracker/wtf/static/tracking.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** tracking.js 18 Oct 2006 16:52:50 -0000 1.1.1.1 --- tracking.js 27 Oct 2006 22:34:51 -0000 1.2 *************** *** 364,367 **** --- 364,375 ---- } + function loginAs( employeeId, employeeName, url ) { + if ( confirm( + "Are you sure you want to login as " + employeeName + "?\n" + + "All permissions, access, data, and views will change\n" + + "to what this user sees." + ) ) document.location.href = url; + } + function verifyAdminCheck(thisCheck) { if ( thisCheck.checked ) { |