Changed installation URL into <p>
authorAlexander Ebert <ebert@woltlab.com>
Mon, 16 Jan 2012 17:16:39 +0000 (18:16 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 16 Jan 2012 17:16:39 +0000 (18:16 +0100)
@Luzifr: JavaScript relies on the ID, not the tag so you can exchange it any time (changing it into an input-field would require further work)

wcfsetup/setup/template/stepSearchWcfDir.tpl

index c5e297ebb4af425a546c8299d4b5a9987c4c1505..86aba77dd882c8d9a7e9a0d855feaaacf85c7eeb 100644 (file)
@@ -46,7 +46,7 @@
                                for (var $i = 0; $i < $relativePathDirs.length; $i++) {
                                        if ($relativePathDirs[$i] == '..') {
                                                if ($installScriptUrlDirs.length < 1) {
-                                                       $wcfUrl.val($invalidErrorMessage);
+                                                       $wcfUrl.html($invalidErrorMessage);
                                                        return;
                                                }
                                
@@ -60,7 +60,7 @@
                                // implode and show result
                                var $result = $domainName;
                                for (var $i = 0; $i < $installScriptUrlDirs.length; $i++) $result += '/' + $installScriptUrlDirs[$i];
-                               $wcfUrl.val($result);
+                               $wcfUrl.html($result);
                        }
 
                        function removeEmptyDirParts(dir) {
                <dl id="wcfUrlContainer" style="display: none;">
                        <dt><label for="wcfUrl">{lang}wcf.global.wcfDir.url{/lang}</label></dt>
                        <dd>
-                               <input type="text" id="wcfUrl" name="wcfUrl" value="" readonly="readonly" class="long" />
+                               <p id="wcfUrl"></p>
                                <small>{lang}wcf.global.wcfDir.url.description{/lang}</small>
                        </dd>
                </dl>