Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function($) {
- $('#edit').submit(function(e) {
- e.preventDefault();
- var id = "<?php echo $this->getData('block_id'); ?>";
- var type = $('#type').val();
- var content = $('#field').val();
- var dataString = 'id=' + id + '&field=' + content + '&type' + type;
- $.ajax({
- type: "POST",
- url: "<?php echo SITE_PATH; ?>application/cms/edit.php" ,
- data: dataString,
- cache: false,
- success: function (html) {
- $('#cboxLoadedContent').html(html);
- }
- });
- });
- $('#colorbox_cancel').live('click', function (e){
- e.preventDefault();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement