#21331: save and apply button is not working
-----------------------+--------------------------------
 Reporter:  anonymous  |      Owner:
     Type:  defect     |     Status:  new
 Priority:  high       |  Milestone:
Component:  luci       |    Version:  Chaos Calmer 15.05
 Keywords:             |
-----------------------+--------------------------------
 As i installed the luci2,there are some functions missing and one of that
 is `save & apply` button.So i am trying to develop that functionality.So
 can someone give me some hints so that it will be helpful for me to do
 that.And i am keeping the `save` function as reference from the file
 `cbi.js`

 {{{
 save: function()
 {
         var self = this;

         if (self.options.readonly)
         return L.deferrable();

         var deferreds = [ ];

         for (var i = 0; i < self.sections.length; i++)
         {
                 var rv = self.sections[i].save();
                 deferreds.push.apply(deferreds, rv);
         }

         return $.when.apply($, deferreds).then(function() {
         return L.deferrable(self.options.save.call(self));
         });
 },

 }}}


 Any help is appreciated.Thanks in advance.

--
Ticket URL: <https://dev.openwrt.org/ticket/21331>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to