You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by fm...@apache.org on 2011/03/24 17:19:52 UTC

svn commit: r1085024 - /felix/trunk/webconsole/src/main/resources/res/ui/license.js

Author: fmeschbe
Date: Thu Mar 24 16:19:52 2011
New Revision: 1085024

URL: http://svn.apache.org/viewvc?rev=1085024&view=rev
Log:
Replace tabs with spaces

Modified:
    felix/trunk/webconsole/src/main/resources/res/ui/license.js

Modified: felix/trunk/webconsole/src/main/resources/res/ui/license.js
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/resources/res/ui/license.js?rev=1085024&r1=1085023&r2=1085024&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/resources/res/ui/license.js (original)
+++ felix/trunk/webconsole/src/main/resources/res/ui/license.js Thu Mar 24 16:19:52 2011
@@ -59,19 +59,19 @@ function displayBundle(/* String */ bund
                     link += descr.jar + "!/"; // inner jar attribute
                 }
                 link += descr.path;
-				if (descr.path.indexOf('http:') == 0 || descr.path.indexOf('ftp:') == 0) link = descr.path;
+                if (descr.path.indexOf('http:') == 0 || descr.path.indexOf('ftp:') == 0) link = descr.path;
 
-				buttons += '<a href="' + link + '">' + descr.url + '</a> ';
+                buttons += '<a href="' + link + '">' + descr.url + '</a> ';
 
-				if (!firstPage)
-				{
-				    firstPage = link;
-				}
+                if (!firstPage)
+                {
+                    firstPage = link;
+                }
             }
             if (buttons)
             {
-				// apply i18n
-				name =  '__res__' == name ? i18n.resources : i18n.resources_emb.msgFormat( name );
+                // apply i18n
+                name =  '__res__' == name ? i18n.resources : i18n.resources_emb.msgFormat( name );
                 innerHTML += name + ": " + buttons + "<br />";
             }
         }
@@ -80,45 +80,45 @@ function displayBundle(/* String */ bund
     }
     
     if (firstPage) {
-		openLicenseLink(firstPage);
+        openLicenseLink(firstPage);
     } else {
         licenseDetails.html("");
     }
     
-	$("#licenseLeft a").removeClass('ui-state-default ui-corner-all');
-	$("#licenseLeft #" +bundleIndex).addClass('ui-state-default ui-corner-all');
+    $("#licenseLeft a").removeClass('ui-state-default ui-corner-all');
+    $("#licenseLeft #" +bundleIndex).addClass('ui-state-default ui-corner-all');
 
     $('#licenseButtons a').click(function() {
-		openLicenseLink(this.href);
-		return false;
+        openLicenseLink(this.href);
+        return false;
     });
 }
 
 function openLicenseLink(uri) {
-	if (uri.indexOf(window.location.href) == 0 || uri.indexOf(pluginRoot) == 0) { // local URI
+    if (uri.indexOf(window.location.href) == 0 || uri.indexOf(pluginRoot) == 0) { // local URI
         $.get(uri, insertLicenseData);
-	} else {
-		licenseDetails.html( '<iframe frameborder="0" src="' + uri+ '"></iframe>' );
-	}
+    } else {
+        licenseDetails.html( '<iframe frameborder="0" src="' + uri+ '"></iframe>' );
+    }
 }
 
 
 $(document).ready(function() {
-	// init elements cache
-	licenseButtons = $("#licenseButtons");
-	licenseDetails = $("#licenseDetails")
-
-	// render list of bundles
-	var txt = "";
-	for(id in bundleData) {
-		txt += '<a id="' + id + '" href="javascript:displayBundle(\'' + id + '\')">' + bundleData[id].title + '</a>';
-	}
-	if (txt) {
-		$("#licenseLeft").html(txt);
-	} else {
-		$(".statline").html(i18n.status_none);
-	}
+    // init elements cache
+    licenseButtons = $("#licenseButtons");
+    licenseDetails = $("#licenseDetails")
+
+    // render list of bundles
+    var txt = "";
+    for(id in bundleData) {
+        txt += '<a id="' + id + '" href="javascript:displayBundle(\'' + id + '\')">' + bundleData[id].title + '</a>';
+    }
+    if (txt) {
+        $("#licenseLeft").html(txt);
+    } else {
+        $(".statline").html(i18n.status_none);
+    }
 
-	// display first element
-	displayBundle(0);
+    // display first element
+    displayBundle(0);
 });
\ No newline at end of file