[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6389] trunk/UI
- Subject: SF.net SVN: ledger-smb:[6389] trunk/UI
- From: ..hidden..
- Date: Sun, 5 Jan 2014 13:35:21 +0000
Revision: 6389
http://sourceforge.net/p/ledger-smb/code/6389
Author: einhverfr
Date: 2014-01-05 13:35:19 +0000 (Sun, 05 Jan 2014)
Log Message:
-----------
Set dojo loader not to grab file inputs.
Modified Paths:
--------------
trunk/UI/lib/Loader.js
trunk/UI/templates/preview.html
Modified: trunk/UI/lib/Loader.js
===================================================================
--- trunk/UI/lib/Loader.js 2014-01-05 13:11:13 UTC (rev 6388)
+++ trunk/UI/lib/Loader.js 2014-01-05 13:35:19 UTC (rev 6389)
@@ -215,6 +215,9 @@
if (undefined == this.nodeMap[dnode.nodeName]){
return undefined;
}
+ if ('INPUT' == dnode.nodeName && 'file' == dnode.type){
+ return undefined;
+ }
if ('INPUT' == dnode.nodeName){
var classKey;
classKey = dnode.type;
Modified: trunk/UI/templates/preview.html
===================================================================
--- trunk/UI/templates/preview.html 2014-01-05 13:11:13 UTC (rev 6388)
+++ trunk/UI/templates/preview.html 2014-01-05 13:35:19 UTC (rev 6389)
@@ -1,12 +1,6 @@
<?lsmb INCLUDE "ui-header.html";
- PROCESS "elements.html" ?>
-<body class="<?lsmb dojo_theme ?>">
-<div class="listtop"><?lsmb template_name ?>.<?lsmb format ?><?lsmb
- IF language_code; "($language_code)"; ELSE; "(" _ text("No language") _ ")";
- END; ?></div>
-<div class="template_body"><pre><?lsmb content ?></pre></div>
-<form action="template.pl" method="get">
-<?lsmb
+ PROCESS "elements.html";
+BLOCK HIDDENS;
PROCESS input element_data = {
type = 'hidden'
name = 'template_name'
@@ -22,7 +16,33 @@
name = "format"
value = format
};
+END
+ ?>
+<body class="<?lsmb dojo_theme ?>">
+<form action="template.pl" method="post" enctype="multipart/form-data">
+<?lsmb
+PROCESS HIDDENS;
+PROCESS input element_data = {
+ type = "file"
+ name = "template_file"
+ class = "upload"
+} ?> <br /><?lsmb
PROCESS button element_data = {
+ type = "submit"
+ name = "action"
+ text = "upload"
+ class = "submit"
+};
+?>
+</form>
+<div class="listtop"><?lsmb template_name ?>.<?lsmb format ?><?lsmb
+ IF language_code; "($language_code)"; ELSE; "(" _ text("No language") _ ")";
+ END; ?></div>
+<div class="template_body"><pre><?lsmb content ?></pre></div>
+<form action="template.pl" method="get">
+<?lsmb
+PROCESS HIDDENS;
+PROCESS button element_data = {
type = 'submit'
name = 'action'
value = 'edit'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits