eric6/Helpviewer/JavaScriptResources.py

branch
maintenance
changeset 7286
7eb04391adf7
parent 7226
babe80d84a3e
parent 7285
1ff497f33f31
child 7287
1c17f2191bdd
--- a/eric6/Helpviewer/JavaScriptResources.py	Mon Sep 09 18:52:08 2019 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright (c) 2009 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
-#
-
-"""
-Module containing some HTML resources.
-"""
-
-from __future__ import unicode_literals
-
-parseForms_js = """
-(function (){
-    var forms = new Array;
-    for (var i = 0; i < document.forms.length; ++i) {
-        var form = document.forms[i];
-        var formObject = new Object;
-        formObject.name = form.name;
-        formObject.index = i
-        var elements = new Array;
-        for (var j = 0; j < form.elements.length; ++j) {
-            var e = form.elements[j];
-            var element = new Object;
-            element.name = e.name;
-            element.value = e.value;
-            element.type = e.type;
-            element.autocomplete = e.attributes.getNamedItem("autocomplete");
-            if (element.autocomplete != null)
-                element.autocomplete = element.autocomplete.value;
-            elements.push(element);
-        }
-        formObject.elements = elements;
-        forms.push(formObject);
-    }
-    return forms;
-}());
-"""

eric ide

mercurial