this should fix the dnd panel for non-firefox browsers. RegExps AIN'T functions ;)

This commit is contained in:
real_nowhereman 2008-02-29 11:07:29 +00:00
parent 6de3b03406
commit 6d271dd4fc
3 changed files with 5 additions and 6 deletions

View File

@ -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 );

View File

@ -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>

View File

@ -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({