Skip to content

Commit

Permalink
Some small UI fixes
Browse files Browse the repository at this point in the history
Addition of Google Maps for Districts
Change app name to NYSenate for info.plist file
  • Loading branch information
NY Senate CIO Office committed Jan 19, 2011
1 parent 41204ee commit 0932b2e
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 9 deletions.
61 changes: 61 additions & 0 deletions Info.plist
@@ -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>
2 changes: 1 addition & 1 deletion Resources/app.js
@@ -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');
Expand Down
5 changes: 3 additions & 2 deletions Resources/views/home-ipad.js
Expand Up @@ -200,6 +200,7 @@ xhr.onerror = function ()

};

/*
function loadFeatures (featuresJSON)
{
Expand Down Expand Up @@ -297,7 +298,7 @@ xhr.onload = function() {
xhr.open("GET",featuresUrl);
xhr.send();

*/


var currentViewTop = Titanium.UI.createView({
Expand Down Expand Up @@ -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({
Expand Down
4 changes: 2 additions & 2 deletions Resources/views/senator.js
Expand Up @@ -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"},
Expand Down
3 changes: 2 additions & 1 deletion Resources/views/senators.js
Expand Up @@ -82,12 +82,13 @@ var lastClickedRow;
}
else
{
/*
if (lastClickedRow)
lastClickedRow.backgroundColor = "transparent";

e.row.backgroundColor = "#aaaaaa";
lastClickedRow = e.row;
*/

var senIndex = e.index - 2;

Expand Down
2 changes: 1 addition & 1 deletion manifest
@@ -1,4 +1,4 @@
#appname: NYSenateiPad2011
#appname: NYSenate for iPad
#publisher: nathan
#url: http://nysenate.gov/mobile
#image: appicon.png
Expand Down
4 changes: 2 additions & 2 deletions tiapp.xml
@@ -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>
Expand Down

0 comments on commit 0932b2e

Please sign in to comment.