ソースを参照

Update bootstrap-table-toolbar.js

Antonio Pérez García 10 年 前
コミット
49d054959d
1 ファイル変更2 行追加5 行削除
  1. 2 5
      bootstrap-table-toolbar.js

+ 2 - 5
bootstrap-table-toolbar.js

@@ -132,6 +132,7 @@
         _load = BootstrapTable.prototype.load;
 
     BootstrapTable.prototype.initToolbar = function() {
+        alert('entra');
         var that = this,
             htmlBtns = [],
             $search,
@@ -184,11 +185,7 @@
         _load.apply(this, Array.prototype.slice.apply(arguments));
 
         if (typeof this.options.idTable === 'undefined') {
-            var e = noty({
-                type: "error",
-                text: 'Error: La propiedad "idTable" de bootstrapTable debe tener el id definido en la tabla.'
-            });
-            return;
+            alert('Error: La propiedad "idTable" de bootstrapTable debe tener el id definido en la tabla.');
         } else {
             if (!firstLoad) {
                 var vTam = parseInt($(".bootstrap-table").height());