Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
8da0e138
Commit
8da0e138
authored
Jul 04, 2014
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused instruction
parent
1cb4047f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
42 deletions
+12
-42
src/audioplayer/audioplayer.js
src/audioplayer/audioplayer.js
+2
-3
src/audioplayer/error.html
src/audioplayer/error.html
+0
-17
src/audioplayer/error.js
src/audioplayer/error.js
+0
-17
src/audioplayer_bridge/audiogadget.js
src/audioplayer_bridge/audiogadget.js
+0
-1
src/audioplayer_playlist/playlist.js
src/audioplayer_playlist/playlist.js
+5
-1
src/audioplayer_upload/upload.js
src/audioplayer_upload/upload.js
+5
-3
No files found.
src/audioplayer/audioplayer.js
View file @
8da0e138
/*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/
"
}
);
});
})
...
...
src/audioplayer/error.html
deleted
100644 → 0
View file @
1cb4047f
<!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>
src/audioplayer/error.js
deleted
100644 → 0
View file @
1cb4047f
/*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
));
src/audioplayer_bridge/audiogadget.js
View file @
8da0e138
...
...
@@ -3,7 +3,6 @@
"
use strict
"
;
rJS
(
window
)
.
ready
(
function
(
gadget
)
{
// Initialize the gadget local parameters
gadget
.
state_parameter_dict
=
{};
...
...
src/audioplayer_playlist/playlist.js
View file @
8da0e138
...
...
@@ -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
()
{
...
...
src/audioplayer_upload/upload.js
View file @
8da0e138
/*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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment