Version Description
- Update: Show confirm message before close a View page to prevent missing changes
- Tested up to: 4.2.1
Download this release
Release Info
Developer | PT Guy |
Plugin | Content Views – Post Grid & List for WordPress |
Version | 1.5.7.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.7 to 1.5.7.1
- README.txt +5 -3
- admin/assets/js/admin.js +5 -1
- content-views.php +2 -2
README.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: post, posts, page, pages, query, queries, search, display, show, grid, column, layout, author, blog, categories, category, comment, content, custom, editor, filter, Formatting, image, list, meta, plugin, responsive, shortcode, excerpt, title, tag, term, Taxonomy, thumbnail, pagination, date, scrollable, slider, collapsible
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.2.1
|
7 |
-
Stable tag: 1.5.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -165,10 +165,12 @@ function my_move_bootstrap( $args ) {
|
|
165 |
|
166 |
== Changelog ==
|
167 |
|
|
|
|
|
|
|
|
|
168 |
= 1.5.7 =
|
169 |
-
* Update: Show confirm message before leave a View page to prevent missing changes
|
170 |
* Update: Some update styles for Scrollable, Collapsible layouts
|
171 |
-
* Tested up to: 4.2.1
|
172 |
|
173 |
= 1.5.6 =
|
174 |
* Bug fixed: "undefined" Bootstrap stylesheet link
|
4 |
Tags: post, posts, page, pages, query, queries, search, display, show, grid, column, layout, author, blog, categories, category, comment, content, custom, editor, filter, Formatting, image, list, meta, plugin, responsive, shortcode, excerpt, title, tag, term, Taxonomy, thumbnail, pagination, date, scrollable, slider, collapsible
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.2.1
|
7 |
+
Stable tag: 1.5.7.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
165 |
|
166 |
== Changelog ==
|
167 |
|
168 |
+
= 1.5.7.1 =
|
169 |
+
* Update: Show confirm message before close a View page to prevent missing changes
|
170 |
+
* Tested up to: 4.2.1
|
171 |
+
|
172 |
= 1.5.7 =
|
|
|
173 |
* Update: Some update styles for Scrollable, Collapsible layouts
|
|
|
174 |
|
175 |
= 1.5.6 =
|
176 |
* Bug fixed: "undefined" Bootstrap stylesheet link
|
admin/assets/js/admin.js
CHANGED
@@ -635,8 +635,12 @@
|
|
635 |
} );
|
636 |
|
637 |
// Prevent missing changes
|
|
|
|
|
|
|
|
|
638 |
window.onbeforeunload = function ( event ) {
|
639 |
-
if ( !$self.options.onload ) {
|
640 |
var message = 'The changes you made will be lost if you navigate away from this page.';
|
641 |
if ( typeof event === 'undefined' ) {
|
642 |
event = window.event;
|
635 |
} );
|
636 |
|
637 |
// Prevent missing changes
|
638 |
+
var checked = 0;
|
639 |
+
$( '#' + _prefix + 'form-view input[type="submit"]' + ',' + 'a[href*="action=duplicate"]' ).click( function () {
|
640 |
+
checked = 1;
|
641 |
+
} );
|
642 |
window.onbeforeunload = function ( event ) {
|
643 |
+
if ( !$self.options.onload && !checked ) {
|
644 |
var message = 'The changes you made will be lost if you navigate away from this page.';
|
645 |
if ( typeof event === 'undefined' ) {
|
646 |
event = window.event;
|
content-views.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* Plugin Name: Content Views
|
12 |
* Plugin URI: http://wordpress.org/plugins/content-views-query-and-display-post-page/
|
13 |
* Description: Query and display <strong>posts, pages</strong> in awesome layouts (<strong>grid, scrollable list, collapsible list</strong>) easier than ever, without coding!
|
14 |
-
* Version: 1.5.7
|
15 |
* Author: PT Guy
|
16 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
17 |
* Text Domain: content-views
|
@@ -27,7 +27,7 @@ if ( !defined( 'WPINC' ) ) {
|
|
27 |
/*
|
28 |
* Define Constant
|
29 |
*/
|
30 |
-
define( 'PT_CV_VERSION', '1.5.7' );
|
31 |
define( 'PT_CV_FILE', __FILE__ );
|
32 |
$pt_cv_path = plugin_dir_path( __FILE__ );
|
33 |
include_once( $pt_cv_path . 'includes/defines.php' );
|
11 |
* Plugin Name: Content Views
|
12 |
* Plugin URI: http://wordpress.org/plugins/content-views-query-and-display-post-page/
|
13 |
* Description: Query and display <strong>posts, pages</strong> in awesome layouts (<strong>grid, scrollable list, collapsible list</strong>) easier than ever, without coding!
|
14 |
+
* Version: 1.5.7.1
|
15 |
* Author: PT Guy
|
16 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
17 |
* Text Domain: content-views
|
27 |
/*
|
28 |
* Define Constant
|
29 |
*/
|
30 |
+
define( 'PT_CV_VERSION', '1.5.7.1' );
|
31 |
define( 'PT_CV_FILE', __FILE__ );
|
32 |
$pt_cv_path = plugin_dir_path( __FILE__ );
|
33 |
include_once( $pt_cv_path . 'includes/defines.php' );
|