projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8e13f2b
)
Added method to set iPhone App mode
author
Dennis Schafroth
<dennis@indexdata.com>
Wed, 2 Jun 2010 12:50:27 +0000
(14:50 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Wed, 2 Jun 2010 12:50:27 +0000
(14:50 +0200)
www/iphone/example_client.js
patch
|
blob
|
history
diff --git
a/www/iphone/example_client.js
b/www/iphone/example_client.js
index
b728f95
..
cfae8ed
100644
(file)
--- a/
www/iphone/example_client.js
+++ b/
www/iphone/example_client.js
@@
-37,7
+37,6
@@
var SourceMax = 16;
var SubjectMax = 10;
var AuthorMax = 10;
var tab = "recordview";
var SubjectMax = 10;
var AuthorMax = 10;
var tab = "recordview";
-var inApp = false;
//
//
@@
-277,10
+276,24
@@
function domReady ()
document.search.query.value = '';
document.select.sort.onchange = onSelectDdChange;
document.select.perpage.onchange = onSelectDdChange;
document.search.query.value = '';
document.select.sort.onchange = onSelectDdChange;
document.select.perpage.onchange = onSelectDdChange;
- if (!inApp)
- document.getElementById("heading").style.display="";
+ applicationMode(true);
+}
+
+function applicationMode(newmode)
+{
+ var searchdiv = document.getElementById("searchForm");
+ if (newmode)
+ inApp = newmode;
+ if (inApp) {
+ document.getElementById("heading").style.display="none";
+ searchdiv.style.display = 'none';
+ }
+ else {
+ searchdiv.style.display = '';
+ document.search.onsubmit = onFormSubmit;
+ }
+ callback.init();
}
}
-
// when search button pressed
function onFormSubmitEventHandler()
{
// when search button pressed
function onFormSubmitEventHandler()
{