Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25415de
commit ed660c1
Showing
4 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
Placeholders:Default_TimeSheet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,19 @@ | |||
tau.mashups.addDependency('libs/jquery/jquery').addMashup( | |||
function (config) { | |||
function extraTimeSheetInfo() {} | |||
extraTimeSheetInfo.prototype = { | |||
render: function () { | |||
$('div#ctl00_mainArea_pnlUpd > table:first').find('tr.dataRow').each(function() { | |||
/* gather IDs */ | |||
var id = $(this).find('td:eq(2) > a:first').attr('href').match(/View\.aspx\?[A-Za-z]+ID=(\d+)/)[1]; | |||
$(this).find('td:eq(2)').prepend('<div style="font-size: smaller; float: left; margin-right: 6px;">#'+id+'</div>'); | |||
}); | |||
}, | |||
} | |||
/* make it happen! */ | |||
$(document).ready(function() { | |||
new extraTimeSheetInfo().render(); | |||
}); | |||
} | |||
) | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,41 @@ | |||
Extra Time Sheet Info | |||
===================== | |||
|
|||
The Extra Time Sheet Info Mashup is a simple Mashup for [TargetProcess](http://www.targetprocess.com) | |||
that adds more information to the listings in your time sheet. Currently, the Mashup only adds the entity | |||
ID to the row, but can be easily expanded to display more information, such as custom fields. | |||
|
|||
[Download the Mashup's ZIP Archive](https://github.com/downloads/TargetProcess/MashupsLibrary/Extra%20Time%20Sheet%20Info.zip) | |||
|
|||
|
|||
How To Install and Use the Mashup | |||
--------------------------------- | |||
|
|||
1. Download the Mashup file either by cloning this repository or | |||
downloading a ZIP. | |||
2. Extract/copy the "Extra Time Sheet Info" folder to your | |||
_<TargetProcess Install Path>/JavaScript/Mashups/_ folder. | |||
3. Sit back and enjoy! | |||
|
|||
|
|||
Installing the Mashup with TargetProcess OnDemand | |||
------------------------------------------------- | |||
|
|||
1. In your OnDemand site, navigate to ```Settings > (System Settings) > Mashups``` | |||
2. Click "Add New Mashup" | |||
3. In the "Name" field, enter a name unique to this Mashup - for example "Link Scrubber" | |||
4. In the "Placeholders" field, enter ```Default_TimeSheet``` | |||
5. Copy and paste the contents of the [Extra Time Sheet Info.js](https://github.com/TargetProcess/MashupsLibrary/raw/master/Extra%20Time%20Sheet%20Info/Extra%20Time%20Sheet%20Info.js) file in the "Code" box. | |||
6. Click Save | |||
|
|||
|
|||
Troubleshooting | |||
--------------- | |||
|
|||
**I don't have a _JavaScript/Mashups/_ folder in my TP install path!** | |||
|
|||
1. Make sure that you are running TargetProcess version 2.22 or newer. | |||
2. By default, this folder can be found at _C:\inetpub\wwwroot\TargetProcess2\wwwroot\JavaScript\Mashups_ | |||
|
|||
|
|||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters