summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/views
diff options
context:
space:
mode:
authormconway <michael.c.conway@gmail.com>2013-02-15 17:31:02 (GMT)
committer mconway <michael.c.conway@gmail.com>2013-02-15 17:31:02 (GMT)
commit59eaf16598bd4a323b82017f8542b794542acf63 (patch)
tree05c3999aa79c2fb70e319161cf9342ebdbc07a17 /idrop-web/grails-app/views
parent26c8e6084e5f83ae130358c26713cde506e805d4 (diff)
downloadQCG-Data-59eaf16598bd4a323b82017f8542b794542acf63.zip
QCG-Data-59eaf16598bd4a323b82017f8542b794542acf63.tar.gz
QCG-Data-59eaf16598bd4a323b82017f8542b794542acf63.tar.bz2
[#1204] cleanup initial view (should be info)
Diffstat (limited to 'idrop-web/grails-app/views')
-rwxr-xr-xidrop-web/grails-app/views/browse/_browseTabContent.gsp1
-rwxr-xr-xidrop-web/grails-app/views/browse/index.gsp13
2 files changed, 10 insertions, 4 deletions
diff --git a/idrop-web/grails-app/views/browse/_browseTabContent.gsp b/idrop-web/grails-app/views/browse/_browseTabContent.gsp
index a4e775e..2d27b70 100755
--- a/idrop-web/grails-app/views/browse/_browseTabContent.gsp
+++ b/idrop-web/grails-app/views/browse/_browseTabContent.gsp
@@ -13,6 +13,7 @@
<div id="browseDialogArea"><!-- general area to spawn jquery dialogs --></div>
+
<div id="browser" class="wrapper" style="height:85%;width:100%;clear:both;overflow:hidden;">
<div id="dataTreeView" style="width: 100%; height: 700px; overflow: hidden;">
diff --git a/idrop-web/grails-app/views/browse/index.gsp b/idrop-web/grails-app/views/browse/index.gsp
index c69296e..4280795 100755
--- a/idrop-web/grails-app/views/browse/index.gsp
+++ b/idrop-web/grails-app/views/browse/index.gsp
@@ -6,7 +6,9 @@
<div class="wrapper clearfix"
style="height: 820px; overflow:hidden;">
<g:hiddenField name="mode" id="mode" value="${mode}"/>
- <g:hiddenField name="presetPath" id="presetPath" value="${path}"/>
+ <g:hiddenField name="viewStateBrowseOptionVal" id="viewStateBrowseOptionVal" value="${viewState.browseView}"/>
+ <g:hiddenField name="presetPath" id="presetPath" value="${viewState.rootPath}"/>
+ <g:hiddenField id="viewStateSelectedPath" name="viewStateSelectedPath" value="${viewState.selectedPath}"/>
<g:render template="/browse/browseTabContent" />
</div>
@@ -31,12 +33,15 @@
});
var mode = $("#mode").val();
- var startPath = $("#presetPath").val();
+ browseOptionVal = $("#viewStateBrowseOptionVal").val();
+ dataTreePath = $("#presetPath").val();
+ var thisSelectedPath = $("#viewStateSelectedPath").val();
+
if (mode == null || mode=="") {
- retrieveBrowserFirstView("detect","");
+ retrieveBrowserFirstView("detect","", thisSelectedPath);
} else {
- retrieveBrowserFirstView(mode, startPath);
+ retrieveBrowserFirstView(mode, dataTreePath, thisSelectedPath);
}
$(window).bind( 'hashchange', function(e) {