From 533ec55a2f9e8a224db25970cfb06967be220ad3 Mon Sep 17 00:00:00 2001 From: Ferdinand Malcher Date: Tue, 2 Feb 2016 11:50:28 +0100 Subject: [PATCH] updated selector names for disableLists --- static/js/pad.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/static/js/pad.js b/static/js/pad.js index 36771e9..883da94 100644 --- a/static/js/pad.js +++ b/static/js/pad.js @@ -115,13 +115,14 @@ exports.aceInitialized = function(hook, context){ } exports.disableLists = function() { - $('#oderedlist').hide(); - $('#unoderedlist').hide(); - $('#indent').hide(); - $('#outdent').hide(); - $('#bold').hide(); - $('#italic').hide(); - $('#underline').hide(); - $('#strikethrough').hide(); + $('[data-key="insertorderedlist"]').hide(); + $('[data-key="insertunorderedlist"]').hide(); + $('[data-key="indent"]').hide(); + $('[data-key="outdent"]').hide(); + $('[data-key="bold"]').hide(); + $('[data-key="italic"]').hide(); + $('[data-key="underline"]').hide(); + $('[data-key="strikethrough"]').hide(); + return; }