Commit 9e3505f6 authored by Lingnan Wu's avatar Lingnan Wu

add a popup dialog after saving ,this version has been check with phone gap ,works well on the tPAD

parent 60bde10f
......@@ -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>
......
......@@ -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 = [];
......
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