Update the JQuery

Update the jquery to 2.1.4 and cleaning up the image upload codes.
This commit is contained in:
Danang Probo Sayekti 2015-07-10 11:54:00 +07:00
commit 7cd94d0acc
6 changed files with 21 additions and 11 deletions

View file

@ -22,7 +22,9 @@ $delete = $p->url . '/delete?destination=' . $destination;
?>
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
<?php if (config("jquery") != "enable"):?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<?php endif;?>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
@ -80,7 +82,7 @@ $delete = $p->url . '/delete?destination=' . $destination;
autoOpen: false,
closeOnEscape: false,
open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); }
});
});
var $url = $('input[type=text]', $dialog);
var $file = $('input[type=file]', $dialog);
@ -128,7 +130,7 @@ $delete = $p->url . '/delete?destination=' . $destination;
return true; // tell the editor that we'll take care of getting the image url
});
editor.run();
editor.run();
})();
</script>