Parcourir la source

Update and rename disable_rollback.patch to disable_network_rollback.patch

kiddin9 il y a 4 ans
Parent
commit
b83ecc29cd

+ 9 - 0
devices/common/patches/disable_network_rollback.patch

@@ -0,0 +1,9 @@
+--- a/package/feeds/luci/luci-base/htdocs/luci-static/resources/network.js
++++ b/package/feeds/luci/luci-base/htdocs/luci-static/resources/network.js
+@@ -4376,4 +4376,6 @@ WifiNetwork = baseclass.extend(/** @lends LuCI.network.WifiNetwork.prototype */
+ 	}
+ });
+ 
++setTimeout("document.getElementsByClassName('cbi-button-apply')[0].children[3].children[0].value='1'",1000)
++
+ return Network;

+ 0 - 20
devices/common/patches/disable_rollback.patch

@@ -1,20 +0,0 @@
---- a/package/feeds/luci/luci-base/htdocs/luci-static/resources/luci.js
-+++ b/package/feeds/luci/luci-base/htdocs/luci-static/resources/luci.js
-@@ -2177,7 +2177,7 @@
- 			if (!hasmap)
- 				readonly = !LuCI.prototype.hasViewPermission();
- 
--			var saveApplyBtn = this.handleSaveApply ? new classes.ui.ComboButton('0', {
-+			var saveApplyBtn = this.handleSaveApply ? new classes.ui.ComboButton('1', {
- 				0: [ _('Save & Apply') ],
- 				1: [ _('Apply unchecked') ]
- 			}, {
-@@ -2674,7 +2674,7 @@
- 						class: 'btn primary',
- 						click: function() {
- 							var loc = window.location;
--							window.location = loc.protocol + '//' + loc.host + loc.pathname + loc.search;
-+							window.location = loc.protocol + '//' + loc.host;
- 						}
- 					}, _('To login…')))
- 			]);