|
From: <tob...@us...> - 2014-06-17 19:08:23
|
Revision: 8499
http://sourceforge.net/p/bigdata/code/8499
Author: tobycraig
Date: 2014-06-17 19:08:09 +0000 (Tue, 17 Jun 2014)
Log Message:
-----------
Fixed initial LBS state
Modified Paths:
--------------
branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js
Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js 2014-06-17 19:02:35 UTC (rev 8498)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js 2014-06-17 19:08:09 UTC (rev 8499)
@@ -21,15 +21,19 @@
// debug to access closure variables
$('html, textarea, select').bind('keydown', 'ctrl+d', function() { debugger; });
-function useLBS() {
- if(this.checked) {
+function useLBS(state) {
+ // allows passing in of boolean, or firing on event
+ if(typeof(state) != 'boolean') {
+ state = this.checked;
+ }
+ if(state) {
RW_URL_PREFIX = '/bigdata/LBS/leader/';
RO_URL_PREFIX = '/bigdata/LBS/read/';
} else {
RW_URL_PREFIX = '/bigdata/';
RO_URL_PREFIX = '/bigdata/';
}
- $('.use-lbs').prop('checked', this.checked);
+ $('.use-lbs').prop('checked', state);
}
useLBS(true);
$('.use-lbs').change(useLBS);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|