FogBugz » CaseTemplatesJS
Clone URL:  
Pushed to 2 repositories · View In Graph Contained in tip

Further instructions

Changeset 68e819dda748

Parent d0c1a9a6c97e

by Profile picture of User 4Rich Armstrong <rich@fogcreek.com>

Changes to one file · Browse files at 68e819dda748 Showing diff from parent d0c1a9a6c97e Diff from another changeset...

Change 1 of 4 Show Entire File bookmarklets.js Stacked
 
2
3
4
5
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
8
9
 
10
11
12
 
14
15
16
17
 
18
19
20
 
473
474
475
 
 
476
477
478
 
616
617
618
 
619
 
2
3
4
 
 
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
27
28
29
30
 
32
33
34
 
35
36
37
38
 
491
492
493
494
495
496
497
498
 
636
637
638
639
640
@@ -2,11 +2,29 @@
 This is the code for a BugMonkey customization that'll allow you to build bookmarks that spawn off  new cases, either taking some values from the current case you're looking at, or specifying new values.   -In either case, it grabs the current selection from the current web page. So, if you find a typo in your web site, -you can just highlight and click the button. +In either case, it grabs the selection from the current web page (if there is one) and pulls over the URL as well. +So, if you find a typo in your web site, you can just highlight and click the button. + +Installation Instructions: + +1.) Install BugMonkey: http://www.fogcreek.com/fogbugz/Plugins/plugin.aspx?ixPlugin=16 +2.) Download this file. +3.) Take everything between the //START and //END tags in this file, and use it to replace the + line in the comment block at the end that reads: $.getScript('http://rich/bookmarklets/bookmarklets.js'); +4.) Copy the text between + + name: Bookmarklet Builder + ... + <the second to last line of the file> + +5.) Put it in a new BugMonkey customization and save it. +6.) Go to Customizations You Own and turn it on for yourself, then Edit Rules and add All Normal Users and All Administrators. + +Sorry, this will soon be a plug-in allowing you to save your own bookmarks and share them with others. Just need to +work out the kinks first.    Known Issues: - - If you highlight case text with two cases after a period, the escaping comes over a little weird. + - If you highlight case text with two cases after a period, the escaping comes over a little weird (e.g. "bar.? Foo").    Planned Enhancements:   - Bug Event template, allowing you to put arbitrary text into a multi-line TEXTAREA, which is then dropped in with the @@ -14,7 +32,7 @@
   */   - +//START  var same_as_current = '-- same as case being viewed --';    // this data structure houses everything we need to know about the bookmarklet @@ -473,6 +491,8 @@
 switchTemplateBookmarklet();  populateAreasAndMilestones(); // this puts all the global milestones in the dropdown  buildBookmarklet(); + +//END    /*   @@ -616,4 +636,5 @@
 #selector_div {  margin-top: 20px;  } +#  */