Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1304)

Unified Diff: Source/devtools/front_end/sources/AddSourceMapURLDialog.js

Issue 1356363002: [DevTools] Remove relativeToElement from Dialog. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/sources/AddSourceMapURLDialog.js
diff --git a/Source/devtools/front_end/sources/AddSourceMapURLDialog.js b/Source/devtools/front_end/sources/AddSourceMapURLDialog.js
index 9403e850e5aea3658e109664ece3a741ff380930..9688cc567c49b631c5fe3b231373941a05f1b747 100644
--- a/Source/devtools/front_end/sources/AddSourceMapURLDialog.js
+++ b/Source/devtools/front_end/sources/AddSourceMapURLDialog.js
@@ -17,19 +17,18 @@ WebInspector.AddSourceMapURLDialog = function(callback)
this._input.setAttribute("type", "text");
this._goButton = this.element.createChild("button");
- this._goButton.textContent = WebInspector.UIString("Go");
+ this._goButton.textContent = WebInspector.UIString("Add");
this._goButton.addEventListener("click", this._onGoClick.bind(this), false);
this._callback = callback;
}
/**
- * @param {!Element} element
* @param {function(string)} callback
*/
-WebInspector.AddSourceMapURLDialog.show = function(element, callback)
+WebInspector.AddSourceMapURLDialog.show = function(callback)
{
- WebInspector.Dialog.show(element, new WebInspector.AddSourceMapURLDialog(callback));
+ WebInspector.Dialog.show(new WebInspector.AddSourceMapURLDialog(callback));
}
WebInspector.AddSourceMapURLDialog.prototype = {

Powered by Google App Engine
This is Rietveld 408576698