From 298c2990e6b039b9d8e7cf746fe70b6982b8182a Mon Sep 17 00:00:00 2001 From: Kamil Kaminski Date: Mon, 15 Dec 2014 20:14:14 -0600 Subject: nuke windows file endings, add notes and ideas --- js/editinplace.php | 88 +++++++++++++++++++++++++++--------------------------- 1 file changed, 44 insertions(+), 44 deletions(-) (limited to 'js/editinplace.php') diff --git a/js/editinplace.php b/js/editinplace.php index 612617a..0765d50 100644 --- a/js/editinplace.php +++ b/js/editinplace.php @@ -1,44 +1,44 @@ -/*! -Autosize v1.18.1 - 2013-11-05 -Automatically adjust textarea height based on user input. -(c) 2013 Jack Moore - http://www.jacklmoore.com/autosize -license: http://www.opensource.org/licenses/mit-license.php -*/ -(function(e){var t,o={className:"autosizejs",append:"",callback:!1,resizeDelay:10},i='"); - a.children(':first').focus().autosize().trigger('autosize.resize'); - } - changing = true; - }); - - $('.toggle').click(function(){ - $('.hide').toggle('200'); - }); -}); - -function nl2br(s){ - return (s + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1
$2'); -} - -function fieldSave(key,val){ - $.post('edittext.php', {fieldname: key, content: val}).done(function(data){ - if(key == 'theme_name'){location.reload(true);} - else if(val==''){$('#'+key).html($('#'+key).attr('title'));} - else {$("#"+key).html(data);} - changing = false; - }); -} \ No newline at end of file +/*! +Autosize v1.18.1 - 2013-11-05 +Automatically adjust textarea height based on user input. +(c) 2013 Jack Moore - http://www.jacklmoore.com/autosize +license: http://www.opensource.org/licenses/mit-license.php +*/ +(function(e){var t,o={className:"autosizejs",append:"",callback:!1,resizeDelay:10},i='"); + a.children(':first').focus().autosize().trigger('autosize.resize'); + } + changing = true; + }); + + $('.toggle').click(function(){ + $('.hide').toggle('200'); + }); +}); + +function nl2br(s){ + return (s + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1
$2'); +} + +function fieldSave(key,val){ + $.post('edittext.php', {fieldname: key, content: val}).done(function(data){ + if(key == 'theme_name'){location.reload(true);} + else if(val==''){$('#'+key).html($('#'+key).attr('title'));} + else {$("#"+key).html(data);} + changing = false; + }); +} -- cgit v1.2.3