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
9e3505f6
Commit
9e3505f6
authored
Jul 06, 2012
by
Lingnan Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a popup dialog after saving ,this version has been check with phone gap ,works well on the tPAD
parent
60bde10f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
OfficeJS-Mobile/index.html
OfficeJS-Mobile/index.html
+1
-1
OfficeJS-Mobile/js/list-page.js
OfficeJS-Mobile/js/list-page.js
+16
-0
No files found.
OfficeJS-Mobile/index.html
View file @
9e3505f6
...
...
@@ -144,7 +144,7 @@ $('#input_json_applicant').attr('value'));">
</textarea>
</fieldset>
</div>
<a
data-role=
"button"
data-transition=
"fade"
data-theme=
"b"
class=
"btn btn-primary"
onclick=
"OfficeJS.save($('#input_file_name').attr('value'),$('#input_file_content').attr('value'));"
type=
"submit"
>
<a
data-role=
"button"
id=
"savetext"
data-transition=
"fade"
data-theme=
"b"
class=
"btn btn-primary"
onclick=
"OfficeJS.save($('#input_file_name').attr('value'),$('#input_file_content').attr('value'));"
type=
"submit"
>
Save
</a>
</div>
...
...
OfficeJS-Mobile/js/list-page.js
View file @
9e3505f6
...
...
@@ -89,6 +89,22 @@ $(document).delegate('#removeall', 'click', function() {
})
})
$
(
document
).
delegate
(
'
#savetext
'
,
'
click
'
,
function
()
{
$
(
'
<div>
'
).
simpledialog2
({
mode
:
'
button
'
,
headerText
:
'
Saved
'
,
headerClose
:
true
,
buttonPrompt
:
'
Your document has been saved
'
,
buttons
:
{
'
OK
'
:
{
click
:
function
()
{
}
},
}
})
})
//remove all
RemoveAllDocument
=
function
(){
var
document_name_array
=
[];
...
...
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