Browse Source

HUE.27 Convert collection of JFrameFilters to Behaviors

Updated some templates that were not using the ContextMenu filter.
Aaron Newton 15 years ago
parent
commit
cd2bcbec18

+ 1 - 0
apps/beeswax/src/beeswax/templates/list_designs.mako

@@ -41,6 +41,7 @@ ${wrappers.head("Beeswax: Queries", section='saved queries')}
         may_edit = user == design.owner
       %>
       <tr data-dblclick-delegate="{'dblclick_loads':'.bw-query_edit, .bw-query_clone'}" class="ccs-no_select ccs-help_links_small"
+      data-filters="ContextMenu"
       data-context-menu-actions="[{'events':['contextmenu','click:relay(a.bw-options)'],'menu':'ul.context-menu'}]">
         <td>
           % if may_edit:

+ 1 - 0
apps/beeswax/src/beeswax/templates/my_queries.mako

@@ -47,6 +47,7 @@ ${wrappers.head("Beeswax: My Queries", section='my queries')}
           %>
           % for design in q_page.object_list:
             <tr data-dblclick-delegate="{'dblclick_loads':'.bw-query_edit, .bw-query_clone'}" class="ccs-no_select ccs-help_links_small"
+            data-filters="ContextMenu"
             data-context-menu-actions="[{'events':['contextmenu','click:relay(a.bw-options)'],'menu':'ul.context-menu'}]">
               <td>
                 % if design.type == models.SavedQuery.REPORT:

+ 4 - 1
apps/filebrowser/src/filebrowser/templates/listdir_components.mako

@@ -56,7 +56,10 @@ from django.template.defaultfilters import urlencode, stringformat, filesizeform
           endif
         %>
         <% path_enc = urlencode(file['path']) %>
-        <tr class="ccs-no_select fb-item-row ${cls}" data-context-menu-actions="[{'events':['contextmenu','click:relay(.fb-item-options)'],'menu':'ul.context-menu'}]" data-dblclick-delegate= "{'dblclick_loads':'a.fb-item'}" data-filedata="{'path':'${path_enc}','type':'${file['type']|u}'}">
+        <tr class="ccs-no_select fb-item-row ${cls}"
+         data-filters="ContextMenu"
+         data-context-menu-actions="[{'events':['contextmenu','click:relay(.fb-item-options)'],'menu':'ul.context-menu'}]"
+         data-dblclick-delegate= "{'dblclick_loads':'a.fb-item'}" data-filedata="{'path':'${path_enc}','type':'${file['type']|u}'}">
           <td class="fb-name">
             <div class="fb-name-container">
               % if "dir" == file['type']:

+ 1 - 0
desktop/core/static/css/shared.css

@@ -411,6 +411,7 @@ input[data-filters*=ArtButton] {
 		and they all go to 0/0/0/0px
 	*/
 	border: 0px;
+	vertical-align: bottom;
 }
 .ccs-shared [data-filters*=ArtButtonBar] a {
 	float: left;

+ 1 - 1
desktop/core/static/js/Source/BehaviorFilters/Behavior.ContextMenu.js

@@ -6,7 +6,7 @@
 // limitations under the License.
 /*
 ---
-description: Adds context menu support for any element with a data-context-menu-actions property. See the CCS.ContextMenu class for details on usage.
+description: Adds context menu support for any element with a data-context-menu-actions property and the ContextMenu data-filter. See the CCS.ContextMenu class for details on usage.
 provides: [Behavior.ContextMenu]
 requires: [Widgets/Behavior, /CCS.ContextMenu]
 script: Behavior.ContextMenu.js