@@ -48,7 +48,7 @@ COMMENT with these you can disable some features of the template. Please note th
4848[list]
4949<div id =' files_outer' >
5050 <div style =' height :1.6em ;' ></div > { .comment| this is quite ugly, i know, but if i use any vertical padding with height:100% i' ll get a scrollbar .}
51- {.if not| %number% |{: <div style=' font-size:200% ; padding:1em;' >{.!No {.if|{.length|{.?search.}.}|results|files.}.}</div> :}|{:
51+ {.if not| %number% |{: <div style=' font-size:200% ; padding:1em;' >{.!{.if|{.length|{.?search.}.}|No results|No files.}.}</div> :}|{:
5252 <form method=' post' >
5353 <table id=' files' >
5454 {.set|sortlink| {:<a href="{.trim|
@@ -93,7 +93,7 @@ COMMENT with these you can disable some features of the template. Please note th
9393 <button onclick=' changePwd.call(this)' style=' font-size:x-small;' >{.!Change password.}</button>
9494 .}
9595 :}
96- | <a href="~login">Login</a>
96+ | <a href="~login">{.! Login.} </a>
9797 .}
9898 </center>
9999 </fieldset>
@@ -155,7 +155,7 @@ COMMENT with these you can disable some features of the template. Please note th
155155 selectedChanged();
156156 " >{ .! Invert.} </button >
157157 <button onclick =' selectionMask.call(this)' >{ .! Mask.} </button >
158- <p style =' display :none ; margin-top :1em ;' ><span id =' selected-number' >0</span > items selected</p >
158+ <p style =' display :none ; margin-top :1em ;' ><span id =' selected-number' >0</span > { . ! items selected. } </p >
159159 </center >
160160 </fieldset >
161161
@@ -270,7 +270,7 @@ fieldset { margin-bottom:0.7em; text-align:left; padding:0.6em; }
270270<td >%item-size%B<td >%item-modified%<td >%item-dl-count%
271271
272272[+folder]
273- <td class =' nosize' >folder<td >%item-modified%<td >%item-dl-count%
273+ <td class =' nosize' >{ . ! folder. } <td >%item-modified%<td >%item-dl-count%
274274
275275[+link]
276276<td class =' nosize' >link<td colspan =' 2' >
@@ -377,7 +377,7 @@ fieldset { margin-bottom:0.7em; text-align:left; padding:0.6em; }
377377
378378[progress-upload-file]
379379{ .if not |{.{.?only.} = down.}|{ :
380- < li> Uploading % total% @ % speed-kb% KB/s
380+ < li> {. ! Uploading. } %total% @ %speed-kb% KB/s
381381 <br /><span class =' fn' >%filename%</span >
382382 <br />{ .! Time left.} %time-left%"
383383 <br /><div class =' out_bar' ><div class =' in_bar' style =" width :%perc%px" ></div ></div > %perc%%
@@ -446,8 +446,8 @@ fieldset { margin-bottom:0.7em; text-align:left; padding:0.6em; }
446446{ .check session.}
447447{ .break |if ={.not |{.can comment.} .} |result=forbidden.}
448448{ .for each|fn|{.replace|:|{.no pipe|| .} |{ .postvar|files.} .}|{ :
449- {.break |if ={.is file protected|var= fn.} |result=forbidden.}
450- { .set item|{.force ansi|% folder% {.^fn.} .}|comment={ .encode html|{.force ansi|{.postvar|text.} .}.}.}
449+ {.break |if ={.is file protected|var= fn.} |result=forbidden.}
450+ { .set item|{.force ansi|% folder% {.^fn.} .}|comment={ .encode html|{.force ansi|{.postvar|text.} .}.}.}
451451:}.}
452452{ .pipe|ok.}
453453
@@ -465,8 +465,7 @@ can change pwd=member of|can change password
465465can move=or|1|1
466466escape attr=replace|"|" ; |$1
467467commentNL=if|{ .pos|< br|$1.} |$1|{ .replace|{.chr|10.} |<br />|$1.}
468- add bytes=switch|{ .cut|-1|| $1.} |,|0,1,2,3,4,5,6,7,8,9|$1 Bytes|K,M,G,T|$1Bytes
469- quote={ :" $1" :}
468+ add bytes=switch|{ .cut|-1|| $1.} |,|0,1,2,3,4,5,6,7,8,9|$1 { .! Bytes.} |K,M,G,T|$1{ .! Bytes.}
470469
471470[special:import]
472471{ .new account|can change password|enabled= 1|is group= 1|notes= accounts members of this group will be allowed to change their password.}
@@ -517,7 +516,7 @@ $(function(){
517516 if (! $(" [name=file]" ).val()) return false ; // no file, no submit
518517 $(this).hide(); // we don' t need the form anymore, make space for the progress bars
519518 // build the gui
520- x.append("<div id=' progress' >in progress...</div>");
519+ x.append("<div id=' progress' >{ . ! in progress.... } </div>");
521520 x.append($("<button style=' float:right' >{ .! Cancel.} </button>").click(function(){
522521 // stop submit/upload
523522 if (typeof stop == ' function' )
@@ -674,7 +673,7 @@ function selectedChanged() {
674673function getItemName(el) {
675674 if (typeof el == ' undefined' )
676675 return false ;
677- // we handle elements, not jquery sets
676+ // we handle elements, not jquery sets
678677 if (el.jquery)
679678 if (el.size())
680679 el = el[0];
@@ -749,7 +748,7 @@ function ezprompt(msg, options, cb) {
749748 }
750749 if (! $.prompt) { // load on demand
751750 include (' /?mode=section&id=impromptu.css' );
752- include (' /?mode=section&id=jquery.impromptu.js' );
751+ include (' /?mode=section&id=jquery.impromptu.js' );
753752 }
754753 var v;
755754 if (v = options.type) {
@@ -764,17 +763,17 @@ function ezprompt(msg, options, cb) {
764763 $.prompt(msg, {
765764 opacity: 0.9,
766765 overlayspeed: ' fast' ,
767- loaded: function(){
766+ loaded: function(){
768767 $(' #jqibox' ).find(' :input' ).keypress(function (e) {
769768 var c = (e.keyCode || e.which);
770769 if (options.keypress && options.keypress(c, this, e) === false ) return;
771770 if (c != 13 || this.tagName == ' TEXTAREA' ) return; // ENTER key is like submit, but not in textarea
772771 $(' .jqibuttons button:first' ).click();
773772 return false ;
774- } ).filter(' :first' ).focus()[0].select();
773+ } ).filter(' :first' ).focus()[0].select();
775774 } ,
776775 submit: function(val,div,form) {
777- var res = cb(options.type ? form.txt : form, $(' #jqibox' ), options.cbData );
776+ var res = cb(options.type ? $.trim( form.txt) : form, $(' #jqibox' ), options.cbData );
778777 if (res === false ) {
779778 $(' #jqibox' ).find(' :input:first' ).focus();
780779 return false ;
@@ -919,7 +918,7 @@ function delCookie(name) {
919918 setCookie(name," " ,-1);
920919} // delCookie
921920
922-
921+
923922[jquery.impromptu.js|no log]
924923/*
925924 * jQuery Impromptu
0 commit comments