Permalink
Browse files

Visit homepage button

  • Loading branch information...
1 parent 8c6b53d commit 7d45955c5d504676daefe20334233cccc9bfed58 @pzion committed May 22, 2010
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -13,9 +13,9 @@
<key>CFBundleName</key>
<string>Untitled</string>
<key>CFBundleShortVersionString</key>
- <string>1.2-pre</string>
+ <string>1.2.0</string>
<key>CFBundleVersion</key>
- <string>1.2-pre</string>
+ <string>1.2.0</string>
<key>CloseBoxInsetX</key>
<integer>15</integer>
<key>CloseBoxInsetY</key>
@@ -6,6 +6,7 @@
*/
var dashcodePartSpecs = {
"done": { "creationFunction": "CreateGlassButton", "onclick": "showFront", "text": "Done" },
+ "glassButton": { "creationFunction": "CreateGlassButton", "onclick": "homepageClicked", "text": "Visit Homepage" },
"info": { "backgroundStyle": "black", "creationFunction": "CreateInfoButton", "foregroundStyle": "white", "frontID": "front", "onclick": "showBack" },
"progressIndicator": { "criticalValue": 15, "onValue": 1, "view": "DC.Indicator", "warningValue": 10 },
"progressText": { "view": "DC.Text" },
@@ -14,12 +15,13 @@ var dashcodePartSpecs = {
"submitButton": { "creationFunction": "CreateButton", "disabled": true, "leftImageWidth": 5, "onclick": "submitButtonClicked", "rightImageWidth": 5, "text": "Submit" },
"text": { "text": "Basecamp URL:", "view": "DC.Text" },
"text1": { "text": "Basecamp API Token:", "view": "DC.Text" },
- "text2": { "text": "Basewatch 1.2-pre", "view": "DC.Text" },
- "text3": { "text": "Copyright 2010 Peter Zion", "view": "DC.Text" }
+ "text2": { "text": "Basewatch 1.2.0", "view": "DC.Text" },
+ "text3": { "text": "Copyright © 2010 Peter Zion", "view": "DC.Text" }
};
+
@@ -262,3 +262,14 @@ body {
.selected #text3 {
color: white;
}
+
+#glassButton {
+ cursor: default;
+ -khtml-user-select: none;
+ position: absolute;
+ right: auto;
+ bottom: auto;
+ margin-top: 0px;
+ top: 153px;
+ left: 64px;
+}
@@ -33,6 +33,7 @@
<input id="apiTokenTextField" type="text" name="" value="" class="apple-textfield apple-no-children" apple-part="com.apple.Dashcode.part.textfield">
<div id="text2" apple-part="com.apple.Dashcode.part.text" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis"></div>
<div id="text3" apple-part="com.apple.Dashcode.part.text" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis"></div>
+ <div id="glassButton" apple-part="com.apple.Dashcode.part.glassbutton" class="apple-no-children"></div>
</div>
</body>
</html>
@@ -159,11 +159,8 @@ function populateProjects()
{
var projectsPopup = document.getElementById('projectsPopup').object;
var projectsSelect = document.getElementById('projectsPopup').lastElementChild;
- if ( projectsSelect.hasChildNodes() )
- {
- while ( projectsSelect.childNodes.length >= 1 )
- projectsSelect.removeChild( projectsPopup.firstChild );
- }
+ while ( projectsSelect.childNodes.length >= 1 )
+ projectsSelect.removeChild( projectsSelect.firstChild );
var apiURL = document.getElementById('apiURLTextField').value;
var apiToken = document.getElementById('apiTokenTextField').value;
if ( apiURL != '' && apiToken != '' )
@@ -467,3 +464,9 @@ function submitButtonClicked(event)
} );
}
}
+
+
+function homepageClicked(event)
+{
+ widget.openURL('http://pzion.github.com/Basewatch/');
+}

0 comments on commit 7d45955

Please sign in to comment.