Author: bklaas
Date: Mon Feb 11 16:41:28 2008
New Revision: 1914
URL: http://svn.slimdevices.com?rev=1914&root=Jive&view=rev
Log:
Bug: 6997
Description: add another "special" destination for nextWindow called refresh,
which just reloads the window.
This is used for text input menus where, after entry, the initialText needs to
be updated
Modified:
branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
Modified:
branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
URL:
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua?rev=1914&root=Jive&r1=1913&r2=1914&view=diff
==============================================================================
---
branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
(original)
+++
branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
Mon Feb 11 16:41:28 2008
@@ -663,6 +663,16 @@
return popup
end
+local function _refreshMe(step)
+ if step.origin then
+ local timer = Timer(100,
+ function()
+ _refreshJSONAction(step.origin)
+ end, true)
+ timer:start()
+ end
+end
+
-- _hideMe
-- hides the top window
local function _hideMe(step)
@@ -676,6 +686,8 @@
end, true)
timer:start()
end
+
+
end
-- _goNowPlaying
@@ -718,6 +730,8 @@
_goPlaylist()
elseif destination == 'parent' and step and step.window then
_hideMe(step)
+ elseif destination == 'refresh' and step and step.window then
+ _refreshMe(step)
end
end
@@ -1240,6 +1254,8 @@
sink = goHome
elseif item['nextWindow'] == 'parent' then
sink = _hideMe(_curStep)
+ elseif item['nextWindow'] == 'refresh' then
+ sink = _refreshMe(_curStep)
elseif item["showBigArtwork"] then
sink = _bigArtworkPopup
elseif actionName == 'go'
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins