compute.js-issue1749.patch

Nicolas AGIUS, 01/31/2013 04:31 PM

Download (887 Bytes)

View differences:

compute.js 2013-01-31 16:15:50.452650364 +0100
933 933
            return false;
934 934
        };
935 935

  
936
        // < jQuery 1.8
937
        jQuery.expr[':'].Contains = function(a, i, m) { 
938
            return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase()) >= 0; 
939
        };
940
        // >= jQuery 1.8
941
        //jQuery.expr[":"].Contains = jQuery.expr.createPseudo(function(arg) {
942
        //    return function( elem ) {
943
        //        return jQuery(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0;
944
        //    };
945
        //});
946

  
947
		 if ($('#tbodyvmachines').find("td:Contains('" + vm_name + "')").length > 0) {
948
		     notifyError(vm_name+" already exists");
949
		     return false;
950
        };
951

  
936 952
        var vm = {
937 953
            "NAME" : vm_name,
938 954
            "INSTANCE_TYPE" : instance_type