]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - pkgs/webapps/etherpad-lite/modules/ep_line_height/fix.patch
Fix some etherpad-lite modules and packaging
[perso/Immae/Config/Nix.git] / pkgs / webapps / etherpad-lite / modules / ep_line_height / fix.patch
diff --git a/pkgs/webapps/etherpad-lite/modules/ep_line_height/fix.patch b/pkgs/webapps/etherpad-lite/modules/ep_line_height/fix.patch
new file mode 100644 (file)
index 0000000..ffd65f1
--- /dev/null
@@ -0,0 +1,30 @@
+diff --git a/static/js/index.js b/static/js/index.js
+index 1884571..c0490bf 100644
+--- a/static/js/index.js
++++ b/static/js/index.js
+@@ -23,9 +23,6 @@ var postAceInit = function(hook, context){
+   $('.line-height-menu').hover(function(){
+     $('.submenu > .height-selection').attr('size', 4);
+   });
+-  $('.line-height').click(function(){
+-    $('.line-height-select').toggle();
+-  });
+ };
+ exports.aceGetFilterStack = function(name, context){
+diff --git a/templates/editbarButtons.ejs b/templates/editbarButtons.ejs
+index 89a8aaa..8af258b 100644
+--- a/templates/editbarButtons.ejs
++++ b/templates/editbarButtons.ejs
+@@ -1,10 +1,5 @@
+ <li class="separator acl-write"></li>
+-<li class="acl-write line-height">
+-  <a title="line height">
+-    <span class="buttonicon" style="background-image:url('../static/plugins/ep_line_height/static/img/icon.png');"></span>
+-  </a>
+-</li>
+-<li class="line-height-select" class="acl-write" style="display:none;">
++<li class="line-height-select" class="acl-write">
+     <select class="height-selection">
+         <option value="dummy" selected data-l10n-id="ep_line_height.height">Line Height</option>
+         <option value="1">1x</option>