From 7cd94d0acc0b7d5a5a8de7d2708c34635cf9f854 Mon Sep 17 00:00:00 2001 From: Danang Probo Sayekti Date: Fri, 10 Jul 2015 11:54:00 +0700 Subject: [PATCH] Update the JQuery Update the jquery to 2.1.4 and cleaning up the image upload codes. --- system/admin/views/add-page.html.php | 6 ++++-- system/admin/views/add-post.html.php | 6 ++++-- system/admin/views/edit-page.html.php | 6 ++++-- system/admin/views/edit-post.html.php | 6 ++++-- system/admin/views/edit-profile.html.php | 6 ++++-- system/includes/functions.php | 2 +- 6 files changed, 21 insertions(+), 11 deletions(-) diff --git a/system/admin/views/add-page.html.php b/system/admin/views/add-page.html.php index dec9a06..db8f0e8 100644 --- a/system/admin/views/add-page.html.php +++ b/system/admin/views/add-page.html.php @@ -1,5 +1,7 @@ + + @@ -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(); })(); \ No newline at end of file diff --git a/system/admin/views/add-post.html.php b/system/admin/views/add-post.html.php index cd89143..d67e0ec 100644 --- a/system/admin/views/add-post.html.php +++ b/system/admin/views/add-post.html.php @@ -1,5 +1,7 @@ + + @@ -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(); })(); \ No newline at end of file diff --git a/system/admin/views/edit-page.html.php b/system/admin/views/edit-page.html.php index c4ccc28..b27ca73 100644 --- a/system/admin/views/edit-page.html.php +++ b/system/admin/views/edit-page.html.php @@ -22,7 +22,9 @@ $delete = $p->url . '/delete?destination=' . $destination; ?> + + @@ -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(); })(); \ No newline at end of file diff --git a/system/admin/views/edit-post.html.php b/system/admin/views/edit-post.html.php index be86fa9..279c03e 100644 --- a/system/admin/views/edit-post.html.php +++ b/system/admin/views/edit-post.html.php @@ -37,7 +37,9 @@ $delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destinat ?> + + @@ -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(); })(); \ No newline at end of file diff --git a/system/admin/views/edit-profile.html.php b/system/admin/views/edit-profile.html.php index 6f3a697..42a528c 100644 --- a/system/admin/views/edit-profile.html.php +++ b/system/admin/views/edit-profile.html.php @@ -17,7 +17,9 @@ if (file_exists($filename)) { ?> + + @@ -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(); })(); \ No newline at end of file diff --git a/system/includes/functions.php b/system/includes/functions.php index 4de0677..4f17100 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -1618,7 +1618,7 @@ function head_contents($title, $description, $canonical) $canonical = ''; $feed = ''; $lightboxcss = ''; - $jquery = ''; + $jquery = ''; $lightbox = ''; $corejs = ''; $webmasterTools = '';