Răsfoiți Sursa

HUE-473. Add ability to get the link for an app window and enter one in.

Aaron Newton 14 ani în urmă
părinte
comite
a1fadfe672
2 a modificat fișierele cu 13 adăugiri și 1 ștergeri
  1. 12 0
      desktop/core/static/js/Source/Hue/Hue.js
  2. 1 1
      ext/thirdparty/js/widgets.hash

+ 12 - 0
desktop/core/static/js/Source/Hue/Hue.js

@@ -32,6 +32,18 @@ JFrame.Browser.implement({
 		help: function(){
 			var help = $(this).getElement('a[target=Help].help');
 			Hue.Desktop.showHelp(this, help ? help.get('href') : null);
+		},
+		link: function(){
+			this.prompt('Application Location', '<input type="text" style="width:350px" name="path" value="' + new URI(this.jframe.currentPath).toString() + '">', function(newPath){
+				this.load({requestPath: unescape(newPath.split('path=')[1]) });
+			}.bind(this), {
+				onShow: function(){
+					var input = $(this).getElement('input').addEvent('focus', function(){
+						this.select();
+					});
+					input.select.delay(100, input);
+				}
+			});
 		}
 	}
 

+ 1 - 1
ext/thirdparty/js/widgets.hash

@@ -1 +1 @@
-c12385ed0fb1598cf1a585e06bf7ed42dfda42d3
+d39fda5d9354e8b0f359e549b6b476a40f82a577