summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/views
diff options
context:
space:
mode:
authormconway <michael_conway@unc.edu>2013-10-23 11:57:09 (GMT)
committer mconway <michael_conway@unc.edu>2013-10-23 11:57:09 (GMT)
commitb1265fa7a71b86813c0153fa2cacb4bf945d63e0 (patch)
tree21cd8a698a02e1ef99096dd6d99110cdb24f2a00 /idrop-web/grails-app/views
parenteb972553a6f4f3ddbd7e1837b9e00e033a9ba5c7 (diff)
downloadQCG-Data-b1265fa7a71b86813c0153fa2cacb4bf945d63e0.zip
QCG-Data-b1265fa7a71b86813c0153fa2cacb4bf945d63e0.tar.gz
QCG-Data-b1265fa7a71b86813c0153fa2cacb4bf945d63e0.tar.bz2
[#1458] reload
Diffstat (limited to 'idrop-web/grails-app/views')
-rwxr-xr-xidrop-web/grails-app/views/rule/index.gsp27
1 files changed, 26 insertions, 1 deletions
diff --git a/idrop-web/grails-app/views/rule/index.gsp b/idrop-web/grails-app/views/rule/index.gsp
index ef81d30..170179b 100755
--- a/idrop-web/grails-app/views/rule/index.gsp
+++ b/idrop-web/grails-app/views/rule/index.gsp
@@ -5,7 +5,7 @@
<div id="detailsToolbar" >
<button type="button" id="reloadRuleButton"
value="reloadRule"
- onclick="callReloadForRule()">
+ onclick="callReloadRule()">
<g:message code="default.button.reload.label" />
</button>
<span id="saveRuleButton"><button type="button" id="saveRuleButton"
@@ -49,5 +49,30 @@
}
+ function callReloadRule(absPath) {
+ var absPath = $("#ruleAbsPath").val();
+ if (absPath == null || absPath == "") {
+ showError("no absPath for rule");
+ return false;
+ }
+
+ var params = {
+ absPath : absPath
+ }
+ var jqxhr = $.get(context + "/rule/reloadRule", params, "html").success(
+ function(returnedData, status, xhr) {
+ var continueReq = checkForSessionTimeout(returnedData, xhr);
+ if (!continueReq) {
+ return false;
+ }
+ $("#ruleDetailDiv").html(returnedData);
+ }).error(function(xhr, status, error) {
+ setErrorMessage(xhr.responseText);
+ });
+
+
+ }
+
+
</script>