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

@ -1,5 +1,7 @@
<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>
@ -61,7 +63,7 @@
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);
@ -109,7 +111,7 @@
return true; // tell the editor that we'll take care of getting the image url
});
editor.run();
editor.run();
})();
</script>

View file

@ -1,5 +1,7 @@
<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>
@ -74,7 +76,7 @@
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);
@ -122,7 +124,7 @@
return true; // tell the editor that we'll take care of getting the image url
});
editor.run();
editor.run();
})();
</script>

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>

View file

@ -37,7 +37,9 @@ $delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destinat
?>
<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>
@ -104,7 +106,7 @@ $delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destinat
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);
@ -152,7 +154,7 @@ $delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destinat
return true; // tell the editor that we'll take care of getting the image url
});
editor.run();
editor.run();
})();
</script>

View file

@ -17,7 +17,9 @@ if (file_exists($filename)) {
?>
<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>
@ -69,7 +71,7 @@ if (file_exists($filename)) {
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);
@ -117,7 +119,7 @@ if (file_exists($filename)) {
return true; // tell the editor that we'll take care of getting the image url
});
editor.run();
editor.run();
})();
</script>

View file

@ -1618,7 +1618,7 @@ function head_contents($title, $description, $canonical)
$canonical = '<link rel="canonical" href="' . $canonical . '" />';
$feed = '<link rel="alternate" type="application/rss+xml" title="' . blog_title() . ' Feed" href="' . site_url() . 'feed/rss" />';
$lightboxcss = '<link href="' . site_url() . 'system/plugins/lightbox/css/lightbox.css" rel="stylesheet" />';
$jquery = '<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>';
$jquery = '<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>';
$lightbox = '<script src="' . site_url() . 'system/plugins/lightbox/js/lightbox-2.6.min.js"></script>';
$corejs = '<script src="' . site_url() . 'system/resources/htmly.js"></script>';
$webmasterTools = '';