Skip to content

Commit

Permalink
Merge branch 'release/6.7.x' into develop
Browse files Browse the repository at this point in the history
# Conflicts:
#	inc/widgets/widgets.ctrl.php
#	rsc/js/build/bootstrap-evo_backoffice.bmin.js
#	rsc/js/build/evo_backoffice.bmin.js
  • Loading branch information
yurabakhtin committed Oct 12, 2016
2 parents f5d8b9c + 8bdf933 commit 7aacbef
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 9 deletions.
2 changes: 2 additions & 0 deletions Gruntfile.js
Expand Up @@ -263,6 +263,7 @@ module.exports = function(grunt) {
'rsc/js/extracats.js',
'rsc/js/dynamic_select.js',
'rsc/js/backoffice.js',
'rsc/js/blog_widgets.js',
'rsc/js/src/evo_modal_window.js',
'rsc/js/src/evo_images.js',
'rsc/js/src/evo_user_crop.js',
Expand All @@ -288,6 +289,7 @@ module.exports = function(grunt) {
'rsc/js/extracats.js',
'rsc/js/dynamic_select.js',
'rsc/js/backoffice.js',
'rsc/js/blog_widgets.js',
'rsc/js/src/bootstrap-evo_modal_window.js',
'rsc/js/src/evo_images.js',
'rsc/js/src/evo_user_crop.js',
Expand Down
2 changes: 1 addition & 1 deletion conf/_application.php
Expand Up @@ -21,7 +21,7 @@
* Release date (ISO)
* @global string
*/
$app_date = '2016-10-11';
$app_date = '2016-10-12';

/**
* Long version string for checking differences
Expand Down
13 changes: 9 additions & 4 deletions inc/widgets/widgets.ctrl.php
Expand Up @@ -279,9 +279,15 @@
send_javascript_message( $methods, true );
break;
}
$action = 'list';
$Session->set( 'fadeout_id', $edited_ComponentWidget->ID );
header_redirect( '?ctrl=widgets&blog='.$Blog->ID, 303 );
if( $action == 'update_edit' )
{ // Stay on edit widget form:
header_redirect( $admin_url.'?ctrl=widgets&blog='.$Blog->ID.'&action=edit&wi_ID='.$edited_ComponentWidget->ID, 303 );
}
else
{ // Redirect to widgets list:
$Session->set( 'fadeout_id', $edited_ComponentWidget->ID );
header_redirect( $admin_url.'?ctrl=widgets&blog='.$Blog->ID, 303 );
}
}
elseif( $display_mode == 'js' )
{ // send errors back as js
Expand Down Expand Up @@ -594,7 +600,6 @@
var b2evo_dispatcher_url = "'.$admin_url.'";' );
require_js( '#jqueryUI#' ); // auto requires jQuery
require_js( 'blog_widgets.js' );
require_css( 'blog_widgets.css' );


Expand Down
12 changes: 10 additions & 2 deletions rsc/js/blog_widgets.js
@@ -1,5 +1,10 @@
/**
* Server communication functions - widgets javascript interface
* This file contains JS code to work with collection widgets in back-office:
* - Add new widget in list
* - Sort widgets in list by drag and drop
* - Edit widget in modal window
*
* This file is part of the evoCore framework - {@link http://evocore.net/}
* See also {@link https://github.com/b2evolution/b2evolution}.
* @author yabs - http://innervisions.org.uk/
Expand Down Expand Up @@ -62,7 +67,10 @@ jQuery(document).ready( function()
delete_icon_tag = jQuery( '.delete_icon_hook' ).find( 'a' ).html();// grab the delete icon
//get crumb url from delete url and then add it in toggleWidget
crumb_url = jQuery( '.delete_icon_hook' ).find( 'a' ).attr('href');
crumb_url = crumb_url.match(/crumb_.*?$/);
if( typeof( crumb_url ) != 'undefined' )
{
crumb_url = crumb_url.match(/crumb_.*?$/);
}
// Modify the current widgets screen
// remove the "no widgets yet" placeholder:
jQuery( ".new_widget" ).parent().parent().remove();
Expand Down Expand Up @@ -358,7 +366,7 @@ function getWidgetOrder()
containers_list += container+',';
}

var r = 'blog='+blog+'&'+query_string+'container_list='+containers_list;
var r = ( typeof( blog ) != 'undefined' ? 'blog='+blog : '' ) +'&'+query_string+'container_list='+containers_list;

// console.log( r );

Expand Down
3 changes: 2 additions & 1 deletion rsc/js/build/bootstrap-evo_backoffice.bmin.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion rsc/js/build/evo_backoffice.bmin.js

Large diffs are not rendered by default.

0 comments on commit 7aacbef

Please sign in to comment.