Code

Prepared JavaScript to support dynamic plugin-change detection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Sep 2010 13:25:54 +0000 (13:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Sep 2010 13:25:54 +0000 (13:25 +0000)
-This enables much confortable browsing

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19623 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/include/gosa.js

index 385c01a340c7aaf5bbba81a1f405b49098e14ac2..b282e55790525d50a9b994c399b0aca0893a28ae 100644 (file)
@@ -29,7 +29,7 @@ Event.observe(window, 'keypress', keyHandler);
 /* Ask before switching a plugin with this function */
 function question(text, url)
 {
-       if(document.mainform.ignore){
+       if(document.mainform.ignore || $('pluginModified') == null || $('pluginModified').value == 0){
                location.href= url;
                return true;
        }