[pLog-svn] r711 - in plog/trunk: js/htmlarea js/ui templates/admin
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Mon Jan 10 12:11:10 GMT 2005
Author: oscar
Date: 2005-01-10 12:11:09 +0000 (Mon, 10 Jan 2005)
New Revision: 711
Modified:
plog/trunk/js/htmlarea/htmlarea-plog-resourcelist.js
plog/trunk/js/ui/common.js
plog/trunk/templates/admin/resourcelist.template
Log:
fixed an issue with popup windows (http://bugs.plogworld.net/view.php?id=133)
Modified: plog/trunk/js/htmlarea/htmlarea-plog-resourcelist.js
===================================================================
--- plog/trunk/js/htmlarea/htmlarea-plog-resourcelist.js 2005-01-09 18:01:57 UTC (rev 710)
+++ plog/trunk/js/htmlarea/htmlarea-plog-resourcelist.js 2005-01-10 12:11:09 UTC (rev 711)
@@ -98,11 +98,13 @@
// -------
//
-function resourceListWindowInit() {
+function resourceListWindowInit(htmlarea) {
// if we use this method, the dialog will be resized to its full size and I don't like that...
-//__dlg_init();
-//window.resizeTo(400,400);
-};
+if( htmlarea ) {
+ __dlg_init();
+ window.resizeTo(450,600);
+}
+}
function addHtmlareaLink(dest, blogId, type, resourceName, resourceDesc, preview) {
//var param = _generateResourceLink( dest, blogId, type, resourceName, resourceDesc, preview );
@@ -123,4 +125,4 @@
function onCancel() {
__dlg_close(null);
return false;
-};
\ No newline at end of file
+};
Modified: plog/trunk/js/ui/common.js
===================================================================
--- plog/trunk/js/ui/common.js 2005-01-09 18:01:57 UTC (rev 710)
+++ plog/trunk/js/ui/common.js 2005-01-10 12:11:09 UTC (rev 711)
@@ -19,7 +19,7 @@
function resource_list_window( type ) {
// type == 1 => intro text
// type == 2 => extended text
- HelpWin = window.open( '?op=resourceList&mode='+type,'ResourceListWindow','scrollbars=yes,resizable=yes,toolbar=no,height=600,width=350');
+ HelpWin = window.open( '?op=resourceList&mode='+type,'ResourceListWindow','scrollbars=yes,resizable=yes,toolbar=no,height=600,width=450');
}
Modified: plog/trunk/templates/admin/resourcelist.template
===================================================================
--- plog/trunk/templates/admin/resourcelist.template 2005-01-09 18:01:57 UTC (rev 710)
+++ plog/trunk/templates/admin/resourcelist.template 2005-01-10 12:11:09 UTC (rev 711)
@@ -35,7 +35,7 @@
}
{/literal}</style>
</head>
-<body onLoad="resourceListWindowInit();" style="">
+<body onLoad="resourceListWindowInit({if $htmlarea}true{else}false{/if});" style="">
<div id="list_nav_bar">
<div id="list_nav_select">
<form id="resourceListAlbum" action="admin.php" method="post">
More information about the pLog-svn
mailing list