From 7a7b3391fb1abf3cd31a733cbbdcf4fc7b1dd4c2 Mon Sep 17 00:00:00 2001 From: Alexandre Girard Date: Thu, 24 Nov 2011 16:34:28 +0100 Subject: [PATCH] add checkbox to limit number of inputs --- static/css/pad.css | 6 +++++- static/js/pad_editbar.js | 28 ++++++++++++++++++---------- static/pad.html | 13 ++++--------- 3 files changed, 27 insertions(+), 20 deletions(-) diff --git a/static/css/pad.css b/static/css/pad.css index 0101e7c1..6be1bf11 100644 --- a/static/css/pad.css +++ b/static/css/pad.css @@ -786,11 +786,15 @@ padding: 10px; border-radius: 6px; } +#embedreadonly { +float:right; +} + #embedcode, #readonlyUrl, #linkcode { margin-left:10px; } -#embedinput, #readonlyInput, #linkinput, #rolinkinput, #roembedinput { +#embedinput, #readonlyInput, #linkinput { width:375px; height:24px; display:inline; diff --git a/static/js/pad_editbar.js b/static/js/pad_editbar.js index f78e33fa..d1a60615 100644 --- a/static/js/pad_editbar.js +++ b/static/js/pad_editbar.js @@ -99,16 +99,8 @@ var padeditbar = (function() self.toogleDropDown("users"); } else if (cmd == 'embed') - { - var padurl = window.location.href.split("?")[0]; - $('#embedinput').val("