kleiner patch "wait while upload "

René Moser <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>
Hi

während upload erscheint ein popup mit statusbalken (anim gif), welches
wieder verschwindet wenn upload beendet wird.

klein aber nützlich :)

p.s. hatte etwas mühe mit der svnversion hier...deshalb:

patch ist für im themes/standard/admin/
wait_bar.gif für im /themes/standard/admin/images/

gruss

resmo

-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
wait_bar.gif (image/gif, 1.2 KB) - not displayed
wait_while_upload.patch (application/octet-stream, 2.2 KB)
Index: images/wait_bar.gif
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: images\wait_bar.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Index: addresource.xsl
===================================================================
--- addresource.xsl	(revision 5998)
+++ addresource.xsl	(working copy)
@@ -13,7 +13,12 @@
         <html>
             <head><title>Add new Resource</title>
             <link rel="stylesheet" type="text/css" href="{$webroot}/themes/standard/admin/css/formedit.css"/>
-             <script type="text/javascript" src="{$webroot}admin/webinc/js/adminfields.js"/>
+            <script type="text/javascript" src="{$webroot}admin/webinc/js/adminfields.js"/>
+			<script type="text/javascript">
+			function MM_openBrWindow(theURL,winName,features) { //v2.0
+				window.open(theURL,winName,features);
+			}
+			</script>
             </head>
             <body>
                 <xsl:apply-templates/>            
@@ -23,7 +28,7 @@
      
      
     <xsl:template match="plugin[@name='admin_addresource'] |plugin[@name='admin_siteoptions']">
-        <form name="adminform" action="" method="POST" enctype="multipart/form-data">
+        <form name="adminform" action="" method="POST" enctype="multipart/form-data" onsubmit="MM_openBrWindow('{$webroot}/themes/standard/admin/wait.html','myWin','scrollbars=no,width=300,height=150')">
             <xsl:apply-templates select="/bx/plugin/fields/field"/>
             <p>
                 <input accesskey="s" type="submit" name="send" value="send"/>
Index: wait.html
===================================================================
--- wait.html	(revision 0)
+++ wait.html	(revision 0)
@@ -0,0 +1,12 @@
+<html>
+<head>
+<title/>
+<link rel="stylesheet" type="text/css" href="/themes/standard/admin/css/admin.css"/>
+</head>
+<body onblur="this.window.close();">
+<br/>
+<div align="center"><img src="/themes/standard/admin/images/wait_bar.gif" /><br />
+File is uploading, please wait. This window will be closed after upload.<br />
+</div>
+</body>
+</html>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.