| changeset 190 | a9040a7c47d9 |
| parent 170 | 603ffa4c6fa5 |
| child 293 | fba23fde14ba |
--- a/client/js/save-once.js Thu May 30 12:08:28 2013 +0200 +++ b/client/js/save-once.js Thu Jun 06 17:24:15 2013 +0200 @@ -63,13 +63,13 @@ }); _checkLeave(); }); - $(".Rk-Save-Button").click(function() { - if ($(this).hasClass("disabled")) { + _renkan.renderer.save = function() { + if ($(".Rk-Save-Button").hasClass("disabled")) { if (!_proj.get("title")) { $(".Rk-PadTitle").css("border-color","#ff0000"); } } else { _save(); } - }); + } };