mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 20:16:22 +05:30
Update the JQuery
Update the jquery to 2.1.4 and cleaning up the image upload codes.
This commit is contained in:
parent
4e16a36bd5
commit
7cd94d0acc
6 changed files with 21 additions and 11 deletions
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue