Browse Source

Merge pull request #113 from gael-wogenstahl/patch-1

Icon layout template undefined when using user template
Kartik Visweswaran 10 years ago
parent
commit
4fe169eb75
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/fileinput.js

+ 2 - 2
js/fileinput.js

@@ -1466,7 +1466,7 @@
         },
         setCaption: function(content) {
             var self = this, title = $('<div>' + content + '</div>').text(),
-                icon = self.layoutTemplates['icon'], 
+                icon = self.getLayoutTemplate('icon'), 
                 out = icon + title;
             if (self.$caption.length == 0) {
                 return;
@@ -1663,4 +1663,4 @@
             $input.fileinput();
         }
     });
-})(window.jQuery);
+})(window.jQuery);