| 
      1
     | 
    
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
     | 
  
  
    | 
      2
     | 
    
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 
     | 
  
  
    | 
      3
     | 
    
      <head>
 
     | 
  
  
    | 
      4
     | 
    
      <meta http-equiv="content-type" content="text/html; charset=utf-8" />
 
     | 
  
  
    | 
      5
     | 
    
      <title>Redmine - context_menu.js.patch - Redmine</title>
 
     | 
  
  
    | 
      6
     | 
    
      <meta name="description" content="Redmine" />
 
     | 
  
  
    | 
      7
     | 
    
      <meta name="keywords" content="issue,bug,tracker,project,management" />
 
     | 
  
  
    | 
      8
     | 
    
      <link href="/themes/redmine/stylesheets/application.css?1268079058" media="all" rel="stylesheet" type="text/css" />
 
     | 
  
  
    | 
      9
     | 
    
      <script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js" type="text/javascript"></script>
 
     | 
  
  
    | 
      10
     | 
    
      <script src="http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2/effects.js" type="text/javascript"></script>
 
     | 
  
  
    | 
      11
     | 
    
      <script src="http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2/dragdrop.js" type="text/javascript"></script>
 
     | 
  
  
    | 
      12
     | 
    
      <script src="http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2/controls.js" type="text/javascript"></script>
 
     | 
  
  
    | 
      13
     | 
    
      <script src="/javascripts/application.js?1269784251" type="text/javascript"></script>
 
     | 
  
  
    | 
      14
     | 
    
      <link href="/stylesheets/jstoolbar.css?1222021454" media="screen" rel="stylesheet" type="text/css" />
 
     | 
  
  
    | 
      15
     | 
    
      <!--[if IE]>
 
     | 
  
  
    | 
      16
     | 
    
          <style type="text/css">
 
     | 
  
  
    | 
      17
     | 
    
            * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
     | 
  
  
    | 
      18
     | 
    
            body {behavior: url(/stylesheets/csshover.htc?1207248491);}
     | 
  
  
    | 
      19
     | 
    
          </style>
 
     | 
  
  
    | 
      20
     | 
    
      <![endif]-->
 
     | 
  
  
    | 
      21
     | 
    
      
 
     | 
  
  
    | 
      22
     | 
    
      <!-- page specific tags -->
 
     | 
  
  
    | 
      23
     | 
    
          <link href="/stylesheets/scm.css?1269784251" media="screen" rel="stylesheet" type="text/css" /></head>
 
     | 
  
  
    | 
      24
     | 
    
      <body>
 
     | 
  
  
    | 
      25
     | 
    
      <div id="wrapper">
 
     | 
  
  
    | 
      26
     | 
    
      <div id="wrapper2">
 
     | 
  
  
    | 
      27
     | 
    
      <div id="top-menu">
 
     | 
  
  
    | 
      28
     | 
    
          <div id="account">
 
     | 
  
  
    | 
      29
     | 
    
              <ul><li><a href="/login" class="login">Sign in</a></li>
 
     | 
  
  
    | 
      30
     | 
    
      <li><a href="/account/register" class="register">Register</a></li></ul>    </div>
 
     | 
  
  
    | 
      31
     | 
    
          
 
     | 
  
  
    | 
      32
     | 
    
          <ul><li><a href="/" class="home">Home</a></li>
 
     | 
  
  
    | 
      33
     | 
    
      <li><a href="/projects" class="projects">Projects</a></li>
 
     | 
  
  
    | 
      34
     | 
    
      <li><a href="http://www.redmine.org/guide" class="help">Help</a></li></ul></div>
 
     | 
  
  
    | 
      35
     | 
    
            
 
     | 
  
  
    | 
      36
     | 
    
      <div id="header">
 
     | 
  
  
    | 
      37
     | 
    
          <div id="quick-search">
 
     | 
  
  
    | 
      38
     | 
    
              <form action="/search/index/redmine" method="get">
 
     | 
  
  
    | 
      39
     | 
    
              
 
     | 
  
  
    | 
      40
     | 
    
              <a href="/search/index/redmine" accesskey="4">Search</a>:
 
     | 
  
  
    | 
      41
     | 
    
              <input accesskey="f" class="small" id="q" name="q" size="20" type="text" />
 
     | 
  
  
    | 
      42
     | 
    
              </form>
 
     | 
  
  
    | 
      43
     | 
    
              
 
     | 
  
  
    | 
      44
     | 
    
          </div>
 
     | 
  
  
    | 
      45
     | 
    
          
 
     | 
  
  
    | 
      46
     | 
    
          <h1>Redmine</h1>
 
     | 
  
  
    | 
      47
     | 
    
          
 
     | 
  
  
    | 
      48
     | 
    
          
 
     | 
  
  
    | 
      49
     | 
    
          <div id="main-menu">
 
     | 
  
  
    | 
      50
     | 
    
              <ul><li><a href="/projects/redmine" class="overview">Overview</a></li>
 
     | 
  
  
    | 
      51
     | 
    
      <li><a href="/wiki/redmine/Download" class="download">Download</a></li>
 
     | 
  
  
    | 
      52
     | 
    
      <li><a href="/projects/redmine/activity" class="activity">Activity</a></li>
 
     | 
  
  
    | 
      53
     | 
    
      <li><a href="/projects/redmine/roadmap" class="roadmap">Roadmap</a></li>
 
     | 
  
  
    | 
      54
     | 
    
      <li><a href="/projects/redmine/issues" class="issues">Issues</a></li>
 
     | 
  
  
    | 
      55
     | 
    
      <li><a href="/projects/redmine/news" class="news">News</a></li>
 
     | 
  
  
    | 
      56
     | 
    
      <li><a href="/projects/redmine/wiki" class="wiki">Wiki</a></li>
 
     | 
  
  
    | 
      57
     | 
    
      <li><a href="/projects/redmine/boards" class="boards">Forums</a></li>
 
     | 
  
  
    | 
      58
     | 
    
      <li><a href="/projects/redmine/repository" class="repository">Repository</a></li></ul>
 
     | 
  
  
    | 
      59
     | 
    
          </div>
 
     | 
  
  
    | 
      60
     | 
    
          
 
     | 
  
  
    | 
      61
     | 
    
      </div>
 
     | 
  
  
    | 
      62
     | 
    
      
 
     | 
  
  
    | 
      63
     | 
    
      <div class="" id="main">
 
     | 
  
  
    | 
      64
     | 
    
          <div id="sidebar">        
 
     | 
  
  
    | 
      65
     | 
    
              
 
     | 
  
  
    | 
      66
     | 
    
      
 
     | 
  
  
    | 
      67
     | 
    
      
 
     | 
  
  
    | 
      68
     | 
    
      <br />
 
     | 
  
  
    | 
      69
     | 
    
      <script type="text/javascript"><!--
 
     | 
  
  
    | 
      70
     | 
    
      google_ad_client = "pub-0447284344517370";
 
     | 
  
  
    | 
      71
     | 
    
      google_alternate_color = "FFFFFF";
 
     | 
  
  
    | 
      72
     | 
    
      google_ad_width = 160;
 
     | 
  
  
    | 
      73
     | 
    
      google_ad_height = 600;
 
     | 
  
  
    | 
      74
     | 
    
      google_ad_format = "160x600_as";
 
     | 
  
  
    | 
      75
     | 
    
      google_ad_type = "text_image";
 
     | 
  
  
    | 
      76
     | 
    
      google_ad_channel = "";
 
     | 
  
  
    | 
      77
     | 
    
      google_color_border = "EEEEEE";
 
     | 
  
  
    | 
      78
     | 
    
      google_color_bg = "FFFFFF";
 
     | 
  
  
    | 
      79
     | 
    
      google_color_link = "484848";
 
     | 
  
  
    | 
      80
     | 
    
      google_color_text = "484848";
 
     | 
  
  
    | 
      81
     | 
    
      google_color_url = "2A5685";
 
     | 
  
  
    | 
      82
     | 
    
      //-->
 
     | 
  
  
    | 
      83
     | 
    
      </script>
 
     | 
  
  
    | 
      84
     | 
    
      <script type="text/javascript"
 
     | 
  
  
    | 
      85
     | 
    
        src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
 
     | 
  
  
    | 
      86
     | 
    
      </script>
 
     | 
  
  
    | 
      87
     | 
    
      <br />
 
     | 
  
  
    | 
      88
     | 
    
      <br />
 
     | 
  
  
    | 
      89
     | 
    
      <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
 
     | 
  
  
    | 
      90
     | 
    
      <input type="hidden" name="cmd" value="_s-xclick">
 
     | 
  
  
    | 
      91
     | 
    
      <input type="hidden" name="hosted_button_id" value="438370">
 
     | 
  
  
    | 
      92
     | 
    
      <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="">
 
     | 
  
  
    | 
      93
     | 
    
      <img alt="" border="0" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
 
     | 
  
  
    | 
      94
     | 
    
      </form>
 
     | 
  
  
    | 
      95
     | 
    
      
 
     | 
  
  
    | 
      96
     | 
    
      
 
     | 
  
  
    | 
      97
     | 
    
              
 
     | 
  
  
    | 
      98
     | 
    
          </div>
 
     | 
  
  
    | 
      99
     | 
    
          
 
     | 
  
  
    | 
      100
     | 
    
          <div id="content">
 
     | 
  
  
    | 
      101
     | 
    
      				
 
     | 
  
  
    | 
      102
     | 
    
      
 
     | 
  
  
    | 
      103
     | 
    
              <h2>context_menu.js.patch</h2>
 
     | 
  
  
    | 
      104
     | 
    
      
 
     | 
  
  
    | 
      105
     | 
    
      <div class="attachments">
 
     | 
  
  
    | 
      106
     | 
    
      <p>
 
     | 
  
  
    | 
      107
     | 
    
         <span class="author">Alain Gandon, 2010-05-01 10:54</span></p>
 
     | 
  
  
    | 
      108
     | 
    
      <p><a href="/attachments/download/3656/context_menu.js.patch">Download</a>   <span class="size">(650 Bytes)</span></p>
 
     | 
  
  
    | 
      109
     | 
    
      
 
     | 
  
  
    | 
      110
     | 
    
      </div>
 
     | 
  
  
    | 
      111
     | 
    
       
 
     | 
  
  
    | 
      112
     | 
    
      <div class="autoscroll">
 
     | 
  
  
    | 
      113
     | 
    
      <table class="filecontent syntaxhl">
 
     | 
  
  
    | 
      114
     | 
    
      <thead>
 
     | 
  
  
    | 
      115
     | 
    
      <tr><th colspan="3" class="filename">context_menu.js	(working copy)
 
     | 
  
  
    | 
      116
     | 
    
      </th></tr>
 
     | 
  
  
    | 
      117
     | 
    
      </thead>
 
     | 
  
  
    | 
      118
     | 
    
      <tbody>
 
     | 
  
  
    | 
      119
     | 
    
      
 
     | 
  
  
    | 
      120
     | 
    
      <tr>
 
     | 
  
  
    | 
      121
     | 
    
        <th class="line-num">95</th>
 
     | 
  
  
    | 
      122
     | 
    
        <th class="line-num">95</th>
 
     | 
  
  
    | 
      123
     | 
    
          <td class="line-code ">
 
     | 
  
  
    | 
      124
     | 
    
          <pre>  </pre>
 
     | 
  
  
    | 
      125
     | 
    
        </td>
 
     | 
  
  
    | 
      126
     | 
    
        </tr>
 
     | 
  
  
    | 
      127
     | 
    
      
 
     | 
  
  
    | 
      128
     | 
    
      <tr>
 
     | 
  
  
    | 
      129
     | 
    
        <th class="line-num">96</th>
 
     | 
  
  
    | 
      130
     | 
    
        <th class="line-num">96</th>
 
     | 
  
  
    | 
      131
     | 
    
          <td class="line-code ">
 
     | 
  
  
    | 
      132
     | 
    
          <pre>  createMenu: function() {</pre>
     | 
  
  
    | 
      133
     | 
    
        </td>
 
     | 
  
  
    | 
      134
     | 
    
        </tr>
 
     | 
  
  
    | 
      135
     | 
    
      
 
     | 
  
  
    | 
      136
     | 
    
      <tr>
 
     | 
  
  
    | 
      137
     | 
    
        <th class="line-num">97</th>
 
     | 
  
  
    | 
      138
     | 
    
        <th class="line-num">97</th>
 
     | 
  
  
    | 
      139
     | 
    
          <td class="line-code ">
 
     | 
  
  
    | 
      140
     | 
    
          <pre>    if (!$('context-menu')) {</pre>
     | 
  
  
    | 
      141
     | 
    
        </td>
 
     | 
  
  
    | 
      142
     | 
    
        </tr>
 
     | 
  
  
    | 
      143
     | 
    
      
 
     | 
  
  
    | 
      144
     | 
    
      <tr>
 
     | 
  
  
    | 
      145
     | 
    
        <th class="line-num">98</th>
 
     | 
  
  
    | 
      146
     | 
    
        <th class="line-num"></th>
 
     | 
  
  
    | 
      147
     | 
    
          <td class="line-code diff_out">
 
     | 
  
  
    | 
      148
     | 
    
          <pre>      var menu = document.createElement("div");</pre>
 
     | 
  
  
    | 
      149
     | 
    
        </td>
 
     | 
  
  
    | 
      150
     | 
    
        </tr>
 
     | 
  
  
    | 
      151
     | 
    
      
 
     | 
  
  
    | 
      152
     | 
    
      <tr>
 
     | 
  
  
    | 
      153
     | 
    
        <th class="line-num">99</th>
 
     | 
  
  
    | 
      154
     | 
    
        <th class="line-num"></th>
 
     | 
  
  
    | 
      155
     | 
    
          <td class="line-code diff_out">
 
     | 
  
  
    | 
      156
     | 
    
          <pre>      menu.setAttribute("id", "context-menu");</pre>
 
     | 
  
  
    | 
      157
     | 
    
        </td>
 
     | 
  
  
    | 
      158
     | 
    
        </tr>
 
     | 
  
  
    | 
      159
     | 
    
      
 
     | 
  
  
    | 
      160
     | 
    
      <tr>
 
     | 
  
  
    | 
      161
     | 
    
        <th class="line-num">100</th>
 
     | 
  
  
    | 
      162
     | 
    
        <th class="line-num"></th>
 
     | 
  
  
    | 
      163
     | 
    
          <td class="line-code diff_out">
 
     | 
  
  
    | 
      164
     | 
    
          <pre>      menu.setAttribute("style", "display:none;");</pre>
 
     | 
  
  
    | 
      165
     | 
    
        </td>
 
     | 
  
  
    | 
      166
     | 
    
        </tr>
 
     | 
  
  
    | 
      167
     | 
    
      
 
     | 
  
  
    | 
      168
     | 
    
      <tr>
 
     | 
  
  
    | 
      169
     | 
    
        <th class="line-num">101</th>
 
     | 
  
  
    | 
      170
     | 
    
        <th class="line-num"></th>
 
     | 
  
  
    | 
      171
     | 
    
          <td class="line-code diff_out">
 
     | 
  
  
    | 
      172
     | 
    
          <pre>      document.getElementById("content").appendChild(menu);</pre>
 
     | 
  
  
    | 
      173
     | 
    
        </td>
 
     | 
  
  
    | 
      174
     | 
    
        </tr>
 
     | 
  
  
    | 
      175
     | 
    
      
 
     | 
  
  
    | 
      176
     | 
    
      <tr>
 
     | 
  
  
    | 
      177
     | 
    
        <th class="line-num"></th>
 
     | 
  
  
    | 
      178
     | 
    
        <th class="line-num">98</th>
 
     | 
  
  
    | 
      179
     | 
    
          <td class="line-code diff_in">
 
     | 
  
  
    | 
      180
     | 
    
          <pre>      var menu = new Element('div');</pre>
     | 
  
  
    | 
      181
     | 
    
        </td>
 
     | 
  
  
    | 
      182
     | 
    
        </tr>
 
     | 
  
  
    | 
      183
     | 
    
      
 
     | 
  
  
    | 
      184
     | 
    
      <tr>
 
     | 
  
  
    | 
      185
     | 
    
        <th class="line-num"></th>
 
     | 
  
  
    | 
      186
     | 
    
        <th class="line-num">99</th>
 
     | 
  
  
    | 
      187
     | 
    
          <td class="line-code diff_in">
 
     | 
  
  
    | 
      188
     | 
    
          <pre>      menu.writeAttribute('id', 'context-menu');</pre>
     | 
  
  
    | 
      189
     | 
    
        </td>
 
     | 
  
  
    | 
      190
     | 
    
        </tr>
 
     | 
  
  
    | 
      191
     | 
    
      
 
     | 
  
  
    | 
      192
     | 
    
      <tr>
 
     | 
  
  
    | 
      193
     | 
    
        <th class="line-num"></th>
 
     | 
  
  
    | 
      194
     | 
    
        <th class="line-num">100</th>
 
     | 
  
  
    | 
      195
     | 
    
          <td class="line-code diff_in">
 
     | 
  
  
    | 
      196
     | 
    
          <pre>      menu.setStyle({</pre>
     | 
  
  
    | 
      197
     | 
    
        </td>
 
     | 
  
  
    | 
      198
     | 
    
        </tr>
 
     | 
  
  
    | 
      199
     | 
    
      
 
     | 
  
  
    | 
      200
     | 
    
      <tr>
 
     | 
  
  
    | 
      201
     | 
    
        <th class="line-num"></th>
 
     | 
  
  
    | 
      202
     | 
    
        <th class="line-num">101</th>
 
     | 
  
  
    | 
      203
     | 
    
          <td class="line-code diff_in">
 
     | 
  
  
    | 
      204
     | 
    
          <pre>		'display':'none'</pre>
 
     | 
  
  
    | 
      205
     | 
    
        </td>
 
     | 
  
  
    | 
      206
     | 
    
        </tr>
 
     | 
  
  
    | 
      207
     | 
    
      
 
     | 
  
  
    | 
      208
     | 
    
      <tr>
 
     | 
  
  
    | 
      209
     | 
    
        <th class="line-num"></th>
 
     | 
  
  
    | 
      210
     | 
    
        <th class="line-num">102</th>
 
     | 
  
  
    | 
      211
     | 
    
          <td class="line-code diff_in">
 
     | 
  
  
    | 
      212
     | 
    
          <pre>	  });</pre>
 
     | 
  
  
    | 
      213
     | 
    
        </td>
 
     | 
  
  
    | 
      214
     | 
    
        </tr>
 
     | 
  
  
    | 
      215
     | 
    
      
 
     | 
  
  
    | 
      216
     | 
    
      <tr>
 
     | 
  
  
    | 
      217
     | 
    
        <th class="line-num"></th>
 
     | 
  
  
    | 
      218
     | 
    
        <th class="line-num">103</th>
 
     | 
  
  
    | 
      219
     | 
    
          <td class="line-code diff_in">
 
     | 
  
  
    | 
      220
     | 
    
          <pre>      $('content').insert(menu);</pre>
     | 
  
  
    | 
      221
     | 
    
        </td>
 
     | 
  
  
    | 
      222
     | 
    
        </tr>
 
     | 
  
  
    | 
      223
     | 
    
      
 
     | 
  
  
    | 
      224
     | 
    
      <tr>
 
     | 
  
  
    | 
      225
     | 
    
        <th class="line-num">102</th>
 
     | 
  
  
    | 
      226
     | 
    
        <th class="line-num">104</th>
 
     | 
  
  
    | 
      227
     | 
    
          <td class="line-code ">
 
     | 
  
  
    | 
      228
     | 
    
          <pre>    }</pre>
 
     | 
  
  
    | 
      229
     | 
    
        </td>
 
     | 
  
  
    | 
      230
     | 
    
        </tr>
 
     | 
  
  
    | 
      231
     | 
    
      
 
     | 
  
  
    | 
      232
     | 
    
      <tr>
 
     | 
  
  
    | 
      233
     | 
    
        <th class="line-num">103</th>
 
     | 
  
  
    | 
      234
     | 
    
        <th class="line-num">105</th>
 
     | 
  
  
    | 
      235
     | 
    
          <td class="line-code ">
 
     | 
  
  
    | 
      236
     | 
    
          <pre>  },</pre>
 
     | 
  
  
    | 
      237
     | 
    
        </td>
 
     | 
  
  
    | 
      238
     | 
    
        </tr>
 
     | 
  
  
    | 
      239
     | 
    
      
 
     | 
  
  
    | 
      240
     | 
    
      <tr>
 
     | 
  
  
    | 
      241
     | 
    
        <th class="line-num">104</th>
 
     | 
  
  
    | 
      242
     | 
    
        <th class="line-num">106</th>
 
     | 
  
  
    | 
      243
     | 
    
          <td class="line-code ">
 
     | 
  
  
    | 
      244
     | 
    
          <pre>  </pre>
 
     | 
  
  
    | 
      245
     | 
    
        </td>
 
     | 
  
  
    | 
      246
     | 
    
        </tr>
 
     | 
  
  
    | 
      247
     | 
    
      </tbody>
 
     | 
  
  
    | 
      248
     | 
    
      </table>
 
     | 
  
  
    | 
      249
     | 
    
      
 
     | 
  
  
    | 
      250
     | 
    
      </div>
 
     | 
  
  
    | 
      251
     | 
    
      
 
     | 
  
  
    | 
      252
     | 
    
      
 
     | 
  
  
    | 
      253
     | 
    
      
 
     | 
  
  
    | 
      254
     | 
    
      
 
     | 
  
  
    | 
      255
     | 
    
      
 
     | 
  
  
    | 
      256
     | 
    
      
 
     | 
  
  
    | 
      257
     | 
    
      
 
     | 
  
  
    | 
      258
     | 
    
              
 
     | 
  
  
    | 
      259
     | 
    
      				<div style="clear:both;"></div>
 
     | 
  
  
    | 
      260
     | 
    
          </div>
 
     | 
  
  
    | 
      261
     | 
    
      </div>
 
     | 
  
  
    | 
      262
     | 
    
      
 
     | 
  
  
    | 
      263
     | 
    
      <div id="ajax-indicator" style="display:none;"><span>Loading...</span></div>
 
     | 
  
  
    | 
      264
     | 
    
      	
 
     | 
  
  
    | 
      265
     | 
    
      <div id="footer">
 
     | 
  
  
    | 
      266
     | 
    
        <div class="bgl"><div class="bgr">
 
     | 
  
  
    | 
      267
     | 
    
          Powered by <a href="http://www.redmine.org/">Redmine</a> © 2006-2010 Jean-Philippe Lang
 
     | 
  
  
    | 
      268
     | 
    
        </div></div>
 
     | 
  
  
    | 
      269
     | 
    
      </div>
 
     | 
  
  
    | 
      270
     | 
    
      </div>
 
     | 
  
  
    | 
      271
     | 
    
      </div>
 
     | 
  
  
    | 
      272
     | 
    
      
 
     | 
  
  
    | 
      273
     | 
    
      </body>
 
     | 
  
  
    | 
      274
     | 
    
      </html>
 
     |