Index: branches/RC/core/install/upgrades.sql
===================================================================
diff -u -N -r11401 -r11409
--- branches/RC/core/install/upgrades.sql (.../upgrades.sql) (revision 11401)
+++ branches/RC/core/install/upgrades.sql (.../upgrades.sql) (revision 11409)
@@ -1003,4 +1003,7 @@
ALTER TABLE Skins ADD LogoBottom VARCHAR(255) NOT NULL AFTER Logo;
INSERT INTO ConfigurationValues VALUES (DEFAULT, 'SiteNameSubTitle', '', 'In-Portal', 'in-portal:configure_general');
-INSERT INTO ConfigurationAdmin VALUES ('SiteNameSubTitle', 'la_Text_Website', 'la_config_SiteNameSubTitle', 'text', '', '', 10.021, 0, 0);
\ No newline at end of file
+INSERT INTO ConfigurationAdmin VALUES ('SiteNameSubTitle', 'la_Text_Website', 'la_config_SiteNameSubTitle', 'text', '', '', 10.021, 0, 0);
+
+INSERT INTO ConfigurationAdmin VALUES ('ResizableFrames', 'la_Text_Website', 'la_config_ResizableFrames', 'checkbox', '', '', 10.30, 0, 0);
+INSERT INTO ConfigurationValues VALUES (DEFAULT, 'ResizableFrames', '0', 'In-Portal', 'in-portal:configure_general');
\ No newline at end of file
Index: branches/RC/core/units/admin/admin_events_handler.php
===================================================================
diff -u -N -r11336 -r11409
--- branches/RC/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 11336)
+++ branches/RC/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 11409)
@@ -53,6 +53,14 @@
return $this->Application->CheckPermission($tools_events[$event->Name]);
}
+ if ($event->Name == 'OnSaveMenuFrameWidth') {
+ if (!$this->Application->IsAdmin() || !$this->Application->LoggedIn()) {
+ return false;
+ }
+
+ return true;
+ }
+
return parent::CheckPermission($event);
}
@@ -1167,4 +1175,27 @@
}
}
+ /**
+ * Saves menu (tree) frame width
+ *
+ * @param kEvent $event
+ */
+ function OnSaveMenuFrameWidth(&$event)
+ {
+ $event->status = erSTOP;
+
+ if (!$this->Application->ConfigValue('ResizableFrames')) {
+ return ;
+ }
+
+ $sql = 'UPDATE ' . $this->Application->getUnitOption('conf', 'TableName') . '
+ SET VariableValue = ' . (int)$this->Application->GetVar('width') . '
+ WHERE VariableName = "MenuFrameWidth"';
+ $this->Conn->Query($sql);
+
+ if ($this->Conn->getAffectedRows()) {
+ $this->Application->UnitConfigReader->ResetParsedData(false);
+ }
+ }
+
}
\ No newline at end of file
Index: branches/RC/core/install/english.lang
===================================================================
diff -u -N -r11395 -r11409
--- branches/RC/core/install/english.lang (.../english.lang) (revision 11395)
+++ branches/RC/core/install/english.lang (.../english.lang) (revision 11409)
@@ -235,9 +235,11 @@
UmVtZW1iZXIgTGFzdCBBZG1pbiBUZW1wbGF0ZQ==
UmVxdWlyZSBTU0wgZm9yIEFkbWluaXN0cmF0aXZlIENvbnNvbGU=
UmVxdWlyZSBTU0wgZm9yIGxvZ2luICYgY2hlY2tvdXQ=
+ RnJhbWVzIGluIGFkbWluaXN0cmF0aXZlIGNvbnNvbGUgYXJlIHJlc2l6YWJsZQ==
U2VydmVyIE5hbWU=
U2VydmVyIFBhdGg=
U2l0ZSBBZG1pbg==
+ V2Vic2l0ZSBTdWJ0aXRsZQ==
VGltZSB6b25lIG9mIHRoZSBzaXRl
U1NMIEZ1bGwgVVJMIChodHRwczovL3d3dy5kb21haW4uY29tL3BhdGgp
VGh1bWJuYWlsIEhlaWdodA==
@@ -789,6 +791,7 @@
TG9jYXRpb24=
TG9naW4=
TG9nbyBpbWFnZQ==
+ Qm90dG9tIExvZ28gSW1hZ2U=
TWFyZ2luIEJvdHRvbQ==
TWFyZ2luIExlZnQ=
TWFyZ2luIFJpZ2h0
Index: branches/RC/core/install/install_data.sql
===================================================================
diff -u -N -r11396 -r11409
--- branches/RC/core/install/install_data.sql (.../install_data.sql) (revision 11396)
+++ branches/RC/core/install/install_data.sql (.../install_data.sql) (revision 11409)
@@ -1102,5 +1102,8 @@
INSERT INTO ConfigurationAdmin VALUES ('CheckStopWords', 'la_Text_Website', 'la_config_CheckStopWords', 'checkbox', '', '', 10.29, 0, 0);
INSERT INTO ConfigurationValues VALUES (DEFAULT, 'CheckStopWords', '0', 'In-Portal', 'in-portal:configure_general');
+INSERT INTO ConfigurationAdmin VALUES ('ResizableFrames', 'la_Text_Website', 'la_config_ResizableFrames', 'checkbox', '', '', 10.30, 0, 0);
+INSERT INTO ConfigurationValues VALUES (DEFAULT, 'ResizableFrames', '0', 'In-Portal', 'in-portal:configure_general');
+
INSERT INTO Modules VALUES ('Core', 'core/', 'adm', DEFAULT, 1, 1, '', 0, '0');
INSERT INTO Modules VALUES ('In-Portal', 'core/', 'm', '5.0.0', 1, 0, '', 0, '0');
\ No newline at end of file