missing commits which need to be done before
git-svn-id: https://svn.apache.org/repos/asf/incubator/photark/mobile/trunk@1376361 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/assets/www/index.html b/assets/www/index.html
index 469178a..0b6a531 100644
--- a/assets/www/index.html
+++ b/assets/www/index.html
@@ -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 -->
diff --git a/assets/www/scripts/photark_UI.js b/assets/www/scripts/photark_UI.js
index 705d0ca..1a85982 100644
--- a/assets/www/scripts/photark_UI.js
+++ b/assets/www/scripts/photark_UI.js
@@ -71,6 +71,15 @@
$.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 @@
});
}
-
+//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