Permalink
Browse files

Some small UI fixes

Addition of Google Maps for Districts
Change app name to NYSenate for info.plist file
  • Loading branch information...
1 parent 41204ee commit 0932b2ecb7ef04c0da2847e5c579c6c700672735 NY Senate CIO Office committed Jan 19, 2011
Showing with 72 additions and 9 deletions.
  1. +61 −0 Info.plist
  2. +1 −1 Resources/app.js
  3. +3 −2 Resources/views/home-ipad.js
  4. +2 −2 Resources/views/senator.js
  5. +2 −1 Resources/views/senators.js
  6. +1 −1 manifest
  7. +2 −2 tiapp.xml
View
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleDisplayName</key>
+ <string>NYSenate</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string>appicon.png</string>
+ <key>CFBundleIconFiles</key>
+ <array>
+ <string>appicon.png</string>
+ <string>appicon@2x.png</string>
+ </array>
+ <key>CFBundleURLTypes</key>
+ <array>
+ <dict>
+ <key>CFBundleURLName</key>
+ <string>gov.nysenate.mobile.apple.ipad</string>
+ <key>CFBundleURLSchemes</key>
+ <array>
+ <string>nysenateforipad2011</string>
+ </array>
+ </dict>
+ </array>
+ <key>CFBundleIdentifier</key>
+ <string>gov.nysenate.mobile.apple.ipad</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>NYSenate</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.11.5</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UIPrerenderedIcon</key>
+ <true/>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ </array>
+ <key>UIRequiresPersistentWiFi</key>
+ <true/>
+ <key>UIStatusBarStyle</key>
+ <string>UIStatusBarStyleDefault</string>
+</dict>
+</plist>
View
@@ -1,4 +1,4 @@
-Ti.include("inc/globals.js");
+Ti.include("globals.js");
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#fff');
@@ -200,6 +200,7 @@ xhr.onerror = function ()
};
+/*
function loadFeatures (featuresJSON)
{
@@ -297,7 +298,7 @@ xhr.onload = function() {
xhr.open("GET",featuresUrl);
xhr.send();
-
+*/
var currentViewTop = Titanium.UI.createView({
@@ -477,7 +478,7 @@ xhrvideo.onload = function()
vHorizSpacing = 5;
var rLeft = 15;
- var vContainerHeight = 200;
+ var vContainerHeight = 400;
var vLabelHeight = 70;
var currentView = Titanium.UI.createView({
@@ -84,8 +84,8 @@ var tdata = null;
tdata = [
{title:'Contact Information',hasChild:true,link:senatorUrl + "/contact"},
- {title:'District Map',hasChild:true,title:'District Map',elink:'http://www.nysenate.gov/district/' + senatorDistrict},
-// {title:'View District Map',hasChild:true,title:'District Map',kml:'http://geo.nysenate.gov/maps/kml/sd' + senatorDistrict + '.kml?key=YgiZWjKgealrvSlyDMQRMYEaNLv2fFiz'},
+// {title:'District Map',hasChild:true,title:'District Map',elink:'http://www.nysenate.gov/district/' + senatorDistrict},
+ {title:'District Map',hasChild:true,title:'District Map',kml:'http://geo.nysenate.gov/maps/kml/sd' + senatorDistrict + '.kml?key=YgiZWjKgealrvSlyDMQRMYEaNLv2fFiz'},
{title:"Latest News & Updates",hasChild:true, rss:senatorUrl+ "/content/feed"},
{title:'Sponsored Bills',hasChild:true,olterm:"sponsor:"+legSearchKey + " AND otype:bill AND (oid:S* or oid:A*)"},
{title:'Chaired Meetings',hasChild:true,olterm:"chair:"+legSearchKey + " AND otype:meeting"},
@@ -82,12 +82,13 @@ var lastClickedRow;
}
else
{
+ /*
if (lastClickedRow)
lastClickedRow.backgroundColor = "transparent";
-
e.row.backgroundColor = "#aaaaaa";
lastClickedRow = e.row;
+ */
var senIndex = e.index - 2;
View
@@ -1,4 +1,4 @@
-#appname: NYSenateiPad2011
+#appname: NYSenate for iPad
#publisher: nathan
#url: http://nysenate.gov/mobile
#image: appicon.png
View
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<id>gov.nysenate.mobile.apple.ipad</id>
-<name>NYSenate</name>
+<name>NYSenate for iPad</name>
<version>1.11.5</version>
<publisher>New York State Senate</publisher>
<url>http://nysenate.gov/mobile</url>
<description>New York State Senate for iPad</description>
<copyright>GPL 3.0 and Creative Commons - 2010, 2011 by nysenate cio</copyright>
<icon>appicon.png</icon>
- <persistent-wifi>false</persistent-wifi>
+ <persistent-wifi>true</persistent-wifi>
<prerendered-icon>true</prerendered-icon>
<statusbar-style>default</statusbar-style>
<statusbar-hidden>false</statusbar-hidden>

0 comments on commit 0932b2e

Please sign in to comment.