luci2: fix save functionality on Map() objects after 1df7615
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 13 Apr 2014 20:19:50 +0000 (22:19 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 13 Apr 2014 20:19:50 +0000 (22:19 +0200)
luci2/htdocs/luci2/luci2.js

index 7c099018aef80c076254df3025344a79a28d7cf4..dac499f3732597a70fc150afbed0257bb5ae6f9d 100644 (file)
@@ -7012,7 +7012,9 @@ function LuCI2()
                {
                        var self = ev.data.self;
 
-                       self.trigger('save', ev);
+                       self.send().then(function() {
+                               self.trigger('save', ev);
+                       });
                },
 
                _ev_reset: function(ev)