Przeglądaj źródła

alert box after saveing the lead. using html local storage.

master
Patrick Peng Sun 8 lat temu
rodzic
commit
f9a5a4b7c5
2 zmienionych plików z 15 dodań i 2 usunięć
  1. +14
    -1
      spa/edit.html
  2. +1
    -1
      spa/pinegrow.json

+ 14
- 1
spa/edit.html Wyświetl plik

@@ -71,7 +71,7 @@
</div>
</div>
<div class="row">
<div class="col s12 m12 l12 valign left">
<div id="save" class="col s12 m12 l12 valign left">
<button class="btn waves-effect waves-light" type="submit" name="action">保存信息
<i class="material-icons left">send</i>
</button>
@@ -83,5 +83,18 @@
<script src="assets/js/jquery.min.js"></script>
<script src="materialize/js/materialize.js"></script>
<script src="index.js"></script>
<script type="text/javascript">
$("#save").click(function(){
saved=localStorage.setItem("wechatleadsaved", "true");
});
$(function(){
saved = localStorage.getItem("wechatleadsaved");
if (saved == "true"){
alert("{{.Name}}\n\n已保存\n\n {{.ModifiedAt}}");
}
localStorage.removeItem("wechatleadsaved");
});
</script>
</body>
</html>

+ 1
- 1
spa/pinegrow.json Wyświetl plik

@@ -1 +1 @@
{"files":{"edit.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"last_page_width":896},"404.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.project.items","pg.asset.manager","mat0.97.5","pg.html","pg.components"],"last_page_width":1024}},"breakpoints":["28.875em","33.875em","35.875em","38.875em","40.125em","46.75em","360px","390px","420px","450px","480px","510px","540px","570px","601px","630px","660px","690px","720px","750px","780px","810px","840px","870px","900px","930px","960px","993px","1200px"],"frameworks":["spa","pg.insight.events","pg.code-validator","pg.project.items","pg.asset.manager","mat0.97.5","pg.html","pg.components"],"template_framework_id":"materialize"}
{"files":{"edit.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"last_page_width":896},"404.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.project.items","pg.asset.manager","mat0.97.5","pg.html","pg.components"],"last_page_width":1024}},"breakpoints":["28.875em","33.875em","35.875em","38.875em","40.125em","46.75em","360px","390px","420px","450px","480px","510px","540px","570px","601px","630px","660px","690px","720px","750px","780px","810px","840px","870px","900px","930px","960px","993px","1200px"],"frameworks":["spa","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"template_framework_id":"materialize"}

Ładowanie…
Anuluj
Zapisz