this should fix the dnd panel for non-firefox browsers. RegExps AIN'T functions ;)
This commit is contained in:
parent
6de3b03406
commit
6d271dd4fc
@ -105,8 +105,8 @@
|
||||
|
||||
|
||||
function onsave() {
|
||||
|
||||
$fp_widgets = isset($_POST['widgets'])? $_POST['widgets'] : array();
|
||||
|
||||
$fp_widgets = isset($_POST['widgets'])? $_POST['widgets'] : array();
|
||||
$success = system_save(CONFIG_DIR . 'widgets.conf.php', compact('fp_widgets'));
|
||||
|
||||
$this->smarty->assign('success', ( $success )? 1 : -1 );
|
||||
|
@ -4,7 +4,7 @@
|
||||
{include file='shared:errorlist.tpl'}
|
||||
|
||||
|
||||
{html_form}
|
||||
{html_form id="admin-widgets-default"}
|
||||
|
||||
<div id="available-widgets">
|
||||
<h2>{$panelstrings.availwdgs}</h2>
|
@ -15,8 +15,7 @@
|
||||
{'handle': $$('#available-widgets h3')[0]}
|
||||
);
|
||||
*/
|
||||
|
||||
|
||||
|
||||
Drag.MultiDrop = Drag.Move.extend({
|
||||
drag: function(event) {
|
||||
this.droppables = Widgets.droppables;
|
||||
@ -147,7 +146,7 @@
|
||||
|
||||
|
||||
parentid = drop.getParent().id;
|
||||
widgetsetid = /^widgetsetid-(.*)$/(parentid);
|
||||
widgetsetid = /^widgetsetid-(.*)$/.exec(parentid);
|
||||
|
||||
input = dropped.getChildren().filterByClass('widget-id')[0];
|
||||
input.set({
|
||||
|
Loading…
x
Reference in New Issue
Block a user