Merge pageactions
[project/luci.git] / libs / cbi / luasrc / view / cbi / footer.htm
index b719058..4f94a05 100644 (file)
@@ -12,12 +12,15 @@ You may obtain a copy of the License at
 $Id$
 
 -%>
-
-       <div>
-               <input class="cbi-button cbi-button-apply" type="submit" name="cbi.apply" value="<%:saveapply%>" />
+       <%- if pageaction then -%>
+       <div class="cbi-page-actions">
+               <% if not autoapply then%>
+                       <input class="cbi-button cbi-button-apply" type="submit" name="cbi.apply" value="<%:saveapply%>" />
+               <% end %>
                <input class="cbi-button cbi-button-save" type="submit" value="<%:save%>" />
                <input class="cbi-button cbi-button-reset" type="reset" value="<%:reset%>" />
-               <script type="text/javascript">cbi_d_init();</script>
+               <script type="text/javascript">cbi_d_update();</script>
        </div>
+       <%- end -%>
 </form>
 <%+footer%>