Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 251450 Details for
Bug 392359
apply patch dialog should put focus in URL field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
temp fix for tab to field; systematic issue apparent
patch_applypatchdialog.txt (text/plain), 2.18 KB, created by
Marynia Kolak
on 2015-03-11 00:44:06 EDT
(
hide
)
Description:
temp fix for tab to field; systematic issue apparent
Filename:
MIME Type:
Creator:
Marynia Kolak
Created:
2015-03-11 00:44:06 EDT
Size:
2.18 KB
patch
obsolete
>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf400 >{\fonttbl\f0\fmodern\fcharset0 Courier;} >{\colortbl;\red255\green255\blue255;} >\margl1440\margr1440\vieww10800\viewh8400\viewkind0 >\deftab720 >\pard\pardeftab720 > >\f0\fs24 \cf0 diff --git a/bundles/org.eclipse.orion.client.git/web/orion/git/widgets/ApplyPatchDialog.js b/bundles/org.eclipse.orion.client.git/web/orion/git/widgets/ApplyPatchDialog.js\ >index 5c2e645..f9e58bc 100644\ >--- a/bundles/org.eclipse.orion.client.git/web/orion/git/widgets/ApplyPatchDialog.js\ >+++ b/bundles/org.eclipse.orion.client.git/web/orion/git/widgets/ApplyPatchDialog.js\ >@@ -22,7 +22,7 @@\ > ApplyPatchDialog.prototype.TEMPLATE =\ > \ > '<div style="padding:4px"><input type="radio" name="radio" value="urlRadio" id="urlRadio" checked/>' +\ >- messages["URL:"] + '<input type="text" name="url" id="url"/></div>' +\ >+ messages["URL:"] + '<input type="text" name="url" id="patchurl"/></div>' +\ > '<div style="padding:4px"><input type="radio" name="radio" value="fileRadio" id="fileRadio"/>' +\ > messages["File:"] + '<input type="file" name="selectedFile" id="selectedFile" class="uploadChooser" />' +\ > '</div>';\ >@@ -34,6 +34,7 @@\ > this.modal = true;\ > this.messages = messages;\ > this.options = options;\ >+ this.customFocus = true;\ > \ > this.buttons = [];\ > \ >@@ -49,20 +50,22 @@\ > \};\ > \ > ApplyPatchDialog.prototype._bindToDom = function(parent) \{\ >+ var urlField = this.$patchurl;\ > this.$selectedFile.onchange = function(event)\{\ > this.$urlRadio.checked = false;\ > this.$fileRadio.checked = "fileRadio";\ > \}.bind(this);\ >- this.$url.onchange = function(event)\{\ >+ this.$patchurl.onchange = function(event)\{\ > this.$urlRadio.checked = "urlRadio";\ > this.$fileRadio.checked = false;\ > \}.bind(this);\ >+ window.setTimeout(function () \{urlField.focus();\}, 0);\ > \};\ > \ > ApplyPatchDialog.prototype._applyPatch = function(parent) \{\ > var formData = new FormData();\ > formData.append("uploadedfile", this.$selectedFile.files[0]);\ >- formData.append("url", this.$url.value);\ >+ formData.append("url", this.$patchurl.value);\ > formData.append("radio", this.$fileRadio.checked ? "fileRadio" : "urlRadio");\ > \ > this.req = new XMLHttpRequest();\ >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 392359
:
244062
|
251450
|
251451