浏览代码

[editor] Display player button by default to prevent the jump on page load

Romain Rigaux 10 年之前
父节点
当前提交
d3b4469f83
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

+ 2 - 2
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -151,7 +151,7 @@ ${ require.config() }
           <i class="fa fa-cogs"></i>
         </a>
 
-        <a class="btn pointer" title="${ _('Player mode') }" rel="tooltip" data-placement="bottom" data-bind="visible: $root.selectedNotebook() && $root.selectedNotebook().snippets().length > 0, click: function(){ hueUtils.goFullScreen(); $root.isEditing(false); $root.isPlayerMode(true); }" style="display:none">
+        <a class="btn pointer" title="${ _('Player mode') }" rel="tooltip" data-placement="bottom" data-bind="click: function(){ hueUtils.goFullScreen(); $root.isEditing(false); $root.isPlayerMode(true); }">
           <i class="fa fa-fw fa-expand"></i>
         </a>
 
@@ -162,7 +162,7 @@ ${ require.config() }
           </a>
           <ul class="dropdown-menu pull-right">
             <li>
-              <a class="pointer" data-bind="visible: $root.selectedNotebook() && $root.selectedNotebook().snippets().length > 0, click: function(){ hueUtils.goFullScreen(); $root.isEditing(false); $root.isPlayerMode(true); }" style="display:none">
+              <a class="pointer" data-bind="click: function(){ hueUtils.goFullScreen(); $root.isEditing(false); $root.isPlayerMode(true); }">
                 <i class="fa fa-fw fa-expand"></i> ${ _('Player mode') }
               </a>
             </li>