From 7e5abcb0c4640e6282f87a2f5e61a717bb0c0556 Mon Sep 17 00:00:00 2001 From: Piotr Kuchciak Date: Wed, 12 Nov 2014 12:14:14 +0100 Subject: [PATCH] WEB UI: add icon for button in windows add http://www.softicons.com/toolbar-icons/flatastic-icons-part-1-by-custom-icon-design/cancel-icon --- src/webui/static/app/ext.css | 4 ++++ src/webui/static/app/idnode.js | 2 ++ src/webui/static/icons/cancel_button.png | Bin 0 -> 910 bytes 3 files changed, 6 insertions(+) create mode 100644 src/webui/static/icons/cancel_button.png diff --git a/src/webui/static/app/ext.css b/src/webui/static/app/ext.css index 8829d1e9..e8a6949a 100644 --- a/src/webui/static/app/ext.css +++ b/src/webui/static/app/ext.css @@ -494,6 +494,10 @@ background-image: url(../icons/bouquets.png) !important; } +.cancelButton{ + background-image: url(../icons/cancel_button.png) !important; +} + .x-linked { display: inline-block; background-image: url(../icons/linked.gif) !important; diff --git a/src/webui/static/app/idnode.js b/src/webui/static/app/idnode.js index 2ffd8160..584dfc5b 100644 --- a/src/webui/static/app/idnode.js +++ b/src/webui/static/app/idnode.js @@ -823,6 +823,7 @@ tvheadend.idnode_create = function(conf, onlyDefault) var saveBtn = new Ext.Button({ tooltip: 'Create new entry', text: 'Create', + iconCls: 'add', hidden: true, handler: function() { var params = conf.create.params || {}; @@ -843,6 +844,7 @@ tvheadend.idnode_create = function(conf, onlyDefault) var undoBtn = new Ext.Button({ tooltip: 'Cancel operation', text: 'Cancel', + iconCls: 'cancelButton', handler: function() { win.close(); } diff --git a/src/webui/static/icons/cancel_button.png b/src/webui/static/icons/cancel_button.png new file mode 100644 index 0000000000000000000000000000000000000000..535d9871c59ea5883c143a7773b5b34ccf4e0b4c GIT binary patch literal 910 zcmV;919AL`P){7Kl%>X(bCmq## zdw>W6pw4{h-D}r|CYF}U)b2Pmxqtsy!g1cBf3I?Ob@lMemoJ~MGD}w|M6ab%&%TjL zeG}8V2LM)$Ih~oB8qvqMZXMj0NSq=O<%@ts01XDAsAUi|Ih!$Qdzxl}CPn=hBg zpL5+|2T0gTrER4y=+T`!PlmM~WB^w^@13}1?Xid=0G!@v^kBKs7{6XBtuuf-p0^PV z1a1$uw!TgPJ>Jqn$_)fE!b}z4pZz$S{r>dA!lA0~SA-eFocgGz=cfb7WQzhI0Dj2l ze=j#0v%*X<%gQJgNwEk@#$@lVuk#nV+?9!9@jb)LECLNY{bgU@x7#BT0)W3N6CiKC%10>c-`|p_n8IE6w&&~SUP2qYyiRx7J)LppJ!%- zwN5`34if;B>UBAO^X8}X)#`blS%jIo9OvZMJ9fO<7m29HEGx~-FutGH!|m<;amyMY zpe<@yQ@<9A_qZ7{<9WY4@45$rM4bev4#yc9a$OTt>IeYbuho9mAl;mpj?AEi=R1He+PR-g8~@xEBBBdS!IM2JLOhp68s z>W4@hi%4CB?-+CDL@syq&r+!@|NS@u5VI_LrL%M3rM9+_F2~7OL@5Ahh~yWInY^&P kJa(>7xUo{Ni!^$v;Y7A literal 0 HcmV?d00001