]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: fix apply confirmation messagebox
authorMark Clarkstone <hello@markclarkstone.co.uk>
Sat, 9 Apr 2016 23:09:33 +0000 (00:09 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 10 Apr 2016 20:07:48 +0000 (22:07 +0200)
src/webui/static/app/idnode.js

index 1f22fdd3480b3811c432548578d1c5e1404b00f1..79fbe784da1fa4078721c0364a70831f66909a08 100644 (file)
@@ -1162,7 +1162,12 @@ tvheadend.idnode_editor = function(_uilevel, item, conf)
                                 node: Ext.encode(node)
                             },
                             success: function(d) {
-                                Ext.MessageBox.alert(_('Apply'), _('Changes were applied!'));
+                                Ext.MessageBox.show({
+                                    title: _('Apply'),
+                                    msg: _('Changes were applied!'),
+                                    buttons: Ext.MessageBox.OK,
+                                    icon: Ext.MessageBox.INFO,
+                                });
                                 form.trackResetOnLoad = true;
                                 form.setValues(node);
                             },
@@ -1488,7 +1493,13 @@ tvheadend.idnode_create = function(conf, onlyDefault, cloneValues)
                         url: conf.create.url || conf.url + '/create',
                         params: params,
                         success: function(d) {
-                            Ext.MessageBox.confirm(_('Apply'), _('Changes were applied!'));
+                            Ext.MessageBox.show({
+                                title: _('Apply'),
+                                msg: _('Changes were applied!'),
+                                buttons: Ext.MessageBox.OK,
+                                icon: Ext.MessageBox.INFO,
+                            });
+                            //Ext.MessageBox.confirm(_('Apply'), _('Changes were applied!'));
                             form.trackResetOnLoad = true;
                             form.setValues(node);
                         },