Commit 8da0e138 authored by Xiaowu Zhang's avatar Xiaowu Zhang

remove unused instruction

parent 1cb4047f
/*global window, rJS, RSVP, console, $, jQuery, URL, location, webkitURL */
/*jslint nomen: true*/
(function (window, rJS, $, RSVP) {
"use strict";
$.mobile.ajaxEnabled = false;
......@@ -82,8 +81,8 @@
.push(function (gadget) {
jio_gadget = gadget;
return jio_gadget.createJio(
{ "type" : "indexeddb",
"database": "test"}
{ "type" : "http",
"database" : "http://192.168.242.63:8080/"}
);
});
})
......
<!DOCTYPE html>
<html lang="en">
<head>
<title>errorPage</title>
<!-- renderjs -->
<script src="../<%= copy.rsvp.relative_dest %>" type="text/javascript"></script>
<script src="../<%= copy.renderjs.relative_dest %>" type="text/javascript"></script>
<!-- custom script -->
<script src="./error.js" type="text/javascript"></script>
</head>
<body>
<div >
</div>
</body>
</html>
/*global rJS, window*/
/*jslint nomen: true*/
(function (window, rJS) {
"use strict";
var h2_context;
rJS(window)
.ready(function (g) {
h2_context = g.__element.getElementsByTagName('div')[0];
})
.declareMethod("display", function (options) {
h2_context.innerHTML = " <h2>ERROR:Music not found</h2>";
})
.declareMethod("noDisplay", function (options) {
h2_context.innerHTML = "";
});
}(window, rJS));
......@@ -3,7 +3,6 @@
"use strict";
rJS(window)
.ready(function (gadget) {
// Initialize the gadget local parameters
gadget.state_parameter_dict = {};
......
......@@ -38,12 +38,16 @@
}
}
e.data.rows = tmp;
gadget.id = options.id;
}
gadget.id = options.id;
list.innerHTML = rows_template({
"rows" : e.data.rows
});
$(list).listview("refresh");
})
.fail(function (error) {
document.getElementsByTagName('body')[0].textContent =
JSON.stringify(error);
});
})
.declareMethod('startService', function () {
......
/*global window, rJS, RSVP, jIO, JSON, promiseEventListener */
/*global window, rJS, RSVP, jIO, JSON, promiseEventListener, console, Error*/
/*jslint nomen: true*/
(function (window, jIO, rJS) {
"use strict";
......@@ -11,8 +11,6 @@
.declareAcquiredMethod("plEnablePage", "plEnablePage")
.declareAcquiredMethod("plDisablePage", "plDisablePage")
.declareMethod("render", function () {
this.__element.getElementsByClassName('info')[0]
.innerHTML = "";
return this.displayThisTitle("upload");
})
.declareMethod("startService", function () {
......@@ -52,6 +50,10 @@
if (uploaded === length) {
return g.plEnablePage();
}
})
.fail(function (e) {
document.getElementsByTagName('body')[0].textContent =
JSON.stringify(e);
});
}
queue = new RSVP.Queue();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment