Project

General

Profile

PluginScreenshotPaste » _screenshot.rhtml

Modify 1.1.1 to use relative_url_root so it also works in a suburi - Rob Lee, 2011-03-16 20:43

 
1
<p><label><%=l(:label_screenshot)%></label>
2
	<small><a href="#" onclick="Element.show('imageuploadapplet'); Element.show('uploaded_screenshot_fields'); document.imageuploadapplet.getImageFromClipboad(); return false;">
3
	<%=l(:label_drag_or_paste_from_clipboard)%></a></small><br />
4
		<applet archive="<%= Redmine::Utils.relative_url_root %>/plugin_assets/redmine_screenshot_paste/simageuploadapplet.jar"
5
					  code="imageuploadapplet.Main"
6
					  name="imageuploadapplet"
7
					  id="imageuploadapplet"
8
				  	hspace="0" vspace="0" width="100%" height="350" align="middle"
9
				  	style="display:none;">
10
		</applet>
11
		<br />
12
		<span id="uploaded_screenshot_fields" style="display:none;">
13
		<small><%=l(:label_name_description)%></small><br />
14
		<input type="text" name="attachments[screenshot][name]" value="screenshot" />
15
		<input type="text" name="attachments[screenshot][description]" size="60" />
16
		</span>
17
</p>
18
<input type="hidden" name="attachments[screenshot][content]" id="image" />
(12-12/15)