Author: marvintriebel
Date: Fri Jun 6 15:53:27 2014
New Revision: 9533
URL: http://svn.gna.org/viewcvs/service-tech?rev=9533&view=rev
Log:
refacotring bug fixing
Modified:
trunk/_meta/live2/frontend/fancy/js/formatOutput.js
trunk/_meta/live2/frontend/fancy/js/jsonEdit.js
trunk/_meta/live2/frontend/fancy/js/viz.js
Modified: trunk/_meta/live2/frontend/fancy/js/formatOutput.js
URL:
http://svn.gna.org/viewcvs/service-tech/trunk/_meta/live2/frontend/fancy/js/formatOutput.js?rev=9533&r1=9532&r2=9533&view=diff
==============================================================================
--- trunk/_meta/live2/frontend/fancy/js/formatOutput.js (original)
+++ trunk/_meta/live2/frontend/fancy/js/formatOutput.js Fri Jun 6 15:53:27 2014
@@ -20,29 +20,29 @@
* @property htmlModal
*/
var htmlModal =
-' <div id="output_container" class="modal hide fade" role="dialog"
style="width:700px;" >'
-+ ' <div class="modal-header">'
-+ ' <button type="button" class="close" data-dismiss="modal"
aria-hidden="true">×</button>'
-+ ' <h3>service technology</h3>'
-+ ' </div>'
-+ ' <div class="modal-body">'
-+ ' <div id="output_loading_info">'
-+ ' waiting for server response..'
-+ ' </div>'
-+ ' <div id="output_contents">'
-+ ' <h2>Infos</h2>'
-+ ' <div id="info"></div>'
-+ ' <h2>stdout</h2>'
-+ ' <pre id="stdout"></pre>'
-+ ' <h2>stderr</h2>'
-+ ' <pre id="stderr"></pre>'
-+ ' <div id="files_output_container"></div>'
-+ ' </div>'
-+ ' </div>'
-+ ' <div class="modal-footer">'
-+ ' <a href="#" data-dismiss="modal" class="btn">Close</a>'
-+ ' </div>'
-+ ' </div>',
+" <div id=\"output_container\" class=\"modal hide fade\" role=\"dialog\"
style=\"width:700px;\" >" +
+" <div class=\"modal-header\">" +
+" <button type=\"button\" class=\"close\" data-dismiss=\"modal\"
aria-hidden=\"true\">×</button>" +
+" <h3>service technology</h3>" +
+" </div>" +
+" <div class=\"modal-body\">" +
+" <div id=\"output_loading_info\">" +
+" waiting for server response.." +
+" </div>" +
+" <div id=\"output_contents\">" +
+" <h2>Infos</h2>" +
+" <div id=\"info\"></div>" +
+" <h2>stdout</h2>" +
+" <pre id=\"stdout\"></pre>" +
+" <h2>stderr</h2>" +
+" <pre id=\"stderr\"></pre>" +
+" <div id=\"files_output_container\"></div>" +
+" </div>" +
+" </div>" +
+" <div class=\"modal-footer\">" +
+" <a href=\"#\" data-dismiss=\"modal\" class=\"btn\">Close</a>" +
+" </div>" +
+" </div>",
/** number of sent requests
* @property @static @private
*/
@@ -61,6 +61,7 @@
* @private
* @static
*/
+function errorHandler(err) {
++noRec;
console.log(err);
Modified: trunk/_meta/live2/frontend/fancy/js/jsonEdit.js
URL:
http://svn.gna.org/viewcvs/service-tech/trunk/_meta/live2/frontend/fancy/js/jsonEdit.js?rev=9533&r1=9532&r2=9533&view=diff
==============================================================================
--- trunk/_meta/live2/frontend/fancy/js/jsonEdit.js (original)
+++ trunk/_meta/live2/frontend/fancy/js/jsonEdit.js Fri Jun 6 15:53:27 2014
@@ -46,7 +46,7 @@
" </p>" +
" </form>";
-$('json-output-container').appendChild($(typeaheadHtml));
+$('#json-output-container').appendChild($(typeaheadHtml));
/** creates the typeahead in the input given by the jquery obj
* @method createTypeahead
Modified: trunk/_meta/live2/frontend/fancy/js/viz.js
URL:
http://svn.gna.org/viewcvs/service-tech/trunk/_meta/live2/frontend/fancy/js/viz.js?rev=9533&r1=9532&r2=9533&view=diff
==============================================================================
--- trunk/_meta/live2/frontend/fancy/js/viz.js (original)
+++ trunk/_meta/live2/frontend/fancy/js/viz.js Fri Jun 6 15:53:27 2014
@@ -14,21 +14,21 @@
* @private @static
*/
var htmlVizModal =
- + '<div id="viz_container" class="modal hide fade" role="dialog"'
- + ' style="margin:auto;left:3%;top:3%;width:96%;height:96%;" >'
- + ' <div class="modal-header">'
- + ' <button type="button" class="close" data-dismiss="modal"
aria-hidden="true">×</button>'
- + ' <h3> </h3>'
- + ' </div>'
- + ' <div class="modal-body" style="padding:0px 0px 0px'
- + ' 0px;max-height:100%;margin-top:-50px;overflow:auto;">'
- + ' </div>'
- + ' </div>',
+ "<div id=\"viz_container\" class=\"modal hide fade\" role=\"dialog\"" +
+ " style=\"margin:auto;left:3%;top:3%;width:96%;height:96%;\" >" +
+ " <div class=\"modal-header\">" +
+ " <button type=\"button\" class=\"close\"
data-dismiss=\"modal\" aria-hidden=\"true\">×</button>" +
+ " <h3> </h3>" +
+ " </div>" +
+ " <div class=\"modal-body\" style=\"padding:0px 0px 0px" +
+ " 0px;max-height:100%;margin-top:-50px;overflow:auto;\">" +
+ " </div>" +
+ " </div>",
vizObjects = [];
// insert the modal dialog
- $(document.body).appendChild($(htmlVizModal);
+ $(document.body).appendChild($(htmlVizModal));
/**
* @method create
@@ -38,7 +38,7 @@
*/
function create(t) {
// call library Viz.js
- var svg = Viz(t, "svg");
+ var svg = new Viz(t, "svg");
// console.log(svg);
vizObjects.push(svg);
--
You received this e-mail, because you subscribed the mailing list
"service-tech-commits" which will forward you any e-mail addressed to
[email protected]. If you want to unsubscribe or make any changes to
your subscription, please go to
https://mail.gna.org/listinfo/service-tech-commits.