You are viewing a plain text version of this content. The canonical link for it is here.
Posted to photark-commits@incubator.apache.org by pr...@apache.org on 2012/08/23 04:12:58 UTC
svn commit: r1376361 - in /incubator/photark/mobile/trunk/assets/www:
index.html scripts/photark_UI.js
Author: prabhathp
Date: Thu Aug 23 04:12:58 2012
New Revision: 1376361
URL: http://svn.apache.org/viewvc?rev=1376361&view=rev
Log:
missing commits which need to be done before
Modified:
incubator/photark/mobile/trunk/assets/www/index.html
incubator/photark/mobile/trunk/assets/www/scripts/photark_UI.js
Modified: incubator/photark/mobile/trunk/assets/www/index.html
URL: http://svn.apache.org/viewvc/incubator/photark/mobile/trunk/assets/www/index.html?rev=1376361&r1=1376360&r2=1376361&view=diff
==============================================================================
--- incubator/photark/mobile/trunk/assets/www/index.html (original)
+++ incubator/photark/mobile/trunk/assets/www/index.html Thu Aug 23 04:12:58 2012
@@ -583,19 +583,19 @@
</div>
<!-- Page End -->
- <!-- Add Tag Page-->
+ <!-- New Tag Dialog-->
<div id="NewTag" data-role="dialog">
<div data-role="header">
- <h1>Confirm Delete</h1>
+ <h1>Add Tag.</h1>
</div>
<div data-role="content">
- <p>
- Are you sure you want to delete this photo?
- </p>
- <a href="index.html"
- data-role="button" onclick="deleteFile()">Delete</a>
- <a href="index.html"
- data-role="button">Cancel</a>
+ <div data-role="fieldcontain">
+ <label for="tagName"> Name: </label>
+ <input type="text" name="tagName" id="editPeople" value=""/>
+ <a href="#ContactsPage" data-role="button" data-theme="a" data-mini="true">Browse</a>
+ </div>
+ <a href="#" data-role="button" data-mini="true" onclick="addTagClicked()">Ok</a>
+ <a href="#photoTag" data-role="button" data-mini="true">Cancel</a>
</div>
</div>
<!-- Page End -->
Modified: incubator/photark/mobile/trunk/assets/www/scripts/photark_UI.js
URL: http://svn.apache.org/viewvc/incubator/photark/mobile/trunk/assets/www/scripts/photark_UI.js?rev=1376361&r1=1376360&r2=1376361&view=diff
==============================================================================
--- incubator/photark/mobile/trunk/assets/www/scripts/photark_UI.js (original)
+++ incubator/photark/mobile/trunk/assets/www/scripts/photark_UI.js Thu Aug 23 04:12:58 2012
@@ -71,6 +71,15 @@ function onMenuClick(){
$.mobile.changePage("#optionMenu");
}
+function onBackKeyDown(){
+ if($.mobile.activePage.attr("id") == "main"){
+ onHomeButtonClicked();
+ }else{
+ $.mobile.changePage("#main");
+ }
+}
+
+//Clears edit metadata page.
function clearMetadata(){
$("#nickName").val("Not defined");
$("#editDate").val("");
@@ -101,11 +110,12 @@ function resetView(){
});
}
-
+//Adds last modified time to the image info page
function successMetadata(metadata) {
$("#metadata").append("<p> LastModified:" + metadata.modificationTime + "</p> ");
}
+//Adds image type to the image info page
function successFile(file) {
$("#metadata").append("<p> Size:" + file.size + "bytes </p> <p> Type:" + file.type + " </p>");
}
\ No newline at end of file