changeset 325:d07b54fdc60a

reverted changeset: bfbd9d6eb901
author souliane <souliane@mailoo.org>
date Tue, 07 Jan 2014 15:39:16 +0100
parents 8131d0ccf21b
children 36927be51481
files browser_side/xmlui.py libervia.py
diffstat 2 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/browser_side/xmlui.py	Sat Jan 04 02:38:23 2014 +0100
+++ b/browser_side/xmlui.py	Tue Jan 07 15:39:16 2014 +0100
@@ -19,7 +19,6 @@
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 """
 
-from sat.core.i18n import _
 from pyjamas.ui.VerticalPanel import VerticalPanel
 from pyjamas.ui.HorizontalPanel import HorizontalPanel
 from pyjamas.ui.CellPanel import CellPanel
@@ -33,7 +32,6 @@
 from pyjamas.ui.CheckBox import CheckBox
 from pyjamas.ui.ListBox import ListBox
 from pyjamas.ui.Button import Button
-from dialog import InfoDialog
 from nativedom import NativeDOM
 
 
@@ -272,7 +270,6 @@
 
     def onSaveParams(self, button):
         print "onSaveParams"
-        refresh = False
         for ctrl in self.param_changed:
             if isinstance(ctrl, CheckBox):
                 value = "true" if ctrl.isChecked() else "false"
@@ -281,8 +278,4 @@
             else:
                 value = ctrl.getText()
             self.host.bridge.call('setParam', None, ctrl._param_name, value, ctrl._param_category)
-            if ctrl._param_name in self.host.ui_refresh_params:
-                refresh = True
         self.close()
-        if refresh:
-            InfoDialog(_("Refresh needed"), _("A parameter requesting a page refresh has been modified.<br/>Your changes will be fully effective only after you refresh the page with 'F5' or from your browser menu.")).show()
--- a/libervia.py	Sat Jan 04 02:38:23 2014 +0100
+++ b/libervia.py	Tue Jan 07 15:39:16 2014 +0100
@@ -186,7 +186,6 @@
         self._register.call('isRegistered', self._isRegisteredCB)
         self.initialised = False
         self.init_cache = []  # used to cache events until initialisation is done
-        self.ui_refresh_params = (Const.ENABLE_UNIBOX_PARAM)
 
     def addSelectedListener(self, callback):
         self._selected_listeners.add(callback)