Last active
July 10, 2016 16:09
-
-
Save amuhororo/0eca9b19adc95670fd5589b47f4be4c5 to your computer and use it in GitHub Desktop.
セーブに成功したらアラート
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doSave : function(num) { | |
var array_save = this.getSaveData(); | |
var data = {}; | |
var that = this; | |
if (this.snap == null) { | |
//ここはサムネイルイメージ作成のため、callback指定する | |
this.snapSave(this.kag.stat.current_message_str, function() { | |
//現在、停止中のステータスなら、[_s]ポジションからセーブデータ取得 | |
data = that.snap; | |
data.save_date = $.getNowDate() + " " + $.getNowTime(); | |
rray_save.data[num] = data; | |
$.setStorage(that.kag.config.projectID + "_tyrano_data", array_save, that.kag.config.configSave); | |
//↓ここから下は成功しないと動かないっぽい | |
alertify.alert( "No." + (parseInt(num) + 1) + " セーブに成功しました。", function () {}); | |
}); | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment