fixed flush cache feature, better support for default-cvs-site, auto add / after...
authorKristian Kræmmer Nielsen <jkkn@jkkn.dk>
Mon, 7 Jan 2008 19:58:26 +0000 (20:58 +0100)
committerKristian Kræmmer Nielsen <jkkn@jkkn.dk>
Mon, 7 Jan 2008 19:58:26 +0000 (20:58 +0100)
content/quickbox.js
content/tv2developer.js
version

index e55fad43391d90cdd9531e99b63ae76baa755b0d..1ecdba751722d5041d0be099589a184628fbde53 100644 (file)
@@ -380,6 +380,9 @@ var TV2DeveloperQuickBox = {
                     if (entered_root[1]=='/') {
                         // you can exclude 'webroot' by written two slashes: '//'
                         uriOnly = uriOnly.substr(1);
+                    } else if (entered_root[4]!='/') {
+                        // be clever and add the missing slash
+                        uriOnly += '/';
                     }
                 }
                 var cvs_view = (!cvs_viewsource ? 'log' : 'markup')
@@ -477,7 +480,12 @@ var TV2DeveloperQuickBox = {
                 }
                 url = tv2_sitename;
                 if (tv2_sitetype) {
-                    url += (tv2_sitetype == 'webroot' ? '' : '.'+tv2_sitetype);
+                    if (this._reg_cvs_nopostfix.exec(tv2_sitename)) {
+                        // always include sitetype
+                        url += '/'+tv2_sitetype;
+                    } else {
+                        url += (tv2_sitetype == 'webroot' ? '' : '.'+tv2_sitetype);
+                    }
                 } else if (this._reg_cvs_rootfolders.exec(tv2_rootfolder)) {
                     url += tv2_rootfolder;
                 } else {
index 66e746c99437ad8b11b462465057b4978826fe61..67b7849af3288557db8f3cdf0b69b6911eeeab41 100755 (executable)
@@ -435,7 +435,7 @@ var TV2Developer = {
         links.push(new this.TV2LinkWithLabel('w3c', TV2Util.getStr('w3c'),
             'http://validator.w3.org/check?uri=' + encodedURL, TV2Util.getStr('w3c.accesskey')));
         links.push(new this.TV2LinkWithLabel('flushcache', TV2Util.getStr('flushCache'),
-           '', TV2Util.getStr('flushCache.accesskey'), 'flushCache'));
+           '-', TV2Util.getStr('flushCache.accesskey'), 'flushCache'));
 
         return links;
         
@@ -541,7 +541,7 @@ var TV2Developer = {
                 }
             }
             /* follow link */
-            if (url != '') {
+            if (url != '-') {
                 openUILink(url, event, false, true, false); /* allow ctrl, not alt, and don't google */
             }
             if (tv2linktype) {
diff --git a/version b/version
index 965065db5b84c28a60e0e932153c4f59ac44c4da..a602fc9e283389306d606c164ce73ac338999373 100644 (file)
--- a/version
+++ b/version
@@ -1 +1 @@
-0.9.3
+0.9.4