You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by ra...@apache.org on 2012/08/07 19:56:16 UTC

svn commit: r1370403 - /rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave_layout.js

Author: raminder
Date: Tue Aug  7 17:56:15 2012
New Revision: 1370403

URL: http://svn.apache.org/viewvc?rev=1370403&view=rev
Log:
Apply patch by Daniel. Rave-674

Modified:
    rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave_layout.js

Modified: rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave_layout.js
URL: http://svn.apache.org/viewvc/rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave_layout.js?rev=1370403&r1=1370402&r2=1370403&view=diff
==============================================================================
--- rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave_layout.js (original)
+++ rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave_layout.js Tue Aug  7 17:56:15 2012
@@ -68,6 +68,9 @@ rave.layout = rave.layout || (function()
                 // dialog between separate add/edit page actions
                 $pageMenuUpdateButton.unbind('click');
                 $pageMenuUpdateButton.click(rave.layout.addPage);
+                $('#pageMenuDialog').on('shown', function () {
+                    $("#tab_title").first().focus();
+                });
                 $("#pageMenuDialog").modal('show');
             });
 
@@ -85,6 +88,9 @@ rave.layout = rave.layout || (function()
                                             // dialog between separate add/edit page actions
                                             $pageMenuUpdateButton.unbind('click');
                                             $pageMenuUpdateButton.click(rave.layout.updatePage);
+                                            $('#pageMenuDialog').on('shown', function () {
+                                                $("#tab_title").first().focus();
+                                            });
                                             $("#pageMenuDialog").modal('show');
                                         }
                 });
@@ -111,6 +117,9 @@ rave.layout = rave.layout || (function()
                     rave.api.rpc.getUsers({offset: 0,
                         successCallback: function(result) {
                             rave.layout.searchHandler.dealWithUserResults(result);
+                            $('#sharePageDialog').on('shown', function () {
+                                $("#searchTerm").first().focus();
+                            });
                             $("#sharePageDialog").modal('show');
                         }
                     });