Commits

Anonymous committed a0021cb

Updated inline.min.js with update from inline.js

Comments (0)

Files changed (4)

 .DS_Store
 /deployments
 /media
-/cotidia_admin_tools.egg-info
+build/
+dist/
+*.egg-info/

admin_tools/__init__.py

  * tools to make admin theming easier.
 """
 
-VERSION = (0, 4, 1)
-__version__ = '.'.join(map(str, VERSION))
+VERSION = '0.4.1'

admin_tools/static/admin/js/inlines.min.js

-(function(b){b.fn.formset=function(c){var a=b.extend({},b.fn.formset.defaults,c),j=function(a,e,d){var i=RegExp("("+e+"-(\\d+|__prefix__))"),e=e+"-"+d;b(a).attr("for")&&b(a).attr("for",b(a).attr("for").replace(i,e));if(a.id)a.id=a.id.replace(i,e);if(a.name)a.name=a.name.replace(i,e)},c=b("#id_"+a.prefix+"-TOTAL_FORMS").attr("autocomplete","off"),g=parseInt(c.val()),f=b("#id_"+a.prefix+"-MAX_NUM_FORMS").attr("autocomplete","off"),c=""==f.val()||0<f.val()-c.val();b(this).each(function(){b(this).not("."+
-a.emptyCssClass).addClass(a.formCssClass)});if(b(this).length&&c){var h;"TR"==b(this).attr("tagName")?(c=this.eq(0).children().length,b(this).parent().append('<tr class="'+a.addCssClass+'"><td colspan="'+c+'"><a href="javascript:void(0)">'+a.addText+"</a></tr>"),h=b(this).parent().find("tr:last a")):(b(this).filter(":last").after('<div class="'+a.addCssClass+'"><a href="javascript:void(0)">'+a.addText+"</a></div>"),h=b(this).filter(":last").next().find("a"));h.click(function(){var c=b("#id_"+a.prefix+
-"-TOTAL_FORMS"),e=b("#"+a.prefix+"-empty"),d=e.clone(!0);d.removeClass(a.emptyCssClass).addClass(a.formCssClass).attr("id",a.prefix+"-"+g);d.is("tr")?d.children(":last").append('<div><a class="'+a.deleteCssClass+'" href="javascript:void(0)">'+a.deleteText+"</a></div>"):d.is("ul")||d.is("ol")?d.append('<li><a class="'+a.deleteCssClass+'" href="javascript:void(0)">'+a.deleteText+"</a></li>"):d.children(":first").append('<span><a class="'+a.deleteCssClass+'" href="javascript:void(0)">'+a.deleteText+
-"</a></span>");d.find("*").each(function(){j(this,a.prefix,c.val())});d.insertBefore(b(e));b(c).val(parseInt(c.val())+1);g+=1;""!=f.val()&&0>=f.val()-c.val()&&h.parent().hide();d.find("a."+a.deleteCssClass).click(function(){var c=b(this).parents("."+a.formCssClass);c.remove();g-=1;a.removed&&a.removed(c);c=b("."+a.formCssClass);b("#id_"+a.prefix+"-TOTAL_FORMS").val(c.length);(""==f.val()||0<f.val()-c.length)&&h.parent().show();for(var d=0,e=c.length;d<e;d++)j(b(c).get(d),a.prefix,d),b(c.get(d)).find("*").each(function(){j(this,
-a.prefix,d)});return!1});a.added&&a.added(d);return!1})}return this};b.fn.formset.defaults={prefix:"form",addText:"add another",deleteText:"remove",addCssClass:"add-row",deleteCssClass:"delete-row",emptyCssClass:"empty-row",formCssClass:"dynamic-form",added:null,removed:null}})(django.jQuery);
+(function(e){e.fn.formset=function(t){var n=e.extend({},e.fn.formset.defaults,t);var r=function(t,n,r){var i=new RegExp("("+n+"-(\\d+|__prefix__))");var s=n+"-"+r;if(e(t).attr("for")){e(t).attr("for",e(t).attr("for").replace(i,s))}if(t.id){t.id=t.id.replace(i,s)}if(t.name){t.name=t.name.replace(i,s)}};var i=e("#id_"+n.prefix+"-TOTAL_FORMS").attr("autocomplete","off");var s=parseInt(i.val());var o=e("#id_"+n.prefix+"-MAX_NUM_FORMS").attr("autocomplete","off");var u=o.val()==""||o.val()-i.val()>0;e(this).each(function(t){e(this).not("."+n.emptyCssClass).addClass(n.formCssClass)});if(e(this).length&&u){var a;if(e(this).attr("tagName")=="TR"){var f=this.eq(0).children().length;e(this).parent().append('<tr class="'+n.addCssClass+'"><td colspan="'+f+'"><a href="javascript:void(0)">'+n.addText+"</a></tr>");a=e(this).parent().find("tr:last a")}else if(n.tabbed==true){e(".inline-nav-tabs").append('<li><a class="'+n.addCssClass+'" href="#'+n.prefix+"-"+s+'" >'+n.addText+"</a></li>");a=e(".inline-nav-tabs li").filter(":last").find("a")}else{e(this).filter(":last").after('<a class="'+n.addCssClass+'" href="javascript:void(0)">'+n.addText+"</a>");a=e(this).filter(":last").next().find("a")}a.click(function(){var t=e("#id_"+n.prefix+"-TOTAL_FORMS");var i=e("#"+n.prefix+"-empty");var u=i.clone(true);u.removeClass(n.emptyCssClass).addClass(n.formCssClass).attr("id",n.prefix+"-"+s);if(u.is("tr")){u.children(":last").append('<div><a class="'+n.deleteCssClass+'" href="javascript:void(0)">'+n.deleteText+"</a></div>")}else if(u.is("ul")||u.is("ol")){u.append('<li><a class="'+n.deleteCssClass+'" href="javascript:void(0)">'+n.deleteText+"</a></li>")}else if(n.tabbed==true){u.append('<div class="delete-row"><a class="'+n.deleteCssClass+'" href="javascript:void(0)">'+n.deleteText+"</a></div>")}else{u.children(":first").append('<span><a class="'+n.deleteCssClass+'" href="javascript:void(0)">'+n.deleteText+"</a></span>")}u.find("*").each(function(){r(this,n.prefix,t.val())});u.insertBefore(e(i));e(t).val(parseInt(t.val())+1);s+=1;if(o.val()!=""&&o.val()-t.val()<=0){a.parent().hide()}u.find("a."+n.deleteCssClass).click(function(){var t=e(this).parents("."+n.formCssClass);t.remove();s-=1;if(n.removed){n.removed(t)}var i=e("."+n.formCssClass);e("#id_"+n.prefix+"-TOTAL_FORMS").val(i.length);if(o.val()==""||o.val()-i.length>0){a.parent().show()}for(var u=0,f=i.length;u<f;u++){r(e(i).get(u),n.prefix,u);e(i.get(u)).find("*").each(function(){r(this,n.prefix,u)})}return false});if(n.added){n.added(u)}return false})}return this};e.fn.formset.defaults={prefix:"form",addText:"add another",deleteText:"remove",addCssClass:"add-row",deleteCssClass:"delete-row",emptyCssClass:"empty-row",formCssClass:"dynamic-form",added:null,removed:null}})(django.jQuery)
 from setuptools import find_packages
 
 
-VERSION = __import__("admin_tools").__version__
+VERSION = __import__("admin_tools").VERSION
 
 CLASSIFIERS = [
     'Framework :: Django',
     author="Guillaume Piot",
     author_email="guillaume@cotidia.com",
     url="https://bitbucket.org/guillaumepiot/cotidia-admin-tools",
-    download_url="https://bitbucket.org/guillaumepiot/cotidia-admin-tools/downloads/cotidia-admin-tools-0.4.1.tar.gz",
+    download_url="https://bitbucket.org/guillaumepiot/cotidia-admin-tools/downloads/cotidia-admin-tools-%s.tar.gz" % (VERSION),
     package_dir={'admin_tools': 'admin_tools'},
     packages=packages,
     package_data={'admin_tools': data_files},