|
From: <tob...@us...> - 2014-05-16 14:06:49
|
Revision: 8346
http://sourceforge.net/p/bigdata/code/8346
Author: tobycraig
Date: 2014-05-16 14:06:45 +0000 (Fri, 16 May 2014)
Log Message:
-----------
FIxed namespace shortcuts not working with CodeMirror editors
Modified Paths:
--------------
branches/NEW_WORKBENCH_1_3_2_BRANCH/bigdata-war/src/html/js/workbench.js
Modified: branches/NEW_WORKBENCH_1_3_2_BRANCH/bigdata-war/src/html/js/workbench.js
===================================================================
--- branches/NEW_WORKBENCH_1_3_2_BRANCH/bigdata-war/src/html/js/workbench.js 2014-05-15 23:41:06 UTC (rev 8345)
+++ branches/NEW_WORKBENCH_1_3_2_BRANCH/bigdata-war/src/html/js/workbench.js 2014-05-16 14:06:45 UTC (rev 8346)
@@ -235,12 +235,12 @@
}
$('.namespace-shortcuts li').click(function() {
- var textarea = $(this).parents('.tab').find('textarea');
- var current = textarea.val();
+ var tab = $(this).parents('.tab').attr('id').split('-')[0];
+ var current = EDITORS[tab].getValue();
var ns = $(this).data('ns');
if(current.indexOf(ns) == -1) {
- textarea.val(ns + '\n' + current);
+ EDITORS[tab].setValue(ns + '\n' + current);
}
});
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|