diff options
author | Francisco Cavalcante <francisco.cavalcante@bluepex.com> | 2016-01-22 14:20:24 -0200 |
---|---|---|
committer | Francisco Cavalcante <francisco.cavalcante@bluepex.com> | 2016-01-22 14:20:24 -0200 |
commit | 3f98044a3dcb281a433ea6335285ecdf5da23d96 (patch) | |
tree | 0a45c32d7e46de2eb7fa01914b0f68e342eed999 /src/usr/local/www/edit.php | |
parent | 2f84d661d3d3687f71b89b141b6e1c24feb658d1 (diff) | |
download | pfsense-3f98044a3dcb281a433ea6335285ecdf5da23d96.zip pfsense-3f98044a3dcb281a433ea6335285ecdf5da23d96.tar.gz |
Replaced jQuery to $ in same files
Diffstat (limited to 'src/usr/local/www/edit.php')
-rw-r--r-- | src/usr/local/www/edit.php | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/usr/local/www/edit.php b/src/usr/local/www/edit.php index a11f472..1b6a43d 100644 --- a/src/usr/local/www/edit.php +++ b/src/usr/local/www/edit.php @@ -207,19 +207,19 @@ require("head.inc"); }); function loadFile() { - jQuery("#fileStatus").html(""); - jQuery("#fileStatusBox").show(500); - jQuery.ajax( + $("#fileStatus").html(""); + $("#fileStatusBox").show(500); + $.ajax( "<?=$_SERVER['SCRIPT_NAME']?>", { type: "post", - data: "action=load&file=" + jQuery("#fbTarget").val(), + data: "action=load&file=" + $("#fbTarget").val(), complete: loadComplete } ); } function loadComplete(req) { - jQuery("#fileContent").show(1000); + $("#fileContent").show(1000); var values = req.responseText.split("|"); values.shift(); values.pop(); @@ -227,30 +227,30 @@ require("head.inc"); var file = values.shift(); var fileContent = window.atob(values.join("|")); - jQuery("#fileContent").val(fileContent); + $("#fileContent").val(fileContent); } else { - jQuery("#fileStatus").html(values[0]); - jQuery("#fileContent").val(""); + $("#fileStatus").html(values[0]); + $("#fileContent").val(""); } - jQuery("#fileContent").show(1000); + $("#fileContent").show(1000); } function saveFile(file) { - jQuery("#fileStatus").html(""); - jQuery("#fileStatusBox").show(500); + $("#fileStatus").html(""); + $("#fileStatusBox").show(500); - var fileContent = Base64.encode(jQuery("#fileContent").val()); + var fileContent = Base64.encode($("#fileContent").val()); fileContent = fileContent.replace(/\+/g, "%2B"); - jQuery.ajax( + $.ajax( "<?=$_SERVER['SCRIPT_NAME']?>", { type: "post", - data: "action=save&file=" + jQuery("#fbTarget").val() + + data: "action=save&file=" + $("#fbTarget").val() + "&data=" + fileContent, complete: function(req) { var values = req.responseText.split("|"); - jQuery("#fileStatus").html(values[1]); + $("#fileStatus").html(values[1]); } } ); @@ -397,7 +397,7 @@ var Base64 = { <?php if ($_GET['action'] == "load"): ?> events.push(function() { - jQuery("#fbTarget").val("<?=htmlspecialchars($_GET['path'])?>"); + $("#fbTarget").val("<?=htmlspecialchars($_GET['path'])?>"); loadFile(); }); <?php endif; ?> |